Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Vous êtes un professionnel et vous avez besoin d'une formation ? Sensibilisation à
l'Intelligence Artificielle
Voir le programme détaillé
Classe « DisjointSet »

Méthode scipy.cluster.hierarchy.DisjointSet.subset_size

Signature de la méthode subset_size

def subset_size(self, x) 

Description

help(DisjointSet.subset_size)

Get the size of the subset containing `x`.

Note that this method is faster than ``len(self.subset(x))`` because
the size is directly read off an internal field, without the need to
instantiate the full subset.

Parameters
----------
x : hashable object
    Input element.

Returns
-------
result : int
    Size of the subset containing `x`.


Vous êtes un professionnel et vous avez besoin d'une formation ? Deep Learning avec Python
et Keras et Tensorflow
Voir le programme détaillé