Re: [scikit-learn] Problem found when testing DecisionTreeClassifier within the source folder

2017-09-04 Thread hanzi mao
Thanks Sebastian and Joel! It works after I run the codes in the newly created virtual environment. I thought after the sources were compiled, it was ok to change the folder name. Also thanks for teaching me to use the virtual environment! Best, Hanna From

Re: [scikit-learn] Problem found when testing DecisionTreeClassifier within the source folder

2017-09-04 Thread Sebastian Raschka
Hi, Hanna, I think Joel is right and the renaming is probably causing the issues. Instead of renaming the package to sklearn1, consider modifying, compiling, and installing sklearn in a virtual environment. I am not sure if you are using conda, in this case, creating a new virtual env for devel

Re: [scikit-learn] Problem found when testing DecisionTreeClassifier within the source folder

2017-09-04 Thread Joel Nothman
I suspect this is due to an intricacy of Cython. Despite using relative imports, Cython expects the Criterion instance to come from a package called sklearn, not called sklearn1. On 5 September 2017 at 12:42, hanzi mao wrote: > Hi, > > I am researching on the source code of DecisionTree recently

[scikit-learn] Problem found when testing DecisionTreeClassifier within the source folder

2017-09-04 Thread hanzi mao
Hi, I am researching on the source code of DecisionTree recently. Here are the things I tried. 1. Downloaded source code from github. 2. run "python setup.py build_ext --inplace" to compile the sources in the unzipped source folder. 3. Try the following codes to see whether it works.