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