gemseo.mlearning.clustering.algos.base_clusterer_settings module#
Settings for the clustering algorithms.
- Settings BaseClustererSettings(*, transformer=None, parameters=None, var_names=(), n_clusters=5, random_state=0)[source]#
Bases:
BaseMLUnsupervisedAlgoSettingsThe settings common to all the clustering algorithms.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- Parameters:
- Return type:
None
- n_clusters: PositiveInt = 5#
The number of clusters of the clustering algorithm.
- Constraints:
gt = 0
- random_state: NonNegativeInt | None = 0#
The random state parameter.
If
None, use the global random state instance fromnumpy.random. Creating the model multiple times will produce different results. Ifint, use a new random number generator seeded by this integer. This will produce the same results.