Re: [scikit-learn] Changes in the classifier

2020-01-13 Thread aditya aggarwal
I just want to change the log function while calculating entropy, how can I do this in the scikit library? On Thu, Jan 9, 2020 at 2:41 PM Adrin wrote: > Outside GIL, you can't really work easily with Python objects. You should > instead stick to local C variables and routines. For instance, inst

Re: [scikit-learn] Changes in the classifier

2020-01-09 Thread Adrin
Outside GIL, you can't really work easily with Python objects. You should instead stick to local C variables and routines. For instance, instead of numpy routines, you can use cmath routines. The cython book ( https://www.amazon.com/Cython-Programmers-Kurt-W-Smith/dp/1491901551) and Nicolas's post

[scikit-learn] Changes in the classifier

2020-01-08 Thread aditya aggarwal
Hello I'm trying to change the entropy function which is used in sklearn for DecisionTreeClassification locally on my system. when I rerun the pip install --editable . command after updating the cython file, I receive the following error message: Error compiling Cython file: