8000 Error with Cythonzing · Issue #9 · EvgeniDubov/hellinger-distance-criterion · GitHub
[go: up one dir, main page]

Skip to content
Error with Cythonzing #9
@ndrmahmoudi

Description

@ndrmahmoudi

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0