3

I am using MLPClassifier in python and I am trying to use the loss_curve_ attribute but I have this error "'MLPClassifier' object has no attribute 'loss_curve_' ". Any ideas of what import I need? I have already tried the "from sklearn import metrics" but it didnt work.

  • 1
    Can you show slightly more of your code? – doctorlove Jan 14 '19 at 12:30
  • 6
    Yes sorry I forgot to do so. Eventually I found out that in the MLPClassifier function I had solver="lbfgs", but only the solver="sgd" can give me the losses (loss functionI mean) in every step, and then I can use the .loss_curve_ – George Andreadis Jan 15 '19 at 13:21

0 Answers0