Class SweepJob
- java.lang.Object
-
- com.azure.resourcemanager.machinelearning.models.ResourceBase
-
- com.azure.resourcemanager.machinelearning.models.JobBaseDetails
-
- com.azure.resourcemanager.machinelearning.models.SweepJob
-
public final class SweepJob extends JobBaseDetails
Sweep job definition.
-
-
Constructor Summary
Constructors Constructor Description SweepJob()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EarlyTerminationPolicy
earlyTermination()
Get the earlyTermination property: Early termination policies enable canceling poor-performing runs before they complete.Map<String,JobInput>
inputs()
Get the inputs property: Mapping of input data bindings used in the job.SweepJobLimits
limits()
Get the limits property: Sweep Job limit.Objective
objective()
Get the objective property: [Required] Optimization objective.Map<String,JobOutput>
outputs()
Get the outputs property: Mapping of output data bindings used in the job.SamplingAlgorithm
samplingAlgorithm()
Get the samplingAlgorithm property: [Required] The hyperparameter sampling algorithm.Object
searchSpace()
Get the searchSpace property: [Required] A dictionary containing each parameter and its distribution.TrialComponent
trial()
Get the trial property: [Required] Trial component definition.void
validate()
Validates the instance.SweepJob
withComputeId(String computeId)
Set the computeId property: ARM resource ID of the compute resource.SweepJob
withDescription(String description)
Set the description property: The asset description text.SweepJob
withDisplayName(String displayName)
Set the displayName property: Display name of job.SweepJob
withEarlyTermination(EarlyTerminationPolicy earlyTermination)
Set the earlyTermination property: Early termination policies enable canceling poor-performing runs before they complete.SweepJob
withExperimentName(String experimentName)
Set the experimentName property: The name of the experiment the job belongs to.SweepJob
withIdentity(IdentityConfiguration identity)
Set the identity property: Identity configuration.SweepJob
withInputs(Map<String,JobInput> inputs)
Set the inputs property: Mapping of input data bindings used in the job.SweepJob
withIsArchived(Boolean isArchived)
Set the isArchived property: Is the asset archived?.SweepJob
withLimits(SweepJobLimits limits)
Set the limits property: Sweep Job limit.SweepJob
withObjective(Objective objective)
Set the objective property: [Required] Optimization objective.SweepJob
withOutputs(Map<String,JobOutput> outputs)
Set the outputs property: Mapping of output data bindings used in the job.SweepJob
withProperties(Map<String,String> properties)
Set the properties property: The asset property dictionary.SweepJob
withSamplingAlgorithm(SamplingAlgorithm samplingAlgorithm)
Set the samplingAlgorithm property: [Required] The hyperparameter sampling algorithm.SweepJob
withSchedule(ScheduleBase schedule)
Set the schedule property: Schedule definition of job.SweepJob
withSearchSpace(Object searchSpace)
Set the searchSpace property: [Required] A dictionary containing each parameter and its distribution.SweepJob
withServices(Map<String,JobService> services)
Set the services property: List of JobEndpoints.SweepJob
withTags(Map<String,String> tags)
Set the tags property: Tag dictionary.SweepJob
withTrial(TrialComponent trial)
Set the trial property: [Required] Trial component definition.-
Methods inherited from class com.azure.resourcemanager.machinelearning.models.JobBaseDetails
computeId, displayName, experimentName, identity, isArchived, schedule, services, status
-
Methods inherited from class com.azure.resourcemanager.machinelearning.models.ResourceBase
description, properties, tags
-
-
-
-
Method Detail
-
earlyTermination
public EarlyTerminationPolicy earlyTermination()
Get the earlyTermination property: Early termination policies enable canceling poor-performing runs before they complete.- Returns:
- the earlyTermination value.
-
withEarlyTermination
public SweepJob withEarlyTermination(EarlyTerminationPolicy earlyTermination)
Set the earlyTermination property: Early termination policies enable canceling poor-performing runs before they complete.- Parameters:
earlyTermination
- the earlyTermination value to set.- Returns:
- the SweepJob object itself.
-
inputs
public Map<String,JobInput> inputs()
Get the inputs property: Mapping of input data bindings used in the job.- Returns:
- the inputs value.
-
withInputs
public SweepJob withInputs(Map<String,JobInput> inputs)
Set the inputs property: Mapping of input data bindings used in the job.- Parameters:
inputs
- the inputs value to set.- Returns:
- the SweepJob object itself.
-
limits
public SweepJobLimits limits()
Get the limits property: Sweep Job limit.- Returns:
- the limits value.
-
withLimits
public SweepJob withLimits(SweepJobLimits limits)
Set the limits property: Sweep Job limit.- Parameters:
limits
- the limits value to set.- Returns:
- the SweepJob object itself.
-
objective
public Objective objective()
Get the objective property: [Required] Optimization objective.- Returns:
- the objective value.
-
withObjective
public SweepJob withObjective(Objective objective)
Set the objective property: [Required] Optimization objective.- Parameters:
objective
- the objective value to set.- Returns:
- the SweepJob object itself.
-
outputs
public Map<String,JobOutput> outputs()
Get the outputs property: Mapping of output data bindings used in the job.- Returns:
- the outputs value.
-
withOutputs
public SweepJob withOutputs(Map<String,JobOutput> outputs)
Set the outputs property: Mapping of output data bindings used in the job.- Parameters:
outputs
- the outputs value to set.- Returns:
- the SweepJob object itself.
-
samplingAlgorithm
public SamplingAlgorithm samplingAlgorithm()
Get the samplingAlgorithm property: [Required] The hyperparameter sampling algorithm.- Returns:
- the samplingAlgorithm value.
-
withSamplingAlgorithm
public SweepJob withSamplingAlgorithm(SamplingAlgorithm samplingAlgorithm)
Set the samplingAlgorithm property: [Required] The hyperparameter sampling algorithm.- Parameters:
samplingAlgorithm
- the samplingAlgorithm value to set.- Returns:
- the SweepJob object itself.
-
searchSpace
public Object searchSpace()
Get the searchSpace property: [Required] A dictionary containing each parameter and its distribution. The dictionary key is the name of the parameter.- Returns:
- the searchSpace value.
-
withSearchSpace
public SweepJob withSearchSpace(Object searchSpace)
Set the searchSpace property: [Required] A dictionary containing each parameter and its distribution. The dictionary key is the name of the parameter.- Parameters:
searchSpace
- the searchSpace value to set.- Returns:
- the SweepJob object itself.
-
trial
public TrialComponent trial()
Get the trial property: [Required] Trial component definition.- Returns:
- the trial value.
-
withTrial
public SweepJob withTrial(TrialComponent trial)
Set the trial property: [Required] Trial component definition.- Parameters:
trial
- the trial value to set.- Returns:
- the SweepJob object itself.
-
withComputeId
public SweepJob withComputeId(String computeId)
Set the computeId property: ARM resource ID of the compute resource.- Overrides:
withComputeId
in classJobBaseDetails
- Parameters:
computeId
- the computeId value to set.- Returns:
- the JobBaseDetails object itself.
-
withDisplayName
public SweepJob withDisplayName(String displayName)
Set the displayName property: Display name of job.- Overrides:
withDisplayName
in classJobBaseDetails
- Parameters:
displayName
- the displayName value to set.- Returns:
- the JobBaseDetails object itself.
-
withExperimentName
public SweepJob withExperimentName(String experimentName)
Set the experimentName property: The name of the experiment the job belongs to. If not set, the job is placed in the "Default" experiment.- Overrides:
withExperimentName
in classJobBaseDetails
- Parameters:
experimentName
- the experimentName value to set.- Returns:
- the JobBaseDetails object itself.
-
withIdentity
public SweepJob withIdentity(IdentityConfiguration identity)
Set the identity property: Identity configuration. If set, this should be one of AmlToken, ManagedIdentity, UserIdentity or null. Defaults to AmlToken if null.- Overrides:
withIdentity
in classJobBaseDetails
- Parameters:
identity
- the identity value to set.- Returns:
- the JobBaseDetails object itself.
-
withIsArchived
public SweepJob withIsArchived(Boolean isArchived)
Set the isArchived property: Is the asset archived?.- Overrides:
withIsArchived
in classJobBaseDetails
- Parameters:
isArchived
- the isArchived value to set.- Returns:
- the JobBaseDetails object itself.
-
withSchedule
public SweepJob withSchedule(ScheduleBase schedule)
Set the schedule property: Schedule definition of job. If no schedule is provided, the job is run once and immediately after submission.- Overrides:
withSchedule
in classJobBaseDetails
- Parameters:
schedule
- the schedule value to set.- Returns:
- the JobBaseDetails object itself.
-
withServices
public SweepJob withServices(Map<String,JobService> services)
Set the services property: List of JobEndpoints. For local jobs, a job endpoint will have an endpoint value of FileStreamObject.- Overrides:
withServices
in classJobBaseDetails
- Parameters:
services
- the services value to set.- Returns:
- the JobBaseDetails object itself.
-
withDescription
public SweepJob withDescription(String description)
Set the description property: The asset description text.- Overrides:
withDescription
in classJobBaseDetails
- Parameters:
description
- the description value to set.- Returns:
- the ResourceBase object itself.
-
withProperties
public SweepJob withProperties(Map<String,String> properties)
Set the properties property: The asset property dictionary.- Overrides:
withProperties
in classJobBaseDetails
- Parameters:
properties
- the properties value to set.- Returns:
- the ResourceBase object itself.
-
withTags
public SweepJob withTags(Map<String,String> tags)
Set the tags property: Tag dictionary. Tags can be added, removed, and updated.- Overrides:
withTags
in classJobBaseDetails
- Parameters:
tags
- the tags value to set.- Returns:
- the ResourceBase object itself.
-
validate
public void validate()
Validates the instance.- Overrides:
validate
in classJobBaseDetails
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-