8574d53937ee4bc0c657916fd2537af86d1a5db6,tslearn/svm.py,TimeSeriesSVC,fit,#TimeSeriesSVC#Any#Any#Any#,201

Before Change


        if len(X.shape) == 2:
            warnings.warn("2-Dimensional data passed. Assuming these are "
                          "{} 1-dimensional timeseries".format(X.shape[0]))
            X = X.reshape((X.shape) + (1,))

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

After 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)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


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


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


Project Name: rtavenar/tslearn
Commit Name: eb194c4f73db1c511afad8559d8eb118391644a8
Time: 2020-04-18
Author: francois-33
File Name: tslearn/early_classification.py
Class Name: NonMyopicEarlyClassification
Method Name: fit