mvtsa.segmentation.RegressionHomogeneity#

class mvtsa.segmentation.RegressionHomogeneity(estimator=None, mode='all_from_others', targets=None, inputs=None, cv=3, max_samples=300, random_state=0)[source]#

Bases: object

Dissimilarity of two segments by cross-prediction.

Parameters:
estimatorregressor, optional

Any scikit-learn regressor (default: ordinary least squares).

mode{“all_from_others”, “targeted”}

Predict every variable from the others, or targets from inputs.

targets, inputssequences of column indices (mode="targeted")
cvint

Folds of the within-segment cross-validation.

The dissimilarity is :math:`maxbigl(0,log(e_{cross}/e_{within})bigr)`
with mean squared errors averaged over both directions and all targets.