def METHOD_NAME(self, size=None):
    X_train_new = self.featureTransform(self.X_train, self.shapelets)
    model = LogisticRegression(support_size=size)
    model.fit(X_train_new, self.y_train)
    self.index = np.nonzero(model.coef_)[0]
    X_test_new = self.featureTransform(
        self.X_test, self.shapelets, self.index)
    y_pred = model.predict(X_test_new)
    return y_pred