ppn.fit(X_train_std, y_train)
の部分をpython - Is it possible to get test scores for each iteration of MLPClassifier? - Stack Overflowを参考に書き換えて
scores_train = [] for _ in range(40): ppn.partial_fit(X_train_std, y_train, np.unique(y_train)) scores_train.append(ppn.score(X_train_std, y_train)) fig, ax = plt.subplots(1, sharex=True, sharey=True) ax.plot(scores_train) ax.set_title('Train') fig.suptitle("Accuracy over epochs", fontsize=14) plt.show()
すれば良いのかな・・・なんか収束してなさそうな図は得られた。