Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How refit on train+val set? #1124

Open
EdgedSquirrels opened this issue Aug 25, 2024 · 2 comments
Open

How refit on train+val set? #1124

EdgedSquirrels opened this issue Aug 25, 2024 · 2 comments

Comments

@EdgedSquirrels
Copy link

How should I refit the model on the whole dataset containing both training and validation sets?

It seems that both nf.fit and nf.cross_validation don't support this feature, but AutoModels have refit_with_val. Could I set refit_with_val on non-auto models?

@marcopeix
Copy link
Contributor

You can simply combine both sets into a single dataframe and pass it to the fit method. Alternatively, if you used val_size, simply set it to 0 to use all of the data.

With cross_validation, you can use the refit parameter and it to True.

@EdgedSquirrels
Copy link
Author

Hi @marcopeix,

Thanks for your answer. I’m not sure that when early stopping is enabled, will the number of training steps recorded and used during refit, or it will use max_steps during refit?

Also I’ve tried cross_validation with refit=True, but I only saw a progress bar running without another progress bar running after that. I’m not sure that whether cross_validation supports refit when val_size is given instead of n_windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants