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

Supplying validation set manually #97

Open
sametsoekel opened this issue Jul 5, 2022 · 1 comment
Open

Supplying validation set manually #97

sametsoekel opened this issue Jul 5, 2022 · 1 comment
Labels
question Further information is requested

Comments

@sametsoekel
Copy link

Hi,

I'm aware of valid_split argument in tabnet_config() but it uses a proportion of train set as validation set. I have standalone validation sets, how can I use them during training goes on a separate data ?

Thanks in advance.

@cregouby
Copy link
Collaborator

cregouby commented Jul 7, 2022

Hello @sametsoekel
There is not such a possibility for now in the package.

The easiest way to achieve it is to make a tabnet_fit() loop without split on your training-set, resuming the previous epoch weights via from_model= configuration option, and predict on your validation-set at each epoch to compute your val-loss.
You will be able to see the end-to-end training loss with autoplot() as it is accumulated in the model.

The more performant way is to modify the training loop in

tabnet_train_supervised <- function(obj, x, y, config = tabnet_config(), epoch_shift=0L) {
for your need with your datasets

hope it helps,

@cregouby cregouby added the question Further information is requested label Jul 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants