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 Details

    • StackEnsembleSettings

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

    • stackMetaLearnerType

      public StackMetaLearnerType 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

      public StackEnsembleSettings withStackMetaLearnerType(StackMetaLearnerType stackMetaLearnerType)
      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

      public Double 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

      public Object stackMetaLearnerKWargs()
      Get the stackMetaLearnerKWargs property: Optional parameters to pass to the initializer of the meta-learner.
      Returns:
      the stackMetaLearnerKWargs value.
    • withStackMetaLearnerKWargs

      public StackEnsembleSettings withStackMetaLearnerKWargs(Object stackMetaLearnerKWargs)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.