Classifier error rate > 1?

Hi @Kalanit,

It seems that you are mistaking about what the validate method returns.

When you call learn.validate(data.valid_dl), it will return 2 things:

  • The first value is the value of your loss
  • The second value is the value of your error rate on this particular data

As you have said, having an error rate > 1 has no sense, and in your particular case, it is 0.3611

Note: you can pass a metrics argument to the validate method (e.g: learn.validate(data.valid_dl, metrics=[accuracy])) and it will return the accuracy directly

5 Likes