85aabb5014e22659ac722280607a1f4b44e1fb32,tslearn/shapelets.py,ShapeletModel,predict,#ShapeletModel#Any#,452

Before Change


        X = check_dims(X, X_fit_dims=self._X_fit_dims)

        categorical_preds = self.predict_proba(X)
        if self.categorical_y_:
            return categorical_preds
        else:
            return self.label_binarizer_.inverse_transform(categorical_preds)

    def predict_proba(self, X):
        Predict class probability for a given set of time series.

        Parameters

After Change


        y_label = numpy.array(
            [self.classes_[ind] for ind in y_ind]
        )
        return y_label

    def predict_proba(self, X):
        Predict class probability for a given set of time series.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: rtavenar/tslearn
Commit Name: 85aabb5014e22659ac722280607a1f4b44e1fb32
Time: 2020-05-03
Author: romain.tavenard@univ-rennes2.fr
File Name: tslearn/shapelets.py
Class Name: ShapeletModel
Method Name: predict


Project Name: alfredfrancis/ai-chatbot-framework
Commit Name: d3d75272141f7dfabcddb743d42c0c6d367e5f4d
Time: 2018-04-22
Author: alfredfranciz@gmail.com
File Name: app/nlu/intent_classifer.py
Class Name: IntentClassifier
Method Name: predict


Project Name: alfredfrancis/ai-chatbot-framework
Commit Name: d68beca6f553622b92f2709cf984023dbf284e98
Time: 2016-12-23
Author: alfred.francis@pearldatadirect.com
File Name: core/intentClassifier.py
Class Name: IntentClassifier
Method Name: predict