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:
objectDissimilarity of two segments by cross-prediction.
- Parameters:
- estimator
regressor,optional Any scikit-learn regressor (default: ordinary least squares).
- mode{“all_from_others”, “targeted”}
Predict every variable from the others, or
targetsfrominputs.- targets, inputs
sequencesofcolumnindices(mode="targeted") - cv
int 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.
- estimator