ConvergenceWarning while running MLPClassifier

Viewed 11

Code:

mlpc = MLPClassifier(hidden_layer_sizes = (11,11,11), max_iter = 500)  
mlpc.fit(X_train, y_train)
pred_mlpc = mlpc.predict(X_test)

Warning Received: C:\Users\JC_IS\Documents\1_Professional_Training\Programming\Python_Files\envs\DataScience\lib\site-packages\sklearn\neural_network_multilayer_perceptron.py:702: ConvergenceWarning: Stochastic Optimizer: Maximum iterations (500) reached and the optimization hasn't converged yet. warnings.warn(

My data set is from the winequality-red.csv used in the Simplilearn 'Python for Beginners' tutorial, lesson 21, Scikit Learn Library.

I've checked and double checked the instructor's code, and I've copied it exactly, but he does not get this warning, but I do.

0 Answers
Related