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

Description Usage Arguments Value Author(s) See Also Examples

View source: R/ComputePerformances.R

Description

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

Usage

1
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.

Author(s)

Camille Champion, Magali Champion

See Also

l1_spectralclustering, l1spectral.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
 #############################################################
 # 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)

l1spectral documentation built on Jan. 27, 2022, 1:07 a.m.