self._X_fit = X
self.classes_ = numpy.unique(y)
_, sz, d = X.shape
sklearn_X = _prepare_ts_datasets_sklearn(X)
gamma = self.gamma
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)