I'm trying to build an ensemble learner using PiecewiseTreeRegressors. In doing so, the parameter "sample_weight" is utilized during fitting of the estimator. This throws an error here:
|
sum = sample_weight.sum() |
when executing line 136 in piecewise_tree_regression.py:
|
dec = LinearRegressorCriterion.create(xs, ys, ws) |
AttributeError: 'mlinsights.mlmodel.piecewise_tree_regression_crite' object has no attribute 'sum'
I'm trying to build an ensemble learner using PiecewiseTreeRegressors. In doing so, the parameter "sample_weight" is utilized during fitting of the estimator. This throws an error here:
mlinsights/mlinsights/mlmodel/piecewise_tree_regression_criterion_linear.pyx
Line 150 in c23988e
when executing line 136 in piecewise_tree_regression.py:
mlinsights/mlinsights/mlmodel/piecewise_tree_regression.py
Line 136 in c23988e
AttributeError: 'mlinsights.mlmodel.piecewise_tree_regression_crite' object has no attribute 'sum'