accuracy {frbf}R Documentation

Calculates the accuracy of a matrix

Description

Calculates the accuracy of a given matrix.

Usage

accuracy(accuracy_matrix, classification_vector, config, return_hit_vector = TRUE)

Arguments

accuracy_matrix data matrix with accurate classification
classification_vector the classification to verify accuracy
config the configuration
return_hit_vector if true it will return accuracy ratio per cluster and total hit ration, otherwise it will return the total number of hits

Details

Compares the obtained classification and the real classification to check the accuracy.

Value

Returns the total number of hits or accuracy ratio per cluster and total hit ration

Note

This function is part of the frbf implementation and is for internal use only.

Author(s)

Fernando Martins

See Also

RemoraConfiguration


[Package frbf version 1.0.1 Index]