immuneML.ml_methods.clustering package¶
Submodules¶
immuneML.ml_methods.clustering.AgglomerativeClustering module¶
- class immuneML.ml_methods.clustering.AgglomerativeClustering.AgglomerativeClustering(name=None, **kwargs)[source]¶
Bases:
ClusteringMethodAgglomerative clustering method which wraps scikit-learn’s clustering of the same name. Input arguments for the method are the same as supported by scikit-learn (see AgglomerativeClustering scikit-learn documentation for details).
YAML specification:
definitions: ml_methods: my_agglomerative_clustering: AgglomerativeClustering: # arguments as defined by scikit-learn n_clusters: 3 linkage: 'ward'
immuneML.ml_methods.clustering.ClusteringMethod module¶
- class immuneML.ml_methods.clustering.ClusteringMethod.ClusteringMethod(name: str = None)[source]¶
Bases:
objectClustering methods are algorithms which can be used to cluster repertoires, receptors or sequences without using external label information (such as disease or antigen binding state)
These methods can be used in the Clustering instruction.
- DOCS_TITLE = 'Clustering methods'¶
immuneML.ml_methods.clustering.DBSCAN module¶
- class immuneML.ml_methods.clustering.DBSCAN.DBSCAN(name=None, **kwargs)[source]¶
Bases:
ClusteringMethodDBSCAN method which wraps scikit-learn’s clustering of the same name. Input arguments for the method are the same as supported by scikit-learn (see DBSCAN scikit-learn documentation for details).
YAML specification:
definitions: ml_methods: my_dbscan: DBSCAN: # arguments as defined by scikit-learn eps: 0.5 min_samples: 5
immuneML.ml_methods.clustering.HDBSCAN module¶
- class immuneML.ml_methods.clustering.HDBSCAN.HDBSCAN(name=None, **kwargs)[source]¶
Bases:
ClusteringMethodHDBSCAN method which wraps scikit-learn’s clustering of the same name. Input arguments for the method are the same as supported by scikit-learn (see DBSCAN scikit-learn documentation for details).
YAML specification:
definitions: ml_methods: my_hdbscan: HDBSCAN: # arguments as defined by scikit-learn min_cluster_size: 5
immuneML.ml_methods.clustering.KMeans module¶
- class immuneML.ml_methods.clustering.KMeans.KMeans(name=None, **kwargs)[source]¶
Bases:
ClusteringMethodk-means clustering method which wraps scikit-learn’s KMeans. Input arguments for the method are the same as supported by scikit-learn (see KMeans scikit-learn documentation for details).
YAML specification:
definitions: ml_methods: my_kmeans: KMeans: # arguments as defined by scikit-learn n_clusters: 2