Description Usage Arguments Details Examples

Make predictions from a caretStack. This function passes the data to each function in turn to make a matrix of predictions, and then multiplies that matrix by the vector of weights to get a single, combined vector of predictions.

1 2 3 |

`object` |
a |

`newdata` |
a new dataframe to make predictions on |

`se` |
logical, should prediction errors be produced? Default is false. |

`level` |
tolerance/confidence level |

`return_weights` |
a logical indicating whether prediction weights for each model should be returned |

`...` |
arguments to pass to |

Prediction weights are defined as variable importance in the stacked caret model. This is not available for all cases such as where the library model predictions are transformed before being passed to the stacking model.

1 2 3 4 5 6 7 8 9 10 11 12 |

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.