Class StackEnsembleSettings
java.lang.Object
com.azure.resourcemanager.machinelearning.models.StackEnsembleSettings
- All Implemented Interfaces:
com.azure.json.JsonSerializable<StackEnsembleSettings>
public final class StackEnsembleSettings
extends Object
implements com.azure.json.JsonSerializable<StackEnsembleSettings>
Advances setting to customize StackEnsemble run.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StackEnsembleSettingsfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of StackEnsembleSettings from the JsonReader.Get the stackMetaLearnerKWargs property: Optional parameters to pass to the initializer of the meta-learner.Get the stackMetaLearnerTrainPercentage property: Specifies the proportion of the training set (when choosing train and validation type of training) to be reserved for training the meta-learner.Get the stackMetaLearnerType property: The meta-learner is a model trained on the output of the individual heterogeneous models.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withStackMetaLearnerKWargs(Object stackMetaLearnerKWargs) Set the stackMetaLearnerKWargs property: Optional parameters to pass to the initializer of the meta-learner.withStackMetaLearnerTrainPercentage(Double stackMetaLearnerTrainPercentage) Set the stackMetaLearnerTrainPercentage property: Specifies the proportion of the training set (when choosing train and validation type of training) to be reserved for training the meta-learner.withStackMetaLearnerType(StackMetaLearnerType stackMetaLearnerType) Set the stackMetaLearnerType property: The meta-learner is a model trained on the output of the individual heterogeneous models.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
-
StackEnsembleSettings
public StackEnsembleSettings()Creates an instance of StackEnsembleSettings class.
-
-
Method Details
-
stackMetaLearnerType
Get the stackMetaLearnerType property: The meta-learner is a model trained on the output of the individual heterogeneous models.- Returns:
- the stackMetaLearnerType value.
-
withStackMetaLearnerType
Set the stackMetaLearnerType property: The meta-learner is a model trained on the output of the individual heterogeneous models.- Parameters:
stackMetaLearnerType- the stackMetaLearnerType value to set.- Returns:
- the StackEnsembleSettings object itself.
-
stackMetaLearnerTrainPercentage
Get the stackMetaLearnerTrainPercentage property: Specifies the proportion of the training set (when choosing train and validation type of training) to be reserved for training the meta-learner. Default value is 0.2.- Returns:
- the stackMetaLearnerTrainPercentage value.
-
withStackMetaLearnerTrainPercentage
public StackEnsembleSettings withStackMetaLearnerTrainPercentage(Double stackMetaLearnerTrainPercentage) Set the stackMetaLearnerTrainPercentage property: Specifies the proportion of the training set (when choosing train and validation type of training) to be reserved for training the meta-learner. Default value is 0.2.- Parameters:
stackMetaLearnerTrainPercentage- the stackMetaLearnerTrainPercentage value to set.- Returns:
- the StackEnsembleSettings object itself.
-
stackMetaLearnerKWargs
Get the stackMetaLearnerKWargs property: Optional parameters to pass to the initializer of the meta-learner.- Returns:
- the stackMetaLearnerKWargs value.
-
withStackMetaLearnerKWargs
Set the stackMetaLearnerKWargs property: Optional parameters to pass to the initializer of the meta-learner.- Parameters:
stackMetaLearnerKWargs- the stackMetaLearnerKWargs value to set.- Returns:
- the StackEnsembleSettings 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<StackEnsembleSettings>- Throws:
IOException
-
fromJson
public static StackEnsembleSettings fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of StackEnsembleSettings from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of StackEnsembleSettings 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 StackEnsembleSettings.
-