diff --git a/python/example/demo.py b/python/example/demo.py index 231640d91..6dde2be72 100755 --- a/python/example/demo.py +++ b/python/example/demo.py @@ -3,6 +3,7 @@ import sys import numpy as np import scipy.sparse # append the path to xgboost, you may need to change the following line +# alternatively, you can add the path to PYTHONPATH environment variable sys.path.append('../') import xgboost as xgb