evclust.metrics#

This module contains the metrics functions using to evaluate credal results

Module Contents#

evclust.metrics.build_matrices(F)[source]#
evclust.metrics.pairwise_mass(clus)[source]#

Computes relational representations for credal partition such as generated by a credal method.

evclust.metrics.credalRI(clus1, clus2)[source]#

Computes generalizations of the Rand index to compare credal partitions.

Parameters :#

clus1:

Relational representation of the first credal partition such as generated by a credal method.

clus2:

Relational representation of the second credal partition such as generated by a credal method.

Returns :#

RI (float):

Credal Rand indices.

References:#

In Denoeux et al. (2018), two generalizations of the Rand index for comparing credal partitions are defined: one is based on distances between mass function, the other one is based on distances.

evclust.metrics.nonspecificity(mass, F)[source]#

Compute the nonspecificity of a credal partition.

Parameters:
  • (n (mass ( ndarray) – The credal partition.

  • size)) (F) – The credal partition.

  • (array) (F) – The array of length of focalsets.

Returns:

The nonspecificity of the credal partition.

Return type:

NS (float)