Description Usage Arguments Value Examples

Get performance metrics for classification predictions

1 | ```
evaluate_classification(predicted, actual)
``` |

`predicted` |
Vector of predicted probabilities |

`actual` |
Vector of realized outcomes, must be 0/1 |

Numeric vector of scores with metric as names

1 | ```
evaluate_classification(c(.7, .1, .6, .9, .4), c(1, 0, 0, 1, 1))
``` |

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.