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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the enableDnnTraining property: Enable recommendation of DNN models.Get the enableModelExplainability property: Flag to turn on explainability on best model.Get the enableOnnxCompatibleModels property: Flag for enabling onnx compatible models.Get the enableStackEnsemble property: Enable stack ensemble run.Get the enableVoteEnsemble property: Enable voting ensemble run.Get the ensembleModelDownloadTimeout property: During VotingEnsemble and StackEnsemble model generation, multiple fitted models from the previous child runs are downloaded.static TrainingSettingsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of TrainingSettings from the JsonReader.Get the stackEnsembleSettings property: Stack ensemble settings for stack ensemble run.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withEnableDnnTraining(Boolean enableDnnTraining) Set the enableDnnTraining property: Enable recommendation of DNN models.withEnableModelExplainability(Boolean enableModelExplainability) Set the enableModelExplainability property: Flag to turn on explainability on best model.withEnableOnnxCompatibleModels(Boolean enableOnnxCompatibleModels) Set the enableOnnxCompatibleModels property: Flag for enabling onnx compatible models.withEnableStackEnsemble(Boolean enableStackEnsemble) Set the enableStackEnsemble property: Enable stack ensemble run.withEnableVoteEnsemble(Boolean enableVoteEnsemble) Set the enableVoteEnsemble property: Enable voting ensemble run.withEnsembleModelDownloadTimeout(Duration ensembleModelDownloadTimeout) Set the ensembleModelDownloadTimeout property: During VotingEnsemble and StackEnsemble model generation, multiple fitted models from the previous child runs are downloaded.withStackEnsembleSettings(StackEnsembleSettings stackEnsembleSettings) Set the stackEnsembleSettings property: Stack ensemble settings for stack ensemble run.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
TrainingSettings
public TrainingSettings()Creates an instance of TrainingSettings class.
-
-
Method Details
-
enableOnnxCompatibleModels
Get the enableOnnxCompatibleModels property: Flag for enabling onnx compatible models.- Returns:
- the enableOnnxCompatibleModels value.
-
withEnableOnnxCompatibleModels
Set the enableOnnxCompatibleModels property: Flag for enabling onnx compatible models.- Parameters:
enableOnnxCompatibleModels- the enableOnnxCompatibleModels value to set.- Returns:
- the TrainingSettings object itself.
-
stackEnsembleSettings
Get the stackEnsembleSettings property: Stack ensemble settings for stack ensemble run.- Returns:
- the stackEnsembleSettings value.
-
withStackEnsembleSettings
Set the stackEnsembleSettings property: Stack ensemble settings for stack ensemble run.- Parameters:
stackEnsembleSettings- the stackEnsembleSettings value to set.- Returns:
- the TrainingSettings object itself.
-
enableStackEnsemble
Get the enableStackEnsemble property: Enable stack ensemble run.- Returns:
- the enableStackEnsemble value.
-
withEnableStackEnsemble
Set the enableStackEnsemble property: Enable stack ensemble run.- Parameters:
enableStackEnsemble- the enableStackEnsemble value to set.- Returns:
- the TrainingSettings object itself.
-
enableVoteEnsemble
Get the enableVoteEnsemble property: Enable voting ensemble run.- Returns:
- the enableVoteEnsemble value.
-
withEnableVoteEnsemble
Set the enableVoteEnsemble property: Enable voting ensemble run.- Parameters:
enableVoteEnsemble- the enableVoteEnsemble value to set.- Returns:
- the TrainingSettings object itself.
-
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
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
Get the enableModelExplainability property: Flag to turn on explainability on best model.- Returns:
- the enableModelExplainability value.
-
withEnableModelExplainability
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
Get the enableDnnTraining property: Enable recommendation of DNN models.- Returns:
- the enableDnnTraining value.
-
withEnableDnnTraining
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
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<TrainingSettings>- Throws:
IOException
-
fromJson
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.
-