SamplingAlgorithm Class

  • java.lang.Object
    • com.azure.resourcemanager.machinelearning.models.SamplingAlgorithm

Implements

public class SamplingAlgorithm
implements JsonSerializable<SamplingAlgorithm>

The Sampling Algorithm used to generate hyperparameter values, along with properties to configure the algorithm.

Constructor Summary

Constructor Description
SamplingAlgorithm()

Creates an instance of SamplingAlgorithm class.

Method Summary

Modifier and Type Method and Description
static SamplingAlgorithm fromJson(JsonReader jsonReader)

Reads an instance of SamplingAlgorithm from the JsonReader.

SamplingAlgorithmType samplingAlgorithmType()

Get the samplingAlgorithmType property: [Required] The algorithm used for generating hyperparameter values, along with configuration properties.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Methods inherited from java.lang.Object

Constructor Details

SamplingAlgorithm

public SamplingAlgorithm()

Creates an instance of SamplingAlgorithm class.

Method Details

fromJson

public static SamplingAlgorithm fromJson(JsonReader jsonReader)

Reads an instance of SamplingAlgorithm from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SamplingAlgorithm 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 SamplingAlgorithm.

samplingAlgorithmType

public SamplingAlgorithmType samplingAlgorithmType()

Get the samplingAlgorithmType property: [Required] The algorithm used for generating hyperparameter values, along with configuration properties.

Returns:

the samplingAlgorithmType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Applies to