41e9b243d893eca09615bf00f211950e2a69455b,tslearn/svm.py,TimeSeriesSVR,fit,#TimeSeriesSVR#Any#Any#Any#,387

Before Change



    def fit(self, X, y, sample_weight=None):
        X = check_array(X, allow_nd=True)
        y = column_or_1d(y, warn=True)
        X = check_dims(X, X_fit=None)

        self.X_fit_ = X
        self.classes_ = numpy.unique(y)

        _, sz, d = X.shape
        sklearn_X = _prepare_ts_datasets_sklearn(X)

After Change


        return X_[self.svm_estimator_.support_]

    def fit(self, X, y, sample_weight=None):
        X, y = check_X_y(X, allow_nd=True)
        X = check_dims(X, X_fit=None)

        self.X_fit_ = X
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: rtavenar/tslearn
Commit Name: 41e9b243d893eca09615bf00f211950e2a69455b
Time: 2019-07-26
Author: givdwiel.vandewiele@ugent.be
File Name: tslearn/svm.py
Class Name: TimeSeriesSVR
Method Name: fit


Project Name: rtavenar/tslearn
Commit Name: 41e9b243d893eca09615bf00f211950e2a69455b
Time: 2019-07-26
Author: givdwiel.vandewiele@ugent.be
File Name: tslearn/shapelets.py
Class Name: ShapeletModel
Method Name: fit


Project Name: rtavenar/tslearn
Commit Name: 41e9b243d893eca09615bf00f211950e2a69455b
Time: 2019-07-26
Author: givdwiel.vandewiele@ugent.be
File Name: tslearn/svm.py
Class Name: TimeSeriesSVC
Method Name: fit