File tree Expand file tree Collapse file tree 2 files changed +0
-70
lines changed Expand file tree Collapse file tree 2 files changed +0
-70
lines changed Original file line number Diff line number Diff line change 16
16
Error in `adjust_probability_calibration()`:
17
17
! adjustments that change the hard class predictions must come after adjustments that update the class probability estimates.
18
18
19
- ---
20
-
21
- Code
22
- tailor() %>% adjust_probability_threshold(threshold = 0.4) %>%
23
- adjust_probability_calibration()
24
- Condition
25
- Error in `adjust_probability_calibration()`:
26
- ! adjustments that change the hard class predictions must come after adjustments that update the class probability estimates.
27
-
28
- ---
29
-
30
- Code
31
- tailor() %>% adjust_predictions_custom(veg = "potato") %>%
32
- adjust_probability_threshold(threshold = 0.4) %>%
33
- adjust_probability_calibration()
34
- Condition
35
- Error in `adjust_probability_calibration()`:
36
- ! adjustments that change the hard class predictions must come after adjustments that update the class probability estimates.
37
-
38
19
---
39
20
40
21
Code
56
37
Error in `adjust_probability_threshold()`:
57
38
! adjustments cannot be duplicated: "probability_threshold"
58
39
59
- ---
60
-
61
- Code
62
- tailor() %>% adjust_predictions_custom(veg = "potato") %>%
63
- adjust_probability_threshold(threshold = 0.4) %>%
64
- adjust_probability_threshold(threshold = 0.5) %>%
65
- adjust_probability_calibration()
66
- Condition
67
- Error in `adjust_probability_threshold()`:
68
- ! adjustments cannot be duplicated: "probability_threshold"
69
-
70
- ---
71
-
72
- Code
73
- tailor() %>% adjust_equivocal_zone(value = 0.2) %>%
74
- adjust_probability_threshold(threshold = 0.4)
75
- Condition
76
- Error in `adjust_probability_threshold()`:
77
- ! Equivocal zone addition should come after adjustments that update the class probability estimates or hard class predictions.
78
-
79
40
---
80
41
81
42
Code
Original file line number Diff line number Diff line change @@ -50,21 +50,6 @@ test_that("validation of adjustments (classification)", {
50
50
adjust_probability_calibration()
51
51
)
52
52
53
- expect_snapshot(
54
- error = TRUE ,
55
- tailor() %> %
56
- adjust_probability_threshold(threshold = .4 ) %> %
57
- adjust_probability_calibration()
58
- )
59
-
60
- expect_snapshot(
61
- error = TRUE ,
62
- tailor() %> %
63
- adjust_predictions_custom(veg = " potato" ) %> %
64
- adjust_probability_threshold(threshold = .4 ) %> %
65
- adjust_probability_calibration()
66
- )
67
-
68
53
expect_snapshot(
69
54
error = TRUE ,
70
55
tailor() %> %
@@ -82,22 +67,6 @@ test_that("validation of adjustments (classification)", {
82
67
adjust_probability_calibration()
83
68
)
84
69
85
- expect_snapshot(
86
- error = TRUE ,
87
- tailor() %> %
88
- adjust_predictions_custom(veg = " potato" ) %> %
89
- adjust_probability_threshold(threshold = .4 ) %> %
90
- adjust_probability_threshold(threshold = .5 ) %> %
91
- adjust_probability_calibration()
92
- )
93
-
94
- expect_snapshot(
95
- error = TRUE ,
96
- tailor() %> %
97
- adjust_equivocal_zone(value = .2 ) %> %
98
- adjust_probability_threshold(threshold = .4 )
99
- )
100
-
101
70
expect_snapshot(
102
71
error = TRUE ,
103
72
tailor() %> %
You can’t perform that action at this time.
0 commit comments