ArmMachineLearningModelFactory.MachineLearningTrialComponent Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Trial component definition.
public static Azure.ResourceManager.MachineLearning.Models.MachineLearningTrialComponent MachineLearningTrialComponent(Azure.Core.ResourceIdentifier codeId = default, string command = default, Azure.ResourceManager.MachineLearning.Models.MachineLearningDistributionConfiguration distribution = default, Azure.Core.ResourceIdentifier environmentId = default, System.Collections.Generic.IDictionary<string,string> environmentVariables = default, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobResourceConfiguration resources = default);
static member MachineLearningTrialComponent : Azure.Core.ResourceIdentifier * string * Azure.ResourceManager.MachineLearning.Models.MachineLearningDistributionConfiguration * Azure.Core.ResourceIdentifier * System.Collections.Generic.IDictionary<string, string> * Azure.ResourceManager.MachineLearning.Models.MachineLearningJobResourceConfiguration -> Azure.ResourceManager.MachineLearning.Models.MachineLearningTrialComponent
Public Shared Function MachineLearningTrialComponent (Optional codeId As ResourceIdentifier = Nothing, Optional command As String = Nothing, Optional distribution As MachineLearningDistributionConfiguration = Nothing, Optional environmentId As ResourceIdentifier = Nothing, Optional environmentVariables As IDictionary(Of String, String) = Nothing, Optional resources As MachineLearningJobResourceConfiguration = Nothing) As MachineLearningTrialComponent
Parameters
- codeId
- ResourceIdentifier
ARM resource ID of the code asset.
- command
- String
[Required] The command to execute on startup of the job. eg. "python train.py".
- distribution
- MachineLearningDistributionConfiguration
Distribution configuration of the job. If set, this should be one of Mpi, Tensorflow, PyTorch, or null.
- environmentId
- ResourceIdentifier
[Required] The ARM resource ID of the Environment specification for the job.
- environmentVariables
- IDictionary<String,String>
Environment variables included in the job.
- resources
- MachineLearningJobResourceConfiguration
Compute Resource configuration for the job.
Returns
A new MachineLearningTrialComponent instance for mocking.