CLUSTCERR Cluster classification error on indiviual clusterings
[E,N} = CLUSTCERR(LABC,LABT)
DescriptionThis routine evaluates a clustering of a dataset A by comparing the true labels LABT of A with cluster labels derived from a cluster prototype object. This can be understood as evaluating the clusterings by active labeling. A is a labeled dataset with M objects. LABT is a vertical vector containing the true numeric labels of A. LABT = GETNLAB(A). LABC is a set of K clustering results with indices pointing for every object to a cluster prototype in A. E is the fraction of misclassified objects in A if every cluster is assigned to the class of the object indicated by LABC. This is based on a training set of N prototypes. The classification error E is based on all objects, including the prototypes. In case LABC is an MxK result of a multilevel clustering, E and N are vectors with K elements. Use MCLUSTCERR for a classification result that combines clusterings. Example(s)
randreset; % take care of reproducability
See alsodatasets, mappings, knnc, cluste, clusth, clustk, clustkh, clustm, clustf, clustr, dcluste, dclustf, dclusth, dclustk, dclustm, dclustr, clusteval, clustc, clustnum, clustlcurve,
|