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 ? Machine Learning
avec Scikit-Learn
Voir le programme détaillé
Classe « DisjointSet »

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

Signature de la méthode merge

def merge(self, x, y) 

Description

help(DisjointSet.merge)

Merge the subsets of `x` and `y`.

The smaller subset (the child) is merged into the larger subset (the
parent). If the subsets are of equal size, the root element which was
first inserted into the disjoint set is selected as the parent.

Parameters
----------
x, y : hashable object
    Elements to merge.

Returns
-------
merged : bool
    True if `x` and `y` were in disjoint sets, False otherwise.


Vous êtes un professionnel et vous avez besoin d'une formation ? Programmation Python
Les compléments
Voir le programme détaillé