| evaluation.fowlkesmallows | R Documentation |
Evaluation predictions of a classification model according to the Fowlkes–Mallows index.
evaluation.fowlkesmallows(
predictions,
gt,
average = NULL,
positive = NULL,
...
)
predictions |
The predictions of a classification model ( |
gt |
The ground truth ( |
average |
How the per-class values are combined. These measures are defined for one class against all the others, so a single number requires either picking that class or averaging.
Averages run over the classes of the ground truth. A class that no observation is predicted to belong to has an undefined precision; it is read as 0, the usual convention. |
positive |
The label of the positive class, used by |
... |
Other parameters. |
The evaluation of the predictions (numeric value).
evaluation.accuracy, evaluation.fmeasure, evaluation.goodness, evaluation.jaccard, evaluation.kappa, evaluation.precision,
evaluation.precision, evaluation.recall,
evaluation
require (datasets)
data (iris)
d = iris
levels (d [, 5]) = c ("+", "+", "-") # Building a two classes dataset
d = splitdata (d, 5)
model.nb = NB (d$train.x, d$train.y)
pred.nb = predict (model.nb, d$test.x)
evaluation.fowlkesmallows (pred.nb, d$test.y)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.