| entropy | R Documentation |
Shannon entropy
entropy(x, base = NULL)
x |
A vector of values, usually character labels as raw instances or as class frequencies. |
base |
A positive or complex number: the base with respect to which logarithms are computed.
Defaults to |
Shannon entropy is a concept from information theory and represents a quantification of the level
of impurity or randomness that exists within a partition with class levels of x.
Entropy.
Other Metrics:
accuracy(),
cross_entropy(),
dice(),
erf(),
erfc(),
erfcinv(),
erfinv(),
gini_impurity(),
huber_loss(),
iou(),
log_cosh_loss(),
mae(),
mape(),
mse(),
msle(),
quantile_loss(),
rmse(),
rmsle(),
rmspe(),
sse(),
stderror(),
vc(),
wape(),
wmape()
entropy(c("no", "no", "yes", "yes", "yes", "no", "yes", "no", "yes", "yes", "yes", "yes", "yes", "no"))
entropy(c("no" = 5, "yes" = 9))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.