mvtsa.segmentation.CostRegression#

class mvtsa.segmentation.CostRegression(targets=(0,), inputs=None, intercept=True, ridge=1e-08)[source]#

Bases: BaseCost

Model-based cost: residual sum of squares of a linear regression of the targets on the inputs inside the segment.

Segments become operating ranges in which one linear input–output model is valid: the energy-targeting segmentation of Abonyi, Kulcsár, Balaton and Nagy (2014), where key energy indicators are regressed on the load, and the detection of changes of the linear input–output relationship behind model predictive controllers (Dobos, 2015).

Parameters:
targets, inputssequences of column indices
interceptbool
ridgefloat

Ridge regularization of the normal equations.

n_params()[source]#

Number of free parameters of one segment model (for BIC/MDL penalties).

Examples using mvtsa.segmentation.CostRegression#

Operating ranges of an energy indicator

Operating ranges of an energy indicator