798f945eadec05362ce8687cc83793fc8eab4d73,tslearn/svm.py,TimeSeriesSVC,fit,#TimeSeriesSVC#Any#Any#Any#,199

Before Change


        kernel = self.kernel
        if gamma == "auto":
            gamma = gamma_soft_dtw(to_time_series_dataset(X))
        if kernel == "gak":
            kernel = GAKKernel(sz, d, gamma)

        self.svm_estimator_ = SVC(
            C=self.C, kernel=kernel, degree=self.degree,
            gamma=gamma, coef0=self.coef0, shrinking=self.shrinking,
            probability=self.probability, tol=self.tol,

After Change



    def fit(self, X, y, sample_weight=None):
        if self.kernel in self.variable_length_kernels:
            X, y = check_X_y(X, y, allow_nd=True, force_all_finite=False)
        else:
            X, y = check_X_y(X, y, allow_nd=True)
        X = check_dims(X, X_fit=None)
        X = to_time_series_dataset(X)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: rtavenar/tslearn
Commit Name: 798f945eadec05362ce8687cc83793fc8eab4d73
Time: 2019-08-20
Author: romain.tavenard@univ-rennes2.fr
File Name: tslearn/svm.py
Class Name: TimeSeriesSVC
Method Name: fit


Project Name: rtavenar/tslearn
Commit Name: 798f945eadec05362ce8687cc83793fc8eab4d73
Time: 2019-08-20
Author: romain.tavenard@univ-rennes2.fr
File Name: tslearn/svm.py
Class Name: TimeSeriesSVR
Method Name: fit


Project Name: metric-learn/metric-learn
Commit Name: 3e38fe09a87e6ef05289f3cbe6ffa03e2dc716e8
Time: 2017-03-02
Author: perimosocordiae@gmail.com
File Name: metric_learn/mlkr.py
Class Name: MLKR
Method Name: _process_inputs