Class ClassificationTrainingSettings
java.lang.Object
com.azure.resourcemanager.machinelearning.models.TrainingSettings
com.azure.resourcemanager.machinelearning.models.ClassificationTrainingSettings
- All Implemented Interfaces:
com.azure.json.JsonSerializable<TrainingSettings>
Classification Training related configuration.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ClassificationTrainingSettings class. -
Method Summary
Modifier and TypeMethodDescriptionGet the allowedTrainingAlgorithms property: Allowed models for classification task.Get the blockedTrainingAlgorithms property: Blocked models for classification task.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ClassificationTrainingSettings from the JsonReader.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withAllowedTrainingAlgorithms(List<ClassificationModels> allowedTrainingAlgorithms) Set the allowedTrainingAlgorithms property: Allowed models for classification task.withBlockedTrainingAlgorithms(List<ClassificationModels> blockedTrainingAlgorithms) Set the blockedTrainingAlgorithms property: Blocked models for classification task.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 com.azure.resourcemanager.machinelearning.models.TrainingSettings
enableDnnTraining, enableModelExplainability, enableOnnxCompatibleModels, enableStackEnsemble, enableVoteEnsemble, ensembleModelDownloadTimeout, stackEnsembleSettingsMethods 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
-
ClassificationTrainingSettings
public ClassificationTrainingSettings()Creates an instance of ClassificationTrainingSettings class.
-
-
Method Details
-
allowedTrainingAlgorithms
Get the allowedTrainingAlgorithms property: Allowed models for classification task.- Returns:
- the allowedTrainingAlgorithms value.
-
withAllowedTrainingAlgorithms
public ClassificationTrainingSettings withAllowedTrainingAlgorithms(List<ClassificationModels> allowedTrainingAlgorithms) Set the allowedTrainingAlgorithms property: Allowed models for classification task.- Parameters:
allowedTrainingAlgorithms- the allowedTrainingAlgorithms value to set.- Returns:
- the ClassificationTrainingSettings object itself.
-
blockedTrainingAlgorithms
Get the blockedTrainingAlgorithms property: Blocked models for classification task.- Returns:
- the blockedTrainingAlgorithms value.
-
withBlockedTrainingAlgorithms
public ClassificationTrainingSettings withBlockedTrainingAlgorithms(List<ClassificationModels> blockedTrainingAlgorithms) Set the blockedTrainingAlgorithms property: Blocked models for classification task.- Parameters:
blockedTrainingAlgorithms- the blockedTrainingAlgorithms value to set.- Returns:
- the ClassificationTrainingSettings object itself.
-
withEnableOnnxCompatibleModels
public ClassificationTrainingSettings withEnableOnnxCompatibleModels(Boolean enableOnnxCompatibleModels) Set the enableOnnxCompatibleModels property: Flag for enabling onnx compatible models.- Overrides:
withEnableOnnxCompatibleModelsin classTrainingSettings- Parameters:
enableOnnxCompatibleModels- the enableOnnxCompatibleModels value to set.- Returns:
- the TrainingSettings object itself.
-
withStackEnsembleSettings
public ClassificationTrainingSettings withStackEnsembleSettings(StackEnsembleSettings stackEnsembleSettings) Set the stackEnsembleSettings property: Stack ensemble settings for stack ensemble run.- Overrides:
withStackEnsembleSettingsin classTrainingSettings- Parameters:
stackEnsembleSettings- the stackEnsembleSettings value to set.- Returns:
- the TrainingSettings object itself.
-
withEnableStackEnsemble
Set the enableStackEnsemble property: Enable stack ensemble run.- Overrides:
withEnableStackEnsemblein classTrainingSettings- Parameters:
enableStackEnsemble- the enableStackEnsemble value to set.- Returns:
- the TrainingSettings object itself.
-
withEnableVoteEnsemble
Set the enableVoteEnsemble property: Enable voting ensemble run.- Overrides:
withEnableVoteEnsemblein classTrainingSettings- Parameters:
enableVoteEnsemble- the enableVoteEnsemble value to set.- Returns:
- the TrainingSettings object itself.
-
withEnsembleModelDownloadTimeout
public ClassificationTrainingSettings 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.- Overrides:
withEnsembleModelDownloadTimeoutin classTrainingSettings- Parameters:
ensembleModelDownloadTimeout- the ensembleModelDownloadTimeout value to set.- Returns:
- the TrainingSettings object itself.
-
withEnableModelExplainability
public ClassificationTrainingSettings withEnableModelExplainability(Boolean enableModelExplainability) Set the enableModelExplainability property: Flag to turn on explainability on best model.- Overrides:
withEnableModelExplainabilityin classTrainingSettings- Parameters:
enableModelExplainability- the enableModelExplainability value to set.- Returns:
- the TrainingSettings object itself.
-
withEnableDnnTraining
Set the enableDnnTraining property: Enable recommendation of DNN models.- Overrides:
withEnableDnnTrainingin classTrainingSettings- Parameters:
enableDnnTraining- the enableDnnTraining value to set.- Returns:
- the TrainingSettings object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classTrainingSettings- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<TrainingSettings>- Overrides:
toJsonin classTrainingSettings- Throws:
IOException
-
fromJson
public static ClassificationTrainingSettings fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ClassificationTrainingSettings from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ClassificationTrainingSettings 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 ClassificationTrainingSettings.
-