Class TrainingSettings

java.lang.Object
com.azure.resourcemanager.machinelearning.models.TrainingSettings
All Implemented Interfaces:
com.azure.json.JsonSerializable<TrainingSettings>
Direct Known Subclasses:
ClassificationTrainingSettings, ForecastingTrainingSettings, RegressionTrainingSettings

public class TrainingSettings extends Object implements com.azure.json.JsonSerializable<TrainingSettings>
Training related configuration.
  • Constructor Details

    • TrainingSettings

      public TrainingSettings()
      Creates an instance of TrainingSettings class.
  • Method Details

    • enableOnnxCompatibleModels

      public Boolean enableOnnxCompatibleModels()
      Get the enableOnnxCompatibleModels property: Flag for enabling onnx compatible models.
      Returns:
      the enableOnnxCompatibleModels value.
    • withEnableOnnxCompatibleModels

      public TrainingSettings withEnableOnnxCompatibleModels(Boolean enableOnnxCompatibleModels)
      Set the enableOnnxCompatibleModels property: Flag for enabling onnx compatible models.
      Parameters:
      enableOnnxCompatibleModels - the enableOnnxCompatibleModels value to set.
      Returns:
      the TrainingSettings object itself.
    • stackEnsembleSettings

      public StackEnsembleSettings stackEnsembleSettings()
      Get the stackEnsembleSettings property: Stack ensemble settings for stack ensemble run.
      Returns:
      the stackEnsembleSettings value.
    • withStackEnsembleSettings

      public TrainingSettings withStackEnsembleSettings(StackEnsembleSettings stackEnsembleSettings)
      Set the stackEnsembleSettings property: Stack ensemble settings for stack ensemble run.
      Parameters:
      stackEnsembleSettings - the stackEnsembleSettings value to set.
      Returns:
      the TrainingSettings object itself.
    • enableStackEnsemble

      public Boolean enableStackEnsemble()
      Get the enableStackEnsemble property: Enable stack ensemble run.
      Returns:
      the enableStackEnsemble value.
    • withEnableStackEnsemble

      public TrainingSettings withEnableStackEnsemble(Boolean enableStackEnsemble)
      Set the enableStackEnsemble property: Enable stack ensemble run.
      Parameters:
      enableStackEnsemble - the enableStackEnsemble value to set.
      Returns:
      the TrainingSettings object itself.
    • enableVoteEnsemble

      public Boolean enableVoteEnsemble()
      Get the enableVoteEnsemble property: Enable voting ensemble run.
      Returns:
      the enableVoteEnsemble value.
    • withEnableVoteEnsemble

      public TrainingSettings withEnableVoteEnsemble(Boolean enableVoteEnsemble)
      Set the enableVoteEnsemble property: Enable voting ensemble run.
      Parameters:
      enableVoteEnsemble - the enableVoteEnsemble value to set.
      Returns:
      the TrainingSettings object itself.
    • ensembleModelDownloadTimeout

      public Duration ensembleModelDownloadTimeout()
      Get the ensembleModelDownloadTimeout property: During VotingEnsemble and StackEnsemble model generation, multiple fitted models from the previous child runs are downloaded. Configure this parameter with a higher value than 300 secs, if more time is needed.
      Returns:
      the ensembleModelDownloadTimeout value.
    • withEnsembleModelDownloadTimeout

      public TrainingSettings withEnsembleModelDownloadTimeout(Duration ensembleModelDownloadTimeout)
      Set the ensembleModelDownloadTimeout property: During VotingEnsemble and StackEnsemble model generation, multiple fitted models from the previous child runs are downloaded. Configure this parameter with a higher value than 300 secs, if more time is needed.
      Parameters:
      ensembleModelDownloadTimeout - the ensembleModelDownloadTimeout value to set.
      Returns:
      the TrainingSettings object itself.
    • enableModelExplainability

      public Boolean enableModelExplainability()
      Get the enableModelExplainability property: Flag to turn on explainability on best model.
      Returns:
      the enableModelExplainability value.
    • withEnableModelExplainability

      public TrainingSettings withEnableModelExplainability(Boolean enableModelExplainability)
      Set the enableModelExplainability property: Flag to turn on explainability on best model.
      Parameters:
      enableModelExplainability - the enableModelExplainability value to set.
      Returns:
      the TrainingSettings object itself.
    • enableDnnTraining

      public Boolean enableDnnTraining()
      Get the enableDnnTraining property: Enable recommendation of DNN models.
      Returns:
      the enableDnnTraining value.
    • withEnableDnnTraining

      public TrainingSettings withEnableDnnTraining(Boolean enableDnnTraining)
      Set the enableDnnTraining property: Enable recommendation of DNN models.
      Parameters:
      enableDnnTraining - the enableDnnTraining value to set.
      Returns:
      the TrainingSettings object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<TrainingSettings>
      Throws:
      IOException
    • fromJson

      public static TrainingSettings fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of TrainingSettings from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of TrainingSettings if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the TrainingSettings.