'Predict using the multi-layer perceptron classifier
Parameters
X : {array-like, sparse matrix}, shape (n_samples, n_features)
The input data.
Returns
y : array-like, shape (n_samples,) or (n_samples, n_classes)
The predicted classes.'

def predict(self, X):

    check_is_fitted(self, 'coefs_')
    y_pred = self._predict(X)
    if (self.n_outputs_ == 1):
        y_pred = y_pred.ravel()
    return self._label_binarizer.inverse_transform(y_pred)
