'Perform classification on an array of test vectors X.
The predicted class C for each sample in X is returned.
Parameters
X : array-like, shape = [n_samples, n_features]
Returns
C : array, shape = [n_samples]'

def predict(self, X):

    d = self._decision_function(X)
    y_pred = self.classes_.take(d.argmax(1))
    return y_pred
