gemseo / mlearning / cluster

factory module

Clustering model factory

This module contains a factory to instantiate a MLClusteringAlgo from its class name. The class can be internal to GEMSEO or located in an external module whose path is provided to the constructor. It also provides a list of available clustering models and allows you to test if a clustering model type is available.

class gemseo.mlearning.cluster.factory.ClusteringModelFactory[source]

Bases: gemseo.mlearning.core.factory.MLAlgoFactory

This factory instantiates a MLClusteringAlgo from its class name. The class can be internal to GEMSEO or located in an external module whose path is provided to the constructor.

Initializes the factory: scans the directories to search for subclasses of MLClusteringAlgo. Searches in “GEMSEO_PATH” and gemseo.mlearning.cluster.