-
Notifications
You must be signed in to change notification settings - Fork 12
Closed
Description
Hi Evgeni,
I have followed the instructions you have provided, downloaded the library, and run the setup.py. However, I do get this error
Error compiling Cython file:
------------------------------------------------------------
...
self.children_impurity(&impurity_left, &impurity_right)
return impurity_right + impurity_left
cdef double impurity_improvement(self, double impurity) nogil:
^
------------------------------------------------------------
hellinger_distance_criterion.pyx:26:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef int update(self, SIZE_t new_pos) nogil except -1
cdef double node_impurity(self) nogil
cdef void children_impurity(self, double* impurity_left,
double* impurity_right) nogil
cdef void node_value(self, double* dest) nogil
cdef double impurity_improvement(self, double impurity_parent,
^
------------------------------------------------------------
C:\ProgramData\Anaconda3\lib\site-packages\sklearn\tree\_criterion.pxd:65:36: Previous declaration is here
Traceback (most recent call last):
File "setup.py", line 11, in <module>
ext_modules=cythonize('hellinger_distance_criterion.pyx', language_level = "3"),
File "C:\ProgramData\Anaconda3\lib\site-packages\Cython\Build\Dependencies.py", line 1102, in cythonize
cythonize_one(*args)
File "C:\ProgramData\Anaconda3\lib\site-packages\Cython\Build\Dependencies.py", line 1225, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: hellinger_distance_criterion.pyx`````
Could you please let me know how to fix this issue? Also, is there any update about incorporating this split method into Sklearn?
Many thanks in advance for your response.
Regards,
Nader
Metadata
Metadata
Assignees
Labels
No labels