1f64e8d111a67ed8c97f9251f299805496b3644f,tslearn/svm.py,TimeSeriesSVC,decision_function,#TimeSeriesSVC#Any#,249
Before Change
return self.svm_estimator_.predict(sklearn_X)
def decision_function(self, X):
if self.kernel in self.variable_length_kernels:
X = check_array(X, allow_nd=True, force_all_finite=False)
else:
X = check_array(X, allow_nd=True)
check_is_fitted(self, ["svm_estimator_", "_X_fit"])
X = check_dims(X, self._X_fit)
if self.kernel in self.variable_length_kernels:
assert self.kernel == "gak"
sklearn_X = cdist_gak(X, self._X_fit,
sigma=numpy.sqrt(self.gamma / 2.))
else:
sklearn_X = _prepare_ts_datasets_sklearn(X)
return self.svm_estimator_.decision_function(sklearn_X)
def predict_log_proba(self, X):
if self.kernel in self.variable_length_kernels:
After Change
return self.svm_estimator_.predict(sklearn_X)
def decision_function(self, X):
sklearn_X, _ = self._preprocess_sklearn(X, set_X_fit=False)
check_is_fitted(self, ["svm_estimator_", "_X_fit"])
return self.svm_estimator_.decision_function(sklearn_X)
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 26
Instances
Project Name: rtavenar/tslearn
Commit Name: 1f64e8d111a67ed8c97f9251f299805496b3644f
Time: 2019-08-20
Author: romain.tavenard@univ-rennes2.fr
File Name: tslearn/svm.py
Class Name: TimeSeriesSVC
Method Name: decision_function
Project Name: rtavenar/tslearn
Commit Name: 1f64e8d111a67ed8c97f9251f299805496b3644f
Time: 2019-08-20
Author: romain.tavenard@univ-rennes2.fr
File Name: tslearn/svm.py
Class Name: TimeSeriesSVC
Method Name: predict_log_proba
Project Name: rtavenar/tslearn
Commit Name: 1f64e8d111a67ed8c97f9251f299805496b3644f
Time: 2019-08-20
Author: romain.tavenard@univ-rennes2.fr
File Name: tslearn/svm.py
Class Name: TimeSeriesSVR
Method Name: predict
Project Name: rtavenar/tslearn
Commit Name: 1f64e8d111a67ed8c97f9251f299805496b3644f
Time: 2019-08-20
Author: romain.tavenard@univ-rennes2.fr
File Name: tslearn/svm.py
Class Name: TimeSeriesSVC
Method Name: predict
Project Name: rtavenar/tslearn
Commit Name: 1f64e8d111a67ed8c97f9251f299805496b3644f
Time: 2019-08-20
Author: romain.tavenard@univ-rennes2.fr
File Name: tslearn/svm.py
Class Name: TimeSeriesSVC
Method Name: decision_function
Project Name: rtavenar/tslearn
Commit Name: 1f64e8d111a67ed8c97f9251f299805496b3644f
Time: 2019-08-20
Author: romain.tavenard@univ-rennes2.fr
File Name: tslearn/svm.py
Class Name: TimeSeriesSVC
Method Name: predict_proba