|
85 | 85 | Error in `adjust_probability_threshold()`:
|
86 | 86 | ! Equivocal zone addition should come after adjustments that update the class probability estimates or hard class predictions.
|
87 | 87 |
|
| 88 | +# validation of adjustments (incompatible types) |
| 89 | + |
| 90 | + Code |
| 91 | + tailor() %>% adjust_numeric_calibration() %>% adjust_probability_threshold() |
| 92 | + Condition |
| 93 | + Error in `adjust_probability_threshold()`: |
| 94 | + ! Can't compose adjustments for different input types. |
| 95 | + i Adjustment `adjust_numeric_calibration()` operates on numerics while `adjust_probability_threshold()` operates on probabilities. |
| 96 | + |
| 97 | +--- |
| 98 | + |
| 99 | + Code |
| 100 | + tailor() %>% adjust_probability_calibration("logistic") %>% |
| 101 | + adjust_probability_threshold(threshold = 0.4) %>% adjust_numeric_range( |
| 102 | + lower_limit = 2) |
| 103 | + Condition |
| 104 | + Error in `adjust_numeric_range()`: |
| 105 | + ! Can't compose adjustments for different input types. |
| 106 | + i Adjustment `adjust_numeric_range()` operates on numerics while `adjust_probability_calibration()` and `adjust_probability_threshold()` operate on probabilities. |
| 107 | + |
| 108 | +--- |
| 109 | + |
| 110 | + Code |
| 111 | + tailor() %>% adjust_numeric_calibration() %>% adjust_numeric_range(lower_limit = 2) %>% |
| 112 | + adjust_probability_threshold(threshold = 0.4) |
| 113 | + Condition |
| 114 | + Error in `adjust_probability_threshold()`: |
| 115 | + ! Can't compose adjustments for different input types. |
| 116 | + i Adjustments `adjust_numeric_calibration()` and `adjust_numeric_range()` operate on numerics while `adjust_probability_threshold()` operates on probabilities. |
| 117 | + |
| 118 | +--- |
| 119 | + |
| 120 | + Code |
| 121 | + tailor() %>% adjust_predictions_custom(veg = "potato") %>% |
| 122 | + adjust_numeric_calibration() %>% adjust_probability_threshold() |
| 123 | + Condition |
| 124 | + Error in `adjust_probability_threshold()`: |
| 125 | + ! Can't compose adjustments for different input types. |
| 126 | + i Adjustment `adjust_numeric_calibration()` operates on numerics while `adjust_probability_threshold()` operates on probabilities. |
| 127 | + |
| 128 | +--- |
| 129 | + |
| 130 | + Code |
| 131 | + tailor() %>% adjust_predictions_custom(veg = "potato") %>% |
| 132 | + adjust_probability_calibration("logistic") %>% adjust_probability_threshold( |
| 133 | + threshold = 0.4) %>% adjust_numeric_range(lower_limit = 2) |
| 134 | + Condition |
| 135 | + Error in `adjust_numeric_range()`: |
| 136 | + ! Can't compose adjustments for different input types. |
| 137 | + i Adjustment `adjust_numeric_range()` operates on numerics while `adjust_probability_calibration()` and `adjust_probability_threshold()` operate on probabilities. |
| 138 | + |
| 139 | +--- |
| 140 | + |
| 141 | + Code |
| 142 | + tailor() %>% adjust_predictions_custom(veg = "potato") %>% |
| 143 | + adjust_numeric_calibration() %>% adjust_numeric_range(lower_limit = 2) %>% |
| 144 | + adjust_probability_threshold(threshold = 0.4) |
| 145 | + Condition |
| 146 | + Error in `adjust_probability_threshold()`: |
| 147 | + ! Can't compose adjustments for different input types. |
| 148 | + i Adjustments `adjust_numeric_calibration()` and `adjust_numeric_range()` operate on numerics while `adjust_probability_threshold()` operates on probabilities. |
| 149 | + |
0 commit comments