sklearn-pmml-model
sklearn-pmml-model copied to clipboard
When will this repository support Python 3.13?
Python 3.13 was released on October 7, 2024. When I tried to set up this module in my new Python environment, I encountered an error.
pip3 install sklearn-pmml-model==1.0.7
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting sklearn-pmml-model==1.0.7
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/0c/c9/0137ca1537b2943c336da08fa358cf1496b251f94c25c2ffd2acd8266523/sklearn_pmml_model-1.0.7.tar.gz (895 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [775 lines of output]
/tmp/pip-build-env-12g_qred/overlay/lib/python3.13/site-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /tmp/pip-install-_cwkht3t/sklearn-pmml-model_b31c2c5be01a4956854470e7d7b42e04/sklearn_pmml_model/ensemble/_gradient_boosting.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
warning: sklearn_pmml_model/tree/quad_tree.pxd:76:42: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/quad_tree.pxd:79:29: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/quad_tree.pxd:80:27: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/quad_tree.pxd:88:24: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/quad_tree.pxd:89:24: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:108:20: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:112:24: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:119:25: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:123:19: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:146:22: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:150:16: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:175:22: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:176:24: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:177:26: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:182:16: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:198:22: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:200:20: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:202:19: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:203:16: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:204:17: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:205:39: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:206:38: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:221:20: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:224:47: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:227:19: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:228:16: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:229:49: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_criterion.pxd:64:29: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_criterion.pxd:65:31: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_criterion.pxd:67:24: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_criterion.pxd:68:36: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_criterion.pxd:69:42: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_splitter.pxd:96:24: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_splitter.pxd:98:29: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_tree.pxd:36:22: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/ensemble/_gradient_boosting.pyx:45:53: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/ensemble/_gradient_boosting.pyx:263:27: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_criterion.pxd:64:29: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_criterion.pxd:65:31: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_criterion.pxd:67:24: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_criterion.pxd:68:36: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_criterion.pxd:69:42: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/quad_tree.pxd:76:42: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/quad_tree.pxd:79:29: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/quad_tree.pxd:80:27: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/quad_tree.pxd:88:24: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/quad_tree.pxd:89:24: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:108:20: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:112:24: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:119:25: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:123:19: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:146:22: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:150:16: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:175:22: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:176:24: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:177:26: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:182:16: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:198:22: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:200:20: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:202:19: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:203:16: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:204:17: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:205:39: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:206:38: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:221:20: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:224:47: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:227:19: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:228:16: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:229:49: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_criterion.pyx:116:29: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
Error compiling Cython file:
------------------------------------------------------------
...
New starting index position of the samples in the right child
"""
pass
cdef double node_impurity(self) nogil:
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pyx:116:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
double weighted_n_samples, SIZE_t* samples, SIZE_t start,
SIZE_t end) except -1 nogil
cdef int reset(self) except -1 nogil
cdef int reverse_reset(self) except -1 nogil
cdef int update(self, SIZE_t new_pos) except -1 nogil
cdef double node_impurity(self) nogil
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pxd:64:29: Previous declaration is here
warning: sklearn_pmml_model/tree/_criterion.pyx:126:31: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
Error compiling Cython file:
------------------------------------------------------------
...
primary function of the criterion class.
"""
pass
cdef void children_impurity(self, double* impurity_left,
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pyx:126:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
SIZE_t end) except -1 nogil
cdef int reset(self) except -1 nogil
cdef int reverse_reset(self) except -1 nogil
cdef int update(self, SIZE_t new_pos) except -1 nogil
cdef double node_impurity(self) nogil
cdef void children_impurity(self, double* impurity_left,
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pxd:65:31: Previous declaration is here
warning: sklearn_pmml_model/tree/_criterion.pyx:146:24: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
Error compiling Cython file:
------------------------------------------------------------
...
stored
"""
pass
cdef void node_value(self, double* dest) nogil:
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pyx:146:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef int reverse_reset(self) except -1 nogil
cdef int update(self, SIZE_t new_pos) except -1 nogil
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
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pxd:67:24: Previous declaration is here
warning: sklearn_pmml_model/tree/_criterion.pyx:160:42: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
Error compiling Cython file:
------------------------------------------------------------
...
The memory address where the node value should be stored.
"""
pass
cdef double proxy_impurity_improvement(self) nogil:
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pyx:160:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
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) nogil
cdef double proxy_impurity_improvement(self) nogil
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pxd:69:42: Previous declaration is here
warning: sklearn_pmml_model/tree/_criterion.pyx:178:36: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
Error compiling Cython file:
------------------------------------------------------------
...
self.children_impurity(&impurity_left, &impurity_right)
return (- self.weighted_n_right * impurity_right
- self.weighted_n_left * impurity_left)
cdef double impurity_improvement(self, double impurity) nogil:
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pyx:178:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef int update(self, SIZE_t new_pos) except -1 nogil
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) nogil
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pxd:68:36: Previous declaration is here
warning: sklearn_pmml_model/tree/_criterion.pyx:492:29: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
Error compiling Cython file:
------------------------------------------------------------
...
sum_total += self.sum_stride
self.pos = new_pos
return 0
cdef double node_impurity(self) nogil:
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pyx:492:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
double weighted_n_samples, SIZE_t* samples, SIZE_t start,
SIZE_t end) except -1 nogil
cdef int reset(self) except -1 nogil
cdef int reverse_reset(self) except -1 nogil
cdef int update(self, SIZE_t new_pos) except -1 nogil
cdef double node_impurity(self) nogil
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pxd:64:29: Previous declaration is here
warning: sklearn_pmml_model/tree/_criterion.pyx:495:31: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
Error compiling Cython file:
------------------------------------------------------------
...
return 0
cdef double node_impurity(self) nogil:
pass
cdef void children_impurity(self, double* impurity_left,
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pyx:495:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
SIZE_t end) except -1 nogil
cdef int reset(self) except -1 nogil
cdef int reverse_reset(self) except -1 nogil
cdef int update(self, SIZE_t new_pos) except -1 nogil
cdef double node_impurity(self) nogil
cdef void children_impurity(self, double* impurity_left,
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pxd:65:31: Previous declaration is here
warning: sklearn_pmml_model/tree/_criterion.pyx:499:24: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
Error compiling Cython file:
------------------------------------------------------------
...
cdef void children_impurity(self, double* impurity_left,
double* impurity_right) nogil:
pass
cdef void node_value(self, double* dest) nogil:
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pyx:499:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef int reverse_reset(self) except -1 nogil
cdef int update(self, SIZE_t new_pos) except -1 nogil
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
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pxd:67:24: Previous declaration is here
warning: sklearn_pmml_model/tree/_criterion.pyx:534:29: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
Error compiling Cython file:
------------------------------------------------------------
...
The cross-entropy is then defined as
cross-entropy = -\sum_{k=0}^{K-1} count_k log(count_k)
"""
cdef double node_impurity(self) nogil:
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pyx:534:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
double weighted_n_samples, SIZE_t* samples, SIZE_t start,
SIZE_t end) except -1 nogil
cdef int reset(self) except -1 nogil
cdef int reverse_reset(self) except -1 nogil
cdef int update(self, SIZE_t new_pos) except -1 nogil
cdef double node_impurity(self) nogil
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pxd:64:29: Previous declaration is here
warning: sklearn_pmml_model/tree/_criterion.pyx:556:31: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
Error compiling Cython file:
------------------------------------------------------------
...
sum_total += self.sum_stride
return entropy / self.n_outputs
cdef void children_impurity(self, double* impurity_left,
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pyx:556:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
SIZE_t end) except -1 nogil
cdef int reset(self) except -1 nogil
cdef int reverse_reset(self) except -1 nogil
cdef int update(self, SIZE_t new_pos) except -1 nogil
cdef double node_impurity(self) nogil
cdef void children_impurity(self, double* impurity_left,
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pxd:65:31: Previous declaration is here
warning: sklearn_pmml_model/tree/_criterion.pyx:616:29: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
Error compiling Cython file:
------------------------------------------------------------
...
index = \sum_{k=0}^{K-1} count_k (1 - count_k)
= 1 - \sum_{k=0}^{K-1} count_k ** 2
"""
cdef double node_impurity(self) nogil:
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pyx:616:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
double weighted_n_samples, SIZE_t* samples, SIZE_t start,
SIZE_t end) except -1 nogil
cdef int reset(self) except -1 nogil
cdef int reverse_reset(self) except -1 nogil
cdef int update(self, SIZE_t new_pos) except -1 nogil
cdef double node_impurity(self) nogil
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pxd:64:29: Previous declaration is here
warning: sklearn_pmml_model/tree/_criterion.pyx:643:31: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
Error compiling Cython file:
------------------------------------------------------------
...
sum_total += self.sum_stride
return gini / self.n_outputs
cdef void children_impurity(self, double* impurity_left,
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pyx:643:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
SIZE_t end) except -1 nogil
cdef int reset(self) except -1 nogil
cdef int reverse_reset(self) except -1 nogil
cdef int update(self, SIZE_t new_pos) except -1 nogil
cdef double node_impurity(self) nogil
cdef void children_impurity(self, double* impurity_left,
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pxd:65:31: Previous declaration is here
warning: sklearn_pmml_model/tree/_criterion.pyx:883:29: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
Error compiling Cython file:
------------------------------------------------------------
...
sum_right[k] = sum_total[k] - sum_left[k]
self.pos = new_pos
return 0
cdef double node_impurity(self) nogil:
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pyx:883:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
double weighted_n_samples, SIZE_t* samples, SIZE_t start,
SIZE_t end) except -1 nogil
cdef int reset(self) except -1 nogil
cdef int reverse_reset(self) except -1 nogil
cdef int update(self, SIZE_t new_pos) except -1 nogil
cdef double node_impurity(self) nogil
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pxd:64:29: Previous declaration is here
warning: sklearn_pmml_model/tree/_criterion.pyx:886:31: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
Error compiling Cython file:
------------------------------------------------------------
...
return 0
cdef double node_impurity(self) nogil:
pass
cdef void children_impurity(self, double* impurity_left,
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pyx:886:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
SIZE_t end) except -1 nogil
cdef int reset(self) except -1 nogil
cdef int reverse_reset(self) except -1 nogil
cdef int update(self, SIZE_t new_pos) except -1 nogil
cdef double node_impurity(self) nogil
cdef void children_impurity(self, double* impurity_left,
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pxd:65:31: Previous declaration is here
warning: sklearn_pmml_model/tree/_criterion.pyx:890:24: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
Error compiling Cython file:
------------------------------------------------------------
...
cdef void children_impurity(self, double* impurity_left,
double* impurity_right) nogil:
pass
cdef void node_value(self, double* dest) nogil:
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pyx:890:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef int reverse_reset(self) except -1 nogil
cdef int update(self, SIZE_t new_pos) except -1 nogil
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
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pxd:67:24: Previous declaration is here
warning: sklearn_pmml_model/tree/_criterion.pyx:905:29: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
Error compiling Cython file:
------------------------------------------------------------
...
"""Mean squared error impurity criterion.
MSE = var_left + var_right
"""
cdef double node_impurity(self) nogil:
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pyx:905:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
double weighted_n_samples, SIZE_t* samples, SIZE_t start,
SIZE_t end) except -1 nogil
cdef int reset(self) except -1 nogil
cdef int reverse_reset(self) except -1 nogil
cdef int update(self, SIZE_t new_pos) except -1 nogil
cdef double node_impurity(self) nogil
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pxd:64:29: Previous declaration is here
warning: sklearn_pmml_model/tree/_criterion.pyx:919:42: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
Error compiling Cython file:
------------------------------------------------------------
...
for k in range(self.n_outputs):
impurity -= (sum_total[k] / self.weighted_n_node_samples)**2.0
return impurity / self.n_outputs
cdef double proxy_impurity_improvement(self) nogil:
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pyx:919:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
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) nogil
cdef double proxy_impurity_improvement(self) nogil
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pxd:69:42: Previous declaration is here
warning: sklearn_pmml_model/tree/_criterion.pyx:945:31: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
Error compiling Cython file:
------------------------------------------------------------
...
proxy_impurity_right += sum_right[k] * sum_right[k]
return (proxy_impurity_left / self.weighted_n_left +
proxy_impurity_right / self.weighted_n_right)
cdef void children_impurity(self, double* impurity_left,
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pyx:945:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
SIZE_t end) except -1 nogil
cdef int reset(self) except -1 nogil
cdef int reverse_reset(self) except -1 nogil
cdef int update(self, SIZE_t new_pos) except -1 nogil
cdef double node_impurity(self) nogil
cdef void children_impurity(self, double* impurity_left,
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pxd:65:31: Previous declaration is here
warning: sklearn_pmml_model/tree/_criterion.pyx:1226:24: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
Error compiling Cython file:
------------------------------------------------------------
...
self.weighted_n_right = (self.weighted_n_node_samples -
self.weighted_n_left)
self.pos = new_pos
return 0
cdef void node_value(self, double* dest) nogil:
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pyx:1226:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef int reverse_reset(self) except -1 nogil
cdef int update(self, SIZE_t new_pos) except -1 nogil
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
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pxd:67:24: Previous declaration is here
warning: sklearn_pmml_model/tree/_criterion.pyx:1233:29: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
Error compiling Cython file:
------------------------------------------------------------
...
cdef SIZE_t k
for k in range(self.n_outputs):
dest[k] = <double> self.node_medians[k]
cdef double node_impurity(self) nogil:
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pyx:1233:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
double weighted_n_samples, SIZE_t* samples, SIZE_t start,
SIZE_t end) except -1 nogil
cdef int reset(self) except -1 nogil
cdef int reverse_reset(self) except -1 nogil
cdef int update(self, SIZE_t new_pos) except -1 nogil
cdef double node_impurity(self) nogil
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pxd:64:29: Previous declaration is here
warning: sklearn_pmml_model/tree/_criterion.pyx:1258:31: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
Error compiling Cython file:
------------------------------------------------------------
...
impurity += fabs(y_ik - self.node_medians[k]) * w
return impurity / (self.weighted_n_node_samples * self.n_outputs)
cdef void children_impurity(self, double* p_impurity_left,
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pyx:1258:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
SIZE_t end) except -1 nogil
cdef int reset(self) except -1 nogil
cdef int reverse_reset(self) except -1 nogil
cdef int update(self, SIZE_t new_pos) except -1 nogil
cdef double node_impurity(self) nogil
cdef void children_impurity(self, double* impurity_left,
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pxd:65:31: Previous declaration is here
warning: sklearn_pmml_model/tree/_criterion.pyx:1321:42: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
Error compiling Cython file:
------------------------------------------------------------
...
diff = mean_left - mean_right
improvement = n_left * n_right * diff^2 / (n_left + n_right)
"""
cdef double proxy_impurity_improvement(self) nogil:
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pyx:1321:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
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) nogil
cdef double proxy_impurity_improvement(self) nogil
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pxd:69:42: Previous declaration is here
warning: sklearn_pmml_model/tree/_criterion.pyx:1351:36: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
Error compiling Cython file:
------------------------------------------------------------
...
diff = (self.weighted_n_right * total_sum_left -
self.weighted_n_left * total_sum_right)
return diff * diff / (self.weighted_n_left * self.weighted_n_right)
cdef double impurity_improvement(self, double impurity) nogil:
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pyx:1351:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef int update(self, SIZE_t new_pos) except -1 nogil
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) nogil
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pxd:68:36: Previous declaration is here
build configuration selected: optimized
Compiling sklearn_pmml_model/tree/_tree.pyx because it changed.
Compiling sklearn_pmml_model/tree/quad_tree.pyx because it changed.
Compiling sklearn_pmml_model/tree/_criterion.pyx because it changed.
Compiling sklearn_pmml_model/tree/_splitter.pyx because it changed.
Compiling sklearn_pmml_model/tree/_utils.pyx because it changed.
Compiling sklearn_pmml_model/ensemble/_gradient_boosting.pyx because it changed.
[1/6] Cythonizing sklearn_pmml_model/ensemble/_gradient_boosting.pyx
[2/6] Cythonizing sklearn_pmml_model/tree/_criterion.pyx
Traceback (most recent call last):
File "/usr/local/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
~~~~^^
File "/usr/local/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "/tmp/pip-build-env-12g_qred/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 332, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-12g_qred/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 302, in _get_build_requires
self.run_setup()
~~~~~~~~~~~~~~^^
File "/tmp/pip-build-env-12g_qred/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 503, in run_setup
super().run_setup(setup_script=setup_script)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-12g_qred/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 318, in run_setup
exec(code, locals())
~~~~^^^^^^^^^^^^^^^^
File "<string>", line 165, in <module>
File "/tmp/pip-build-env-12g_qred/overlay/lib/python3.13/site-packages/Cython/Build/Dependencies.py", line 1154, in cythonize
cythonize_one(*args)
~~~~~~~~~~~~~^^^^^^^
File "/tmp/pip-build-env-12g_qred/overlay/lib/python3.13/site-packages/Cython/Build/Dependencies.py", line 1321, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: sklearn_pmml_model/tree/_criterion.pyx
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
[root@fb5a52c52787 sklearn-pmml-model]# pip3 install numpy==1.26.4
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting numpy==1.26.4
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/65/6e/09db70a523a96d25e115e71cc56a6f9031e7b8cd166c1ac8438307c14058/numpy-1.26.4.tar.gz (15.8 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [19 lines of output]
+ /usr/local/bin/python3.13 /tmp/pip-install-o5pqx_6_/numpy_6c98df9ba1534e688f61edc749c3bba3/vendored-meson/meson/meson.py setup /tmp/pip-install-o5pqx_6_/numpy_6c98df9ba1534e688f61edc749c3bba3 /tmp/pip-install-o5pqx_6_/numpy_6c98df9ba1534e688f61edc749c3bba3/.mesonpy-l5c0leg2 -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=/tmp/pip-install-o5pqx_6_/numpy_6c98df9ba1534e688f61edc749c3bba3/.mesonpy-l5c0leg2/meson-python-native-file.ini
The Meson build system
Version: 1.2.99
Source dir: /tmp/pip-install-o5pqx_6_/numpy_6c98df9ba1534e688f61edc749c3bba3
Build dir: /tmp/pip-install-o5pqx_6_/numpy_6c98df9ba1534e688f61edc749c3bba3/.mesonpy-l5c0leg2
Build type: native build
Project name: NumPy
Project version: 1.26.4
C compiler for the host machine: cc (gcc 7.3.1 "cc (GCC) 7.3.1 20180303 (Red Hat 7.3.1-5)")
C linker for the host machine: cc ld.bfd 2.28-11
C++ compiler for the host machine: c++ (gcc 7.3.1 "c++ (GCC) 7.3.1 20180303 (Red Hat 7.3.1-5)")
C++ linker for the host machine: c++ ld.bfd 2.28-11
Cython compiler for the host machine: cython (cython 3.0.11)
Host machine cpu family: x86_64
Host machine cpu: x86_64
../meson.build:28:4: ERROR: Problem encountered: NumPy requires GCC >= 8.4
A full log can be found at /tmp/pip-install-o5pqx_6_/numpy_6c98df9ba1534e688f61edc749c3bba3/.mesonpy-l5c0leg2/meson-logs/meson-log.txt
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
I updated gcc as this(CentOS 7):
yum install centos-release-scl
yum install devtoolset-8-gcc devtoolset-8-gcc-c++
scl enable devtoolset-8 bash
And it still report error:
pip3 install sklearn-pmml-model==1.0.7
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
Collecting sklearn-pmml-model==1.0.7
Using cached https://pypi.tuna.tsinghua.edu.cn/packages/0c/c9/0137ca1537b2943c336da08fa358cf1496b251f94c25c2ffd2acd8266523/sklearn_pmml_model-1.0.7.tar.gz (895 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... error
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> [775 lines of output]
/tmp/pip-build-env-h5nhhj_8/overlay/lib/python3.13/site-packages/Cython/Compiler/Main.py:381: FutureWarning: Cython directive 'language_level' not set, using '3str' for now (Py3). This has changed from earlier releases! File: /tmp/pip-install-1b2e27qu/sklearn-pmml-model_865534a1d1ea4b5794bb74fc03d4bc1a/sklearn_pmml_model/ensemble/_gradient_boosting.pyx
tree = Parsing.p_module(s, pxd, full_module_name)
warning: sklearn_pmml_model/tree/quad_tree.pxd:76:42: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/quad_tree.pxd:79:29: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/quad_tree.pxd:80:27: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/quad_tree.pxd:88:24: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/quad_tree.pxd:89:24: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:108:20: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:112:24: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:119:25: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:123:19: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:146:22: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:150:16: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:175:22: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:176:24: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:177:26: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:182:16: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:198:22: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:200:20: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:202:19: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:203:16: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:204:17: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:205:39: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:206:38: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:221:20: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:224:47: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:227:19: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:228:16: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:229:49: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_criterion.pxd:64:29: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_criterion.pxd:65:31: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_criterion.pxd:67:24: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_criterion.pxd:68:36: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_criterion.pxd:69:42: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_splitter.pxd:96:24: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_splitter.pxd:98:29: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_tree.pxd:36:22: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/ensemble/_gradient_boosting.pyx:45:53: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/ensemble/_gradient_boosting.pyx:263:27: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_criterion.pxd:64:29: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_criterion.pxd:65:31: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_criterion.pxd:67:24: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_criterion.pxd:68:36: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_criterion.pxd:69:42: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/quad_tree.pxd:76:42: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/quad_tree.pxd:79:29: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/quad_tree.pxd:80:27: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/quad_tree.pxd:88:24: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/quad_tree.pxd:89:24: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:108:20: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:112:24: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:119:25: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:123:19: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:146:22: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:150:16: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:175:22: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:176:24: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:177:26: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:182:16: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:198:22: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:200:20: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:202:19: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:203:16: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:204:17: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:205:39: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:206:38: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:221:20: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:224:47: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:227:19: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:228:16: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_utils.pxd:229:49: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
warning: sklearn_pmml_model/tree/_criterion.pyx:116:29: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
Error compiling Cython file:
------------------------------------------------------------
...
New starting index position of the samples in the right child
"""
pass
cdef double node_impurity(self) nogil:
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pyx:116:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
double weighted_n_samples, SIZE_t* samples, SIZE_t start,
SIZE_t end) except -1 nogil
cdef int reset(self) except -1 nogil
cdef int reverse_reset(self) except -1 nogil
cdef int update(self, SIZE_t new_pos) except -1 nogil
cdef double node_impurity(self) nogil
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pxd:64:29: Previous declaration is here
warning: sklearn_pmml_model/tree/_criterion.pyx:126:31: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
Error compiling Cython file:
------------------------------------------------------------
...
primary function of the criterion class.
"""
pass
cdef void children_impurity(self, double* impurity_left,
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pyx:126:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
SIZE_t end) except -1 nogil
cdef int reset(self) except -1 nogil
cdef int reverse_reset(self) except -1 nogil
cdef int update(self, SIZE_t new_pos) except -1 nogil
cdef double node_impurity(self) nogil
cdef void children_impurity(self, double* impurity_left,
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pxd:65:31: Previous declaration is here
warning: sklearn_pmml_model/tree/_criterion.pyx:146:24: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
Error compiling Cython file:
------------------------------------------------------------
...
stored
"""
pass
cdef void node_value(self, double* dest) nogil:
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pyx:146:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef int reverse_reset(self) except -1 nogil
cdef int update(self, SIZE_t new_pos) except -1 nogil
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
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pxd:67:24: Previous declaration is here
warning: sklearn_pmml_model/tree/_criterion.pyx:160:42: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
Error compiling Cython file:
------------------------------------------------------------
...
The memory address where the node value should be stored.
"""
pass
cdef double proxy_impurity_improvement(self) nogil:
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pyx:160:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
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) nogil
cdef double proxy_impurity_improvement(self) nogil
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pxd:69:42: Previous declaration is here
warning: sklearn_pmml_model/tree/_criterion.pyx:178:36: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
Error compiling Cython file:
------------------------------------------------------------
...
self.children_impurity(&impurity_left, &impurity_right)
return (- self.weighted_n_right * impurity_right
- self.weighted_n_left * impurity_left)
cdef double impurity_improvement(self, double impurity) nogil:
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pyx:178:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef int update(self, SIZE_t new_pos) except -1 nogil
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) nogil
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pxd:68:36: Previous declaration is here
warning: sklearn_pmml_model/tree/_criterion.pyx:492:29: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
Error compiling Cython file:
------------------------------------------------------------
...
sum_total += self.sum_stride
self.pos = new_pos
return 0
cdef double node_impurity(self) nogil:
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pyx:492:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
double weighted_n_samples, SIZE_t* samples, SIZE_t start,
SIZE_t end) except -1 nogil
cdef int reset(self) except -1 nogil
cdef int reverse_reset(self) except -1 nogil
cdef int update(self, SIZE_t new_pos) except -1 nogil
cdef double node_impurity(self) nogil
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pxd:64:29: Previous declaration is here
warning: sklearn_pmml_model/tree/_criterion.pyx:495:31: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
Error compiling Cython file:
------------------------------------------------------------
...
return 0
cdef double node_impurity(self) nogil:
pass
cdef void children_impurity(self, double* impurity_left,
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pyx:495:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
SIZE_t end) except -1 nogil
cdef int reset(self) except -1 nogil
cdef int reverse_reset(self) except -1 nogil
cdef int update(self, SIZE_t new_pos) except -1 nogil
cdef double node_impurity(self) nogil
cdef void children_impurity(self, double* impurity_left,
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pxd:65:31: Previous declaration is here
warning: sklearn_pmml_model/tree/_criterion.pyx:499:24: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
Error compiling Cython file:
------------------------------------------------------------
...
cdef void children_impurity(self, double* impurity_left,
double* impurity_right) nogil:
pass
cdef void node_value(self, double* dest) nogil:
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pyx:499:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef int reverse_reset(self) except -1 nogil
cdef int update(self, SIZE_t new_pos) except -1 nogil
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
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pxd:67:24: Previous declaration is here
warning: sklearn_pmml_model/tree/_criterion.pyx:534:29: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
Error compiling Cython file:
------------------------------------------------------------
...
The cross-entropy is then defined as
cross-entropy = -\sum_{k=0}^{K-1} count_k log(count_k)
"""
cdef double node_impurity(self) nogil:
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pyx:534:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
double weighted_n_samples, SIZE_t* samples, SIZE_t start,
SIZE_t end) except -1 nogil
cdef int reset(self) except -1 nogil
cdef int reverse_reset(self) except -1 nogil
cdef int update(self, SIZE_t new_pos) except -1 nogil
cdef double node_impurity(self) nogil
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pxd:64:29: Previous declaration is here
warning: sklearn_pmml_model/tree/_criterion.pyx:556:31: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
Error compiling Cython file:
------------------------------------------------------------
...
sum_total += self.sum_stride
return entropy / self.n_outputs
cdef void children_impurity(self, double* impurity_left,
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pyx:556:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
SIZE_t end) except -1 nogil
cdef int reset(self) except -1 nogil
cdef int reverse_reset(self) except -1 nogil
cdef int update(self, SIZE_t new_pos) except -1 nogil
cdef double node_impurity(self) nogil
cdef void children_impurity(self, double* impurity_left,
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pxd:65:31: Previous declaration is here
warning: sklearn_pmml_model/tree/_criterion.pyx:616:29: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
Error compiling Cython file:
------------------------------------------------------------
...
index = \sum_{k=0}^{K-1} count_k (1 - count_k)
= 1 - \sum_{k=0}^{K-1} count_k ** 2
"""
cdef double node_impurity(self) nogil:
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pyx:616:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
double weighted_n_samples, SIZE_t* samples, SIZE_t start,
SIZE_t end) except -1 nogil
cdef int reset(self) except -1 nogil
cdef int reverse_reset(self) except -1 nogil
cdef int update(self, SIZE_t new_pos) except -1 nogil
cdef double node_impurity(self) nogil
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pxd:64:29: Previous declaration is here
warning: sklearn_pmml_model/tree/_criterion.pyx:643:31: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
Error compiling Cython file:
------------------------------------------------------------
...
sum_total += self.sum_stride
return gini / self.n_outputs
cdef void children_impurity(self, double* impurity_left,
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pyx:643:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
SIZE_t end) except -1 nogil
cdef int reset(self) except -1 nogil
cdef int reverse_reset(self) except -1 nogil
cdef int update(self, SIZE_t new_pos) except -1 nogil
cdef double node_impurity(self) nogil
cdef void children_impurity(self, double* impurity_left,
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pxd:65:31: Previous declaration is here
warning: sklearn_pmml_model/tree/_criterion.pyx:883:29: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
Error compiling Cython file:
------------------------------------------------------------
...
sum_right[k] = sum_total[k] - sum_left[k]
self.pos = new_pos
return 0
cdef double node_impurity(self) nogil:
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pyx:883:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
double weighted_n_samples, SIZE_t* samples, SIZE_t start,
SIZE_t end) except -1 nogil
cdef int reset(self) except -1 nogil
cdef int reverse_reset(self) except -1 nogil
cdef int update(self, SIZE_t new_pos) except -1 nogil
cdef double node_impurity(self) nogil
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pxd:64:29: Previous declaration is here
warning: sklearn_pmml_model/tree/_criterion.pyx:886:31: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
Error compiling Cython file:
------------------------------------------------------------
...
return 0
cdef double node_impurity(self) nogil:
pass
cdef void children_impurity(self, double* impurity_left,
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pyx:886:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
SIZE_t end) except -1 nogil
cdef int reset(self) except -1 nogil
cdef int reverse_reset(self) except -1 nogil
cdef int update(self, SIZE_t new_pos) except -1 nogil
cdef double node_impurity(self) nogil
cdef void children_impurity(self, double* impurity_left,
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pxd:65:31: Previous declaration is here
warning: sklearn_pmml_model/tree/_criterion.pyx:890:24: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
Error compiling Cython file:
------------------------------------------------------------
...
cdef void children_impurity(self, double* impurity_left,
double* impurity_right) nogil:
pass
cdef void node_value(self, double* dest) nogil:
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pyx:890:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef int reverse_reset(self) except -1 nogil
cdef int update(self, SIZE_t new_pos) except -1 nogil
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
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pxd:67:24: Previous declaration is here
warning: sklearn_pmml_model/tree/_criterion.pyx:905:29: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
Error compiling Cython file:
------------------------------------------------------------
...
"""Mean squared error impurity criterion.
MSE = var_left + var_right
"""
cdef double node_impurity(self) nogil:
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pyx:905:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
double weighted_n_samples, SIZE_t* samples, SIZE_t start,
SIZE_t end) except -1 nogil
cdef int reset(self) except -1 nogil
cdef int reverse_reset(self) except -1 nogil
cdef int update(self, SIZE_t new_pos) except -1 nogil
cdef double node_impurity(self) nogil
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pxd:64:29: Previous declaration is here
warning: sklearn_pmml_model/tree/_criterion.pyx:919:42: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
Error compiling Cython file:
------------------------------------------------------------
...
for k in range(self.n_outputs):
impurity -= (sum_total[k] / self.weighted_n_node_samples)**2.0
return impurity / self.n_outputs
cdef double proxy_impurity_improvement(self) nogil:
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pyx:919:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
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) nogil
cdef double proxy_impurity_improvement(self) nogil
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pxd:69:42: Previous declaration is here
warning: sklearn_pmml_model/tree/_criterion.pyx:945:31: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
Error compiling Cython file:
------------------------------------------------------------
...
proxy_impurity_right += sum_right[k] * sum_right[k]
return (proxy_impurity_left / self.weighted_n_left +
proxy_impurity_right / self.weighted_n_right)
cdef void children_impurity(self, double* impurity_left,
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pyx:945:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
SIZE_t end) except -1 nogil
cdef int reset(self) except -1 nogil
cdef int reverse_reset(self) except -1 nogil
cdef int update(self, SIZE_t new_pos) except -1 nogil
cdef double node_impurity(self) nogil
cdef void children_impurity(self, double* impurity_left,
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pxd:65:31: Previous declaration is here
warning: sklearn_pmml_model/tree/_criterion.pyx:1226:24: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
Error compiling Cython file:
------------------------------------------------------------
...
self.weighted_n_right = (self.weighted_n_node_samples -
self.weighted_n_left)
self.pos = new_pos
return 0
cdef void node_value(self, double* dest) nogil:
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pyx:1226:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef int reverse_reset(self) except -1 nogil
cdef int update(self, SIZE_t new_pos) except -1 nogil
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
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pxd:67:24: Previous declaration is here
warning: sklearn_pmml_model/tree/_criterion.pyx:1233:29: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
Error compiling Cython file:
------------------------------------------------------------
...
cdef SIZE_t k
for k in range(self.n_outputs):
dest[k] = <double> self.node_medians[k]
cdef double node_impurity(self) nogil:
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pyx:1233:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
double weighted_n_samples, SIZE_t* samples, SIZE_t start,
SIZE_t end) except -1 nogil
cdef int reset(self) except -1 nogil
cdef int reverse_reset(self) except -1 nogil
cdef int update(self, SIZE_t new_pos) except -1 nogil
cdef double node_impurity(self) nogil
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pxd:64:29: Previous declaration is here
warning: sklearn_pmml_model/tree/_criterion.pyx:1258:31: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
Error compiling Cython file:
------------------------------------------------------------
...
impurity += fabs(y_ik - self.node_medians[k]) * w
return impurity / (self.weighted_n_node_samples * self.n_outputs)
cdef void children_impurity(self, double* p_impurity_left,
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pyx:1258:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
SIZE_t end) except -1 nogil
cdef int reset(self) except -1 nogil
cdef int reverse_reset(self) except -1 nogil
cdef int update(self, SIZE_t new_pos) except -1 nogil
cdef double node_impurity(self) nogil
cdef void children_impurity(self, double* impurity_left,
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pxd:65:31: Previous declaration is here
warning: sklearn_pmml_model/tree/_criterion.pyx:1321:42: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
Error compiling Cython file:
------------------------------------------------------------
...
diff = mean_left - mean_right
improvement = n_left * n_right * diff^2 / (n_left + n_right)
"""
cdef double proxy_impurity_improvement(self) nogil:
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pyx:1321:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
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) nogil
cdef double proxy_impurity_improvement(self) nogil
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pxd:69:42: Previous declaration is here
warning: sklearn_pmml_model/tree/_criterion.pyx:1351:36: Implicit noexcept declaration is deprecated. Function declaration should contain 'noexcept' keyword.
Error compiling Cython file:
------------------------------------------------------------
...
diff = (self.weighted_n_right * total_sum_left -
self.weighted_n_left * total_sum_right)
return diff * diff / (self.weighted_n_left * self.weighted_n_right)
cdef double impurity_improvement(self, double impurity) nogil:
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pyx:1351:9: Signature not compatible with previous declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef int update(self, SIZE_t new_pos) except -1 nogil
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) nogil
^
------------------------------------------------------------
sklearn_pmml_model/tree/_criterion.pxd:68:36: Previous declaration is here
build configuration selected: optimized
Compiling sklearn_pmml_model/tree/_tree.pyx because it changed.
Compiling sklearn_pmml_model/tree/quad_tree.pyx because it changed.
Compiling sklearn_pmml_model/tree/_criterion.pyx because it changed.
Compiling sklearn_pmml_model/tree/_splitter.pyx because it changed.
Compiling sklearn_pmml_model/tree/_utils.pyx because it changed.
Compiling sklearn_pmml_model/ensemble/_gradient_boosting.pyx because it changed.
[1/6] Cythonizing sklearn_pmml_model/ensemble/_gradient_boosting.pyx
[2/6] Cythonizing sklearn_pmml_model/tree/_criterion.pyx
Traceback (most recent call last):
File "/usr/local/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
main()
~~~~^^
File "/usr/local/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
~~~~^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.13/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
return hook(config_settings)
File "/tmp/pip-build-env-h5nhhj_8/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 332, in get_requires_for_build_wheel
return self._get_build_requires(config_settings, requirements=[])
~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-h5nhhj_8/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 302, in _get_build_requires
self.run_setup()
~~~~~~~~~~~~~~^^
File "/tmp/pip-build-env-h5nhhj_8/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 516, in run_setup
super().run_setup(setup_script=setup_script)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/pip-build-env-h5nhhj_8/overlay/lib/python3.13/site-packages/setuptools/build_meta.py", line 318, in run_setup
exec(code, locals())
~~~~^^^^^^^^^^^^^^^^
File "<string>", line 165, in <module>
File "/tmp/pip-build-env-h5nhhj_8/overlay/lib/python3.13/site-packages/Cython/Build/Dependencies.py", line 1154, in cythonize
cythonize_one(*args)
~~~~~~~~~~~~~^^^^^^^
File "/tmp/pip-build-env-h5nhhj_8/overlay/lib/python3.13/site-packages/Cython/Build/Dependencies.py", line 1321, in cythonize_one
raise CompileError(None, pyx_file)
Cython.Compiler.Errors.CompileError: sklearn_pmml_model/tree/_criterion.pyx
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.