Skip to content

the validation set accuracy is somewhat higher than the test set accuracy #657

Closed Answered by d-kleine
Jessen-Li asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Jessen-Li,

Unfortunately, @rasbt is currently recovering from an injury, he will reply to your question as soon as he’s feeling better. Therefore I’ll do my best to answer your question in the meantime.

But in the def train_classifier_simple, there is no tuning hyper parameters to fit validation set, right?

Yeah, I would say that you are right about that this is not implemented in the code. I suppose this is just a general statement explaining how val and test sets are used in ML workflows, not specific to the train_classifier_simple code.

I hope this answers your question! Please let me know if you have any further questions - I’m happy to help. 🙂

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@rasbt
Comment options

rasbt Jul 8, 2025
Maintainer

Answer selected by Jessen-Li
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants