Pulls confusion matrix metrics from predicted and observed labels, works for both binomial and multinomial. Calls caret confusionMatrix() and then returns as a vector.

1 | ```
getCMVals(pred, obs)
``` |

`pred` |
vector of predicted labels |

`obs` |
vector of observed labels |

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.