Is it possible to get test scores for each iteration of MLPClassifier?

后端 未结 3 1588
无人及你
无人及你 2020-12-03 15:24

I would like to look at the loss curves for training data and test data side by side. Currently it seems straightforward to get the loss on the training set for each iterati

3条回答
  •  天涯浪人
    2020-12-03 15:49

    I use jupyter, this is my code:

    clf = MLPClassifier(hidden_layer_sizes=(10,10,10))
    clf.fit(train_X,train_Y)
    plt.ylabel('cost')
    plt.xlabel('iterations')
    plt.title("Learning rate =" + str(0.001))
    plt.plot(pose_clf.loss_curve_)
    plt.show()
    

    graph

提交回复
热议问题