`multi_predict()`

methods for rule-based models`R/C5_rules.R`

, `R/cubist.R`

, `R/rule_fit.R`

`multi_predict.Rd`

`multi_predict()`

methods for rule-based models

# S3 method for `_c5_rules` multi_predict(object, new_data, type = NULL, trees = NULL, ...) # S3 method for `_cubist` multi_predict(object, new_data, type = NULL, neighbors = NULL, ...) # S3 method for `_xrf` multi_predict(object, new_data, type = NULL, penalty = NULL, ...)

object | An object of class |
---|---|

new_data | A rectangular data object, such as a data frame. |

type | A single character value or |

trees | An numeric vector of |

... | Not currently used. |

neighbors | An numeric vector of neighbors values between zero and nine. |

penalty | Non-negative penalty values. |

A tibble with one row for each row of `new_data`

. Multiple
predictions are contained in a list column called `.pred`

. That column has
the standard `parsnip`

prediction column names as well as the column with
the tuning parameter values.

For C5.0 rule-based models, the model fit may contain less boosting
iterations than the number requested. Printing the object will show how many
were used due to early stopping. This can be change using an option in
`C50::C5.0Control()`

. Beware that the number of iterations requested