Skip to content

Commit

Permalink
fix a warning in autoplot
Browse files Browse the repository at this point in the history
  • Loading branch information
cregouby committed Apr 17, 2024
1 parent 1af391f commit c3ca8ab
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/testthat/test-plot.R
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,9 @@ test_that("Autoplot of pretrain then fit scenario, pretrain without checkpoints,
print(autoplot(fit_no_checkpoint))
)
fit_with_checkpoint <- tabnet_fit(Sale_Price ~., data = small_ames, tabnet_model = fit_no_checkpoint, epochs = 2, checkpoint_epoch = 1)
expect_no_error(
print(autoplot(fit_with_checkpoint))
expect_warning(
print(autoplot(fit_with_checkpoint)),
"Removed 2 rows containing missing values"
)

})
Expand Down

0 comments on commit c3ca8ab

Please sign in to comment.