Skip to content

Commit

Permalink
update snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
EmilHvitfeldt committed Jan 27, 2025
1 parent 94971a7 commit c673566
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 15 deletions.
15 changes: 8 additions & 7 deletions tests/testthat/_snaps/arguments.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,29 +12,30 @@
k_means() %>% set_mode()
Condition
Error in `modelenv::stop_incompatible_mode()`:
! Available modes for model type k_means are: 'unknown', 'partition'
x Available modes for model type k_means are:
* "unknown" and "partition".

---

Code
k_means() %>% set_mode(2)
Condition
Error in `modelenv::check_spec_mode_engine_val()`:
! '2' is not a known mode for model `k_means()`.
Error in `set_mode()`:
! 2 is not a known mode for model `k_means()`.

---

Code
k_means() %>% set_mode("haberdashery")
Condition
Error in `modelenv::check_spec_mode_engine_val()`:
! 'haberdashery' is not a known mode for model `k_means()`.
Error in `set_mode()`:
! "haberdashery" is not a known mode for model `k_means()`.

# can't set a mode that isn't allowed by the model spec

Code
set_mode(k_means(), "classification")
Condition
Error in `modelenv::check_spec_mode_engine_val()`:
! 'classification' is not a known mode for model `k_means()`.
Error in `set_mode()`:
! "classification" is not a known mode for model `k_means()`.

4 changes: 2 additions & 2 deletions tests/testthat/_snaps/hier_clust.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
Code
hier_clust(mode = "bogus")
Condition
Error in `modelenv::check_spec_mode_engine_val()`:
! 'bogus' is not a known mode for model `hier_clust()`.
Error in `hier_clust()`:
! "bogus" is not a known mode for model `hier_clust()`.

---

Expand Down
4 changes: 2 additions & 2 deletions tests/testthat/_snaps/k_means.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
Code
k_means(mode = "bogus")
Condition
Error in `modelenv::check_spec_mode_engine_val()`:
! 'bogus' is not a known mode for model `k_means()`.
Error in `k_means()`:
! "bogus" is not a known mode for model `k_means()`.

---

Expand Down
11 changes: 7 additions & 4 deletions tests/testthat/_snaps/tune_cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@
1
}, save_pred = TRUE))
Message
x Fold1: preprocessor 1/1: Error in `get_all_predictors()`:
! The following predi...
x Fold2: preprocessor 1/1: Error in `get_all_predictors()`:
! The following predi...
x Fold1: preprocessor 1/1: Error in `hardhat::mold()`:
! The following predictor ...
x Fold2: preprocessor 1/1: Error in `hardhat::mold()`:
! The following predictor ...
Condition
Warning:
All models failed. See the `.notes` column.
Expand Down Expand Up @@ -112,6 +112,9 @@
Condition
Warning:
The `...` are not used in this function but one or more objects were passed: 'something'
Warning:
`grid_latin_hypercube()` was deprecated in dials 1.3.0.
i Please use `grid_space_filling()` instead.
Output
# Tuning results
# 2-fold cross-validation
Expand Down

0 comments on commit c673566

Please sign in to comment.