factory module¶
A factory to create regression models.
This module contains a factory to instantiate a MLRegressionAlgo
from its
class name. It also provides the available regression models and allows testing if a
regression model type is available.
- class gemseo.mlearning.regression.factory.RegressionModelFactory[source]¶
Bases:
MLAlgoFactory
This factory instantiates a
MLRegressionAlgo
from its class name.The class can be either internal or external. In this second case, it can be either implemented in a module referenced in the
GEMSEO_PATH
or in a module The class can be either internal or external. In the second case, it can be either implemented in a module referenced in theGEMSEO_PATH
environment variable or in a module starting withgemseo_
and referenced in thePYTHONPATH
environment variable.- create(ml_algo, **options)¶
Create an instance of a machine learning algorithm.
- is_available(ml_algo)¶
Check the availability of a machine learning algorithm.
- load(directory)¶
Load an instance of machine learning algorithm from the disk.