View source: R/accuracy_fncs.R
Calculates the logloss defined:
\frac{1}{N}∑_i^N y_{i} log(p_i) similar to multiclass_logloss
but for a two-class problem
1 | class_logloss(p_vec, class_vec, w_vec = NULL)
|
p_vec |
a vector of predicted probabilities for the positive class |
class_vec |
A vector of class labels |
w_vec |
An optional vector of observation weights |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.