Learn R Programming

eve (version 1.0)

m2two.k: Comparison of the class k versus the rest

Description

This function allows to compare the class k versus the others for a multiclass problem.

Usage

m2two.k(mmat,k=1)

Value

This function returns a 2 x 2 confusion matrix which can be used for evaluating a classifier. The class k is compared to the others.

Arguments

mmat

a square numerical-valued confusion matrix.

k

the index of the class to compare to the others.

Author

Doulaye Dembele

References

H. Cramer. Mathematical Methods of Statistics.
Princeton Univ Press, 1946.

E.B. Fowlkes and C.L. Mallows. A method for Comparing Two Hierarchical Clusterings.
J Am Stat Assoc, 1983, v78, n383, pp553-569

A.K. Jain and R. Dubes. Algorithms for Clustering Data.
Prentice Hall, Englewood, New Jersey, 1988.

Dembele D. (2025), The Eigenvalues Entropy as a Classifier Evaluation Measure. arXiv:2511.01904

Examples

Run this code
   mmat <- matrix(c(50,0,0,0,35,15,0,7,34), ncol=3)
   m2two.k(mmat,2)

Run the code above in your browser using DataLab