Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

NMI

calculates normalized mutual information


Description

calculates normalized mutual information, a metric that is commonly used to compare clustering results

Usage

NMI(g1, g2)

Arguments

g1

a vector of cluster labels

g2

a vector of cluster labels (same length as g1)

Value

NMI value

Author(s)

Tianxi Li, Elizaveta Levina, Ji Zhu
Maintainer: Tianxi Li tianxili@umich.edu

Examples

dt <- BlockModel.Gen(30,300,K=3,beta=0.2,rho=0.9,simple=FALSE,power=TRUE)


A <- dt$A


ssc <- reg.SSP(A,K=3,lap=TRUE)

NMI(ssc$cluster,dt$g)

randnet

Random Network Model Selection and Parameter Tuning

v0.2
GPL (>= 2)
Authors
Tianxi Li, Elizaveta Levina, Ji Zhu
Initial release
2019-02-10

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.