|
140 | 140 | Error in `check_outcome()`: |
141 | 141 | ! For a regression model, the outcome should be `numeric`, not a `factor`. |
142 | 142 |
|
| 143 | +--- |
| 144 | + |
| 145 | + Code |
| 146 | + check_outcome(NULL, reg_spec) |
| 147 | + Condition |
| 148 | + Error: |
| 149 | + ! `linear_reg()` was unable to find an outcome. |
| 150 | + i Ensure that you have specified an outcome column and that it hasn't been removed in pre-processing. |
| 151 | + |
| 152 | +--- |
| 153 | + |
| 154 | + Code |
| 155 | + check_outcome(tibble::new_tibble(list(), nrow = 10), reg_spec) |
| 156 | + Condition |
| 157 | + Error: |
| 158 | + ! `linear_reg()` was unable to find an outcome. |
| 159 | + i Ensure that you have specified an outcome column and that it hasn't been removed in pre-processing. |
| 160 | + |
| 161 | +--- |
| 162 | + |
| 163 | + Code |
| 164 | + fit(reg_spec, ~mpg, mtcars) |
| 165 | + Condition |
| 166 | + Error: |
| 167 | + ! `linear_reg()` was unable to find an outcome. |
| 168 | + i Ensure that you have specified an outcome column and that it hasn't been removed in pre-processing. |
| 169 | + |
143 | 170 | --- |
144 | 171 |
|
145 | 172 | Code |
|
148 | 175 | Error in `check_outcome()`: |
149 | 176 | ! For a classification model, the outcome should be a `factor`, not a `integer`. |
150 | 177 |
|
| 178 | +--- |
| 179 | + |
| 180 | + Code |
| 181 | + check_outcome(NULL, class_spec) |
| 182 | + Condition |
| 183 | + Error: |
| 184 | + ! `logistic_reg()` was unable to find an outcome. |
| 185 | + i Ensure that you have specified an outcome column and that it hasn't been removed in pre-processing. |
| 186 | + |
| 187 | +--- |
| 188 | + |
| 189 | + Code |
| 190 | + check_outcome(tibble::new_tibble(list(), nrow = 10), class_spec) |
| 191 | + Condition |
| 192 | + Error: |
| 193 | + ! `logistic_reg()` was unable to find an outcome. |
| 194 | + i Ensure that you have specified an outcome column and that it hasn't been removed in pre-processing. |
| 195 | + |
| 196 | +--- |
| 197 | + |
| 198 | + Code |
| 199 | + fit(class_spec, ~mpg, mtcars) |
| 200 | + Condition |
| 201 | + Error: |
| 202 | + ! `logistic_reg()` was unable to find an outcome. |
| 203 | + i Ensure that you have specified an outcome column and that it hasn't been removed in pre-processing. |
| 204 | + |
151 | 205 | --- |
152 | 206 |
|
153 | 207 | Code |
|
0 commit comments