5c24a8f2ad2241a0377d8e3e3d9edbad87a1723d,tslearn/neighbors.py,KNeighborsTimeSeriesClassifier,predict,#KNeighborsTimeSeriesClassifier#Any#,264

Before Change


        X : array-like, shape (n_ts, sz, d)
            Test samples.
        
        if self.metric == "precomputed" and hasattr(self, "_ts_metric"):
            if self.metric_params is None:
                metric_params = {}
            else:

After Change


                X_ = cdist_dtw(X, self._ts_fit, **metric_params)
            elif self._ts_metric == "softdtw":
                X_ = cdist_soft_dtw(X, self._ts_fit, **metric_params)
            pred = super(KNeighborsTimeSeriesClassifier, self).predict(X_)
            self.metric = self._ts_metric
            return pred
        else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: rtavenar/tslearn
Commit Name: 5c24a8f2ad2241a0377d8e3e3d9edbad87a1723d
Time: 2019-08-19
Author: romain.tavenard@univ-rennes2.fr
File Name: tslearn/neighbors.py
Class Name: KNeighborsTimeSeriesClassifier
Method Name: predict


Project Name: deepmipt/DeepPavlov
Commit Name: 5bab0c451fda1312cf81e9d81319799a03fce181
Time: 2018-12-26
Author: mary.vikhreva@gmail.com
File Name: deeppavlov/models/ner/network.py
Class Name: NerNetwork
Method Name: process_event


Project Name: UFAL-DSG/tgen
Commit Name: e81999a628257fccdf22428af29de4b01561ced1
Time: 2016-04-26
Author: odusek@ufal.mff.cuni.cz
File Name: tgen/embeddings.py
Class Name: ContextDAEmbeddingSeq2SeqExtract
Method Name: get_embeddings