For AI agents: the complete documentation index is available at https://docs.dataplatform.ovh.net/llms.txt, the full documentation bundle is available at https://docs.dataplatform.ovh.net/llms-full.txt, and this page is available as Markdown at https://docs.dataplatform.ovh.net/legacy/ml-pipelines-configure-training-custom-estimator.md.
  • 🇬🇧 English
  • Custom estimators

    Warning

    This page describes the Machine Learning Manager, a service of the ForePaaS Legacy Platform that is not available on OVHcloud Data Platform. See the current documentation.

    If you cannot find what you want among the standard estimators, or if you already have a training script on hand, ForePaaS allows you to upload your own estimator to be fitted on your pipeline's data. This can be done either by opening the Training configuration page for the first time, or by changing the algorithm if there is already one.

    machinelearning

    It is necessary to choose a framework for your pipeline. ForePaaS currently supports the following frameworks, details of which can be found on their respective pages:


    Common features from SDK

    Some features provided by the Machine Learning Manager have a common behavior for any custom estimator written in Python, and require you to input additional elements of code in your training script. The following configurations can be integrated:

    Use a validation configuration

    You can connect the validation settings configured during the Training step.

    machinelearning

    If using simple validation, you can get the share allocated to the validation set by including:

    from forepaas.core.settings import ML_CONFIG
    
    # Get ratio of the % size of the validation set
    ratio = ML_CONFIG["train"]["ratio"]

    If using cross-validation, you can get the number of folds chosen by including:

    from forepaas.core.settings import ML_CONFIG
    
    # Get cv as either the number of folds, or False if cross-validation is turned off.
    cv = ML_CONFIG["train"]["execution_options"]["cross_validation"]

    An example for Scikit Learn can be found here.

    Use a validation score function

    You can connect the scoring functions added during the Training step in order to use them for the validation score.

    machinelearning

    You can get the default ⭐ scoring function and turn it into an sklearn scorer by including:

    from forepaas.ml import get_train_scoring_function
    from sklearn.metrics import make_scorer
    
    scoring_function = get_train_scoring_function()

    An example for Scikit Learn can be found here.

    Use hyper-parameters

    You can connect the hyper-parameter list specified in the Tuning step.

    machinelearning

    To get the dictionary of hyper-parameters and their lists of values, include:

    from forepaas.ml import get_hyper_parameters
    
    hyper_parameters = get_hyper_parameters()

    An example for Scikit Learn can be found here.

    Import a custom Scikit Learn script Import a custom Keras script

    Go further

    If you need training or technical assistance to implement our solutions, contact your sales representative or click on this link to get a quote and ask our Professional Services experts for a custom analysis of your project.

    Ask questions, give your feedback and interact directly with the team building the Data Platform on the dedicated Discord channel.

    If you need support with your OVHcloud services, create a request in our Help Centre.

    Join our community of users.