immuneML.ml_methods.clustering package¶
Submodules¶
immuneML.ml_methods.clustering.ClusteringMethod module¶
- class immuneML.ml_methods.clustering.ClusteringMethod.ClusteringMethod(name: str = None)[source]¶
Bases:
object
Clustering 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.KMeans module¶
- class immuneML.ml_methods.clustering.KMeans.KMeans(name=None, **kwargs)[source]¶
Bases:
ClusteringMethod
k-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