Class RandomSamplingAlgorithm
- java.lang.Object
-
- com.azure.resourcemanager.machinelearning.models.SamplingAlgorithm
-
- com.azure.resourcemanager.machinelearning.models.RandomSamplingAlgorithm
-
public final class RandomSamplingAlgorithm extends SamplingAlgorithm
Defines a Sampling Algorithm that generates values randomly.
-
-
Constructor Summary
Constructors Constructor Description RandomSamplingAlgorithm()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RandomSamplingAlgorithmRule
rule()
Get the rule property: The specific type of random algorithm.Integer
seed()
Get the seed property: An optional integer to use as the seed for random number generation.void
validate()
Validates the instance.RandomSamplingAlgorithm
withRule(RandomSamplingAlgorithmRule rule)
Set the rule property: The specific type of random algorithm.RandomSamplingAlgorithm
withSeed(Integer seed)
Set the seed property: An optional integer to use as the seed for random number generation.
-
-
-
Method Detail
-
rule
public RandomSamplingAlgorithmRule rule()
Get the rule property: The specific type of random algorithm.- Returns:
- the rule value.
-
withRule
public RandomSamplingAlgorithm withRule(RandomSamplingAlgorithmRule rule)
Set the rule property: The specific type of random algorithm.- Parameters:
rule
- the rule value to set.- Returns:
- the RandomSamplingAlgorithm object itself.
-
seed
public Integer seed()
Get the seed property: An optional integer to use as the seed for random number generation.- Returns:
- the seed value.
-
withSeed
public RandomSamplingAlgorithm withSeed(Integer seed)
Set the seed property: An optional integer to use as the seed for random number generation.- Parameters:
seed
- the seed value to set.- Returns:
- the RandomSamplingAlgorithm object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classSamplingAlgorithm
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-