Skip to content

Commit 8b06064

Browse files
committed
updated snapshots
1 parent d197506 commit 8b06064

File tree

3 files changed

+4
-20
lines changed

3 files changed

+4
-20
lines changed

tests/testthat/_snaps/nearest_neighbor_kknn.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,5 @@
11
# kknn execution
22

3-
Code
4-
fit_xy(hpc_basic, control = ctrl, x = hpc[, num_pred], y = hpc$input_fields)
5-
Condition
6-
Error in `check_outcome()`:
7-
! For a classification model, the outcome should be a `factor`, not a `numeric`.
8-
9-
---
10-
113
Code
124
fit(hpc_basic, hpc_bad_form, data = hpc, control = ctrl)
135
Condition

tests/testthat/_snaps/predict_formats.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
class = class == "VF"))
1515
Condition
1616
Error in `check_outcome()`:
17-
! For a classification model, the outcome should be a `factor`, not a `logical`.
17+
! For a classification model, the outcome should be <factor>, not <logical>.
1818

1919
---
2020

@@ -23,7 +23,7 @@
2323
class = ifelse(class == "VF", 1, 0)))
2424
Condition
2525
Error in `check_outcome()`:
26-
! For a classification model, the outcome should be a `factor`, not a `numeric`.
26+
! For a classification model, the outcome should be <factor>, not <numeric>.
2727

2828
---
2929

@@ -32,5 +32,5 @@
3232
dplyr::mutate(class = as.character(class)))
3333
Condition
3434
Error in `check_outcome()`:
35-
! For a classification model, the outcome should be a `factor`, not a `character`.
35+
! For a classification model, the outcome should be <factor>, not <character>.
3636

tests/testthat/_snaps/rand_forest_ranger.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,7 @@
44
res <- fit(lc_ranger, funded_amnt ~ Class + term, data = lending_club, control = ctrl)
55
Condition
66
Error in `check_outcome()`:
7-
! For a classification model, the outcome should be a `factor`, not a `integer`.
8-
9-
---
10-
11-
Code
12-
res <- fit(bad_ranger_cls, funded_amnt ~ term, data = lending_club, control = ctrl)
13-
Condition
14-
Error in `check_outcome()`:
15-
! For a classification model, the outcome should be a `factor`, not a `integer`.
7+
! For a classification model, the outcome should be <factor>, not <integer>.
168

179
# ranger classification probabilities
1810

0 commit comments

Comments
 (0)