Seems like mlp._predict may be deprecated(?), as the following error is raised when running 16.4.3 (scikit-learn v0.24.2):
AttributeError Traceback (most recent call last)
in
----> 1 mlp._predict(x)[0]
AttributeError: 'MLPClassifier' object has no attribute '_predict'
From scikit-learn, seems like the method to use is predict_proba(x).
So, mlp.predict_proba(x)[0] seems to work correctly.
scikit-learn source
Seems like
mlp._predictmay be deprecated(?), as the following error is raised when running 16.4.3 (scikit-learn v0.24.2):From scikit-learn, seems like the method to use is predict_proba(x).
So,
mlp.predict_proba(x)[0]seems to work correctly.scikit-learn source