multi_predict._C5_rules | R Documentation |

`multi_predict()`

methods for rule-based models`multi_predict()`

methods for rule-based models

## S3 method for class ''_C5_rules'' multi_predict(object, new_data, type = NULL, trees = NULL, ...) ## S3 method for class ''_cubist'' multi_predict(object, new_data, type = NULL, neighbors = NULL, ...) ## S3 method for class ''_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. |

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

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.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.