Skip to content

Sample weights for PiecewiseTreeRegressor #111

@jakebasilico

Description

@jakebasilico

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:

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'

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