View source: R/class_weights.R
| class_weights | R Documentation | 
class_weights
class_weights(labels, case = 1, mu = 0.15)
| labels | vector of labels. | 
| case | choose the weight function. | 
| mu | scalar to the log case. | 
list with weigths to keras
\donotrun{
labels <- sample(1:7, 100, T)
class_weights(labels)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.