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

def predict(self, X):

    check_is_fitted(self, 'coefs_')
    y_pred = self._predict(X)
    if (y_pred.shape[1] == 1):
        return y_pred.ravel()
    return y_pred
