eval_report_clusters: Evaluation Report for Clustering

View source: R/measures_clusterings.R

eval_report_clustersR Documentation

Evaluation Report for Clustering

Description

Compute various evaluation measures for a predicted clustering using a ground truth clustering as a reference.

Usage

eval_report_clusters(true, pred)

Arguments

true

ground truth clustering represented as a membership vector. Each entry corresponds to an element and the value identifies the assigned cluster. The specific values of the cluster identifiers are arbitrary.

pred

predicted clustering represented as a membership vector.

Value

Returns a list containing the following measures:

homogeneity

see homogeneity

completeness

see completeness

v_measure

see v_measure

rand_index

see rand_index

adj_rand_index

see adj_rand_index

variation_info

see variation_info

mutual_info

see mutual_info

fowlkes_mallows

see fowlkes_mallows

Examples

true <- c(1,1,1,2,2)  # ground truth clustering
pred <- c(1,1,2,2,2)  # predicted clustering
eval_report_clusters(true, pred)


clevr documentation built on Sept. 16, 2023, 5:06 p.m.