Closed ndrmahmoudi closed 3 years ago
Hi,
I can see that this particular function's declaration has been changed in https://github.com/scikit-learn/scikit-learn/commit/22f232efc608e3d90b833c72c9fd3da1b4eacd97
Looks like it is part of the 0.24.1 version. If it is okay, you can try downgrading your sklearn to before 0.24.1. I have used it once, and it worked once upon a time.
Also, we can already use this criterion in sklearn, it is just not defined in the sklearn repository itself. sklearn split criterion, afaik supports external criterion.
Or even better, you can edit the code for the hellinger's criterion here to directly obtain the left and right impurity, which is obtained by a seperate call in this implementation. That particular commit i posted, exactly addresses this problem.
I'm working on a hellinger criterion PR #16478 in sklearn @ndrmahmoudi sorry for the delayed response @harish1996 thank a lot for answering and contributing
Hi Evgeni,
I have followed the instructions you have provided, downloaded the library, and run the setup.py. However, I do get this error