Learn R Programming

l1spectral (version 0.99.6)

ComputePerformances: Compute the performances of the l1-spectral clustering algorithm

Description

This function computes the performances of the l1-spectral clustering algorithm in terms of Normalized Mutualized Information (NMI).

Usage

ComputePerformances(Results, A)

Arguments

Results

Output of the function l1_spectralclustering().

A

The adjacency matrix of the graph to cluster.

Value

The Normalized Mutualized Information (NMI), Adjusted Mutualized Information (AMI) and Adjusted Rand Index (ARI) scores.

See Also

l1_spectralclustering, l1spectral.

Examples

Run this code
# NOT RUN {
 #############################################################
 # Computing the performances
 #############################################################

 data(ToyData)

 results <- l1_spectralclustering(A = ToyData$A_hat, pen = "lasso",
             k=2, elements = c(1,4))

 ComputePerformances(Results=results,A=ToyData$A)

# }

Run the code above in your browser using DataLab