RandomSamplingAlgorithm Class
- java.
lang. Object - com.
azure. resourcemanager. machinelearning. models. SamplingAlgorithm - com.
azure. resourcemanager. machinelearning. models. RandomSamplingAlgorithm
- com.
- com.
public final class RandomSamplingAlgorithm
extends SamplingAlgorithm
Defines a Sampling Algorithm that generates values randomly.
Constructor Summary
| Constructor | Description |
|---|---|
| RandomSamplingAlgorithm() |
Creates an instance of Random |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Random |
fromJson(JsonReader jsonReader)
Reads an instance of Random |
|
Random |
rule()
Get the rule property: The specific type of random algorithm. |
|
Sampling |
samplingAlgorithmType()
Get the sampling |
| Integer |
seed()
Get the seed property: An optional integer to use as the seed for random number generation. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Random |
withRule(RandomSamplingAlgorithmRule rule)
Set the rule property: The specific type of random algorithm. |
|
Random |
withSeed(Integer seed)
Set the seed property: An optional integer to use as the seed for random number generation. |
Methods inherited from SamplingAlgorithm
Methods inherited from java.lang.Object
Constructor Details
RandomSamplingAlgorithm
public RandomSamplingAlgorithm()
Creates an instance of RandomSamplingAlgorithm class.
Method Details
fromJson
public static RandomSamplingAlgorithm fromJson(JsonReader jsonReader)
Reads an instance of RandomSamplingAlgorithm from the JsonReader.
Parameters:
Returns:
Throws:
rule
public RandomSamplingAlgorithmRule rule()
Get the rule property: The specific type of random algorithm.
Returns:
samplingAlgorithmType
public SamplingAlgorithmType samplingAlgorithmType()
Get the samplingAlgorithmType property: [Required] The algorithm used for generating hyperparameter values, along with configuration properties.
Overrides:
RandomSamplingAlgorithm.samplingAlgorithmType()Returns:
seed
public Integer seed()
Get the seed property: An optional integer to use as the seed for random number generation.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
RandomSamplingAlgorithm.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.
Overrides:
RandomSamplingAlgorithm.validate()withRule
public RandomSamplingAlgorithm withRule(RandomSamplingAlgorithmRule rule)
Set the rule property: The specific type of random algorithm.
Parameters:
Returns:
withSeed
public RandomSamplingAlgorithm withSeed(Integer seed)
Set the seed property: An optional integer to use as the seed for random number generation.
Parameters:
Returns: