TrialComponent Class
- java.
lang. Object - com.
azure. resourcemanager. machinelearning. models. TrialComponent
- com.
Implements
public final class TrialComponent
implements JsonSerializable<TrialComponent>
Trial component definition.
Constructor Summary
| Constructor | Description |
|---|---|
| TrialComponent() |
Creates an instance of Trial |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
codeId()
Get the code |
| String |
command()
Get the command property: [Required] The command to execute on startup of the job. |
|
Distribution |
distribution()
Get the distribution property: Distribution configuration of the job. |
| String |
environmentId()
Get the environment |
| Map<String,String> |
environmentVariables()
Get the environment |
|
static
Trial |
fromJson(JsonReader jsonReader)
Reads an instance of Trial |
|
Job |
resources()
Get the resources property: Compute Resource configuration for the job. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Trial |
withCodeId(String codeId)
Set the code |
|
Trial |
withCommand(String command)
Set the command property: [Required] The command to execute on startup of the job. |
|
Trial |
withDistribution(DistributionConfiguration distribution)
Set the distribution property: Distribution configuration of the job. |
|
Trial |
withEnvironmentId(String environmentId)
Set the environment |
|
Trial |
withEnvironmentVariables(Map<String,String> environmentVariables)
Set the environment |
|
Trial |
withResources(JobResourceConfiguration resources)
Set the resources property: Compute Resource configuration for the job. |
Methods inherited from java.lang.Object
Constructor Details
TrialComponent
public TrialComponent()
Creates an instance of TrialComponent class.
Method Details
codeId
public String codeId()
Get the codeId property: ARM resource ID of the code asset.
Returns:
command
public String command()
Get the command property: [Required] The command to execute on startup of the job. eg. "python train.py".
Returns:
distribution
public DistributionConfiguration distribution()
Get the distribution property: Distribution configuration of the job. If set, this should be one of Mpi, Tensorflow, PyTorch, or null.
Returns:
environmentId
public String environmentId()
Get the environmentId property: [Required] The ARM resource ID of the Environment specification for the job.
Returns:
environmentVariables
public Map<String,String> environmentVariables()
Get the environmentVariables property: Environment variables included in the job.
Returns:
fromJson
public static TrialComponent fromJson(JsonReader jsonReader)
Reads an instance of TrialComponent from the JsonReader.
Parameters:
Returns:
Throws:
resources
public JobResourceConfiguration resources()
Get the resources property: Compute Resource configuration for the job.
Returns:
toJson
validate
public void validate()
Validates the instance.
withCodeId
public TrialComponent withCodeId(String codeId)
Set the codeId property: ARM resource ID of the code asset.
Parameters:
Returns:
withCommand
public TrialComponent withCommand(String command)
Set the command property: [Required] The command to execute on startup of the job. eg. "python train.py".
Parameters:
Returns:
withDistribution
public TrialComponent withDistribution(DistributionConfiguration distribution)
Set the distribution property: Distribution configuration of the job. If set, this should be one of Mpi, Tensorflow, PyTorch, or null.
Parameters:
Returns:
withEnvironmentId
public TrialComponent withEnvironmentId(String environmentId)
Set the environmentId property: [Required] The ARM resource ID of the Environment specification for the job.
Parameters:
Returns:
withEnvironmentVariables
public TrialComponent withEnvironmentVariables(Map<String,String> environmentVariables)
Set the environmentVariables property: Environment variables included in the job.
Parameters:
Returns:
withResources
public TrialComponent withResources(JobResourceConfiguration resources)
Set the resources property: Compute Resource configuration for the job.
Parameters:
Returns: