module mlmodel.piecewise_tree_regression_criterion#

Short summary#

module mlinsights.mlmodel.piecewise_tree_regression_criterion

Implements a base class for a custom criterion to train a decision tree.

source on GitHub

Classes#

class

truncated documentation

SimpleRegressorCriterion

Implements mean square error criterion in a non efficient …

Documentation#

@file @brief Implements a base class for a custom criterion to train a decision tree.

class mlinsights.mlmodel.piecewise_tree_regression_criterion.SimpleRegressorCriterion#

Bases: mlinsights.mlmodel._piecewise_tree_regression_common.CommonRegressorCriterion

Implements mean square error criterion in a non efficient way. The code was inspired from hellinger_distance_criterion.pyx, Cython example of exposing C-computed arrays in Python without data copies, _criterion.pyx. This implementation is not efficient but was made that way on purpose. It adds the features to the class.

__getstate__(self)#
__new__(**kwargs)#
__pyx_vtable__ = <capsule object NULL>#
__reduce_cython__(self)#
__setstate__(self, d)#
__setstate_cython__(self, __pyx_state)#