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

Bugfix/from model plot #150

Merged
merged 4 commits into from
Feb 16, 2024
Merged

Bugfix/from model plot #150

merged 4 commits into from
Feb 16, 2024

Conversation

cregouby
Copy link
Collaborator

@cregouby cregouby commented Feb 10, 2024

Fix #148 and fix #149.

  • Remove the unused $loss level in the list of collected metrics along training. This simplifies the data wrangling for ggplot::autoplot() as well.

The following training sequence now produce the expected plot

library(tabnet)
data("ames", package = "modeldata")
fit_no_checkpoint <- tabnet_fit(Sale_Price ~., data = ames, epochs = 14, valid_split = 0.2, checkpoint_epoch = 15, batch_size = 64)
fit_with_checkpoint <- tabnet_fit(Sale_Price ~., data = ames, tabnet_model = fit_no_checkpoint,epochs = 6, checkpoint_epoch = 1)
autoplot(fit_with_checkpoint)

image

@cregouby cregouby requested a review from dfalbel February 10, 2024 16:44
@cregouby cregouby merged commit 2ed05b7 into main Feb 16, 2024
5 of 7 checks passed
@cregouby cregouby deleted the bugfix/from_model_plot branch February 16, 2024 17:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant