skdownscale.pointwise_models.PiecewiseLinearRegression¶
- class skdownscale.pointwise_models.PiecewiseLinearRegression(n_segments=7, fit_option='auto', pwlf_kwargs=None)[source]¶
Piecewise Linear Regression
- Parameters
- n_segmentsint, default=7
The desired number of line segments.
- fit_option{“auto”, “fast”, or “arrm” }, default=’auto’
The method to use for fitting the piecewise linear regression.
- pwlf_kwargsdict, default=None
Additional keyword arguments to pass to the PiecewiseLinFit init method.
See also
TODO
- Attributes
- TODO
Methods
get_params
([deep])Get parameters for this estimator.
score
(X, y[, sample_weight])Return the coefficient of determination of the prediction.
set_params
(**params)Set the parameters of this estimator.
fit
predict
Methods
__init__
([n_segments, fit_option, pwlf_kwargs])fit
(X, y, **kwargs)get_params
([deep])Get parameters for this estimator.
predict
(X)score
(X, y[, sample_weight])Return the coefficient of determination of the prediction.
set_params
(**params)Set the parameters of this estimator.