你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ArmMachineLearningModelFactory.MachineLearningCommandJob 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
初始化 MachineLearningCommandJob 的新实例。
public static Azure.ResourceManager.MachineLearning.Models.MachineLearningCommandJob MachineLearningCommandJob (string description = default, System.Collections.Generic.IDictionary<string,string> properties = default, System.Collections.Generic.IDictionary<string,string> tags = default, Azure.Core.ResourceIdentifier componentId = default, Azure.Core.ResourceIdentifier computeId = default, string displayName = default, string experimentName = default, Azure.ResourceManager.MachineLearning.Models.MachineLearningIdentityConfiguration identity = default, bool? isArchived = default, Azure.ResourceManager.MachineLearning.Models.NotificationSetting notificationSetting = default, System.Collections.Generic.IDictionary<string,Azure.ResourceManager.MachineLearning.Models.SecretConfiguration> secretsConfiguration = default, System.Collections.Generic.IDictionary<string,Azure.ResourceManager.MachineLearning.Models.MachineLearningJobService> services = default, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus? status = default, Azure.ResourceManager.MachineLearning.Models.MachineLearningFlowAutoLoggerState? mlflowAutologger = default, 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, System.Collections.Generic.IDictionary<string,Azure.ResourceManager.MachineLearning.Models.MachineLearningJobInput> inputs = default, Azure.ResourceManager.MachineLearning.Models.MachineLearningCommandJobLimits limits = default, System.Collections.Generic.IDictionary<string,Azure.ResourceManager.MachineLearning.Models.MachineLearningJobOutput> outputs = default, BinaryData parameters = default, Azure.ResourceManager.MachineLearning.Models.JobQueueSettings queueSettings = default, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobResourceConfiguration resources = default);
static member MachineLearningCommandJob : string * System.Collections.Generic.IDictionary<string, string> * System.Collections.Generic.IDictionary<string, string> * Azure.Core.ResourceIdentifier * Azure.Core.ResourceIdentifier * string * string * Azure.ResourceManager.MachineLearning.Models.MachineLearningIdentityConfiguration * Nullable<bool> * Azure.ResourceManager.MachineLearning.Models.NotificationSetting * System.Collections.Generic.IDictionary<string, Azure.ResourceManager.MachineLearning.Models.SecretConfiguration> * System.Collections.Generic.IDictionary<string, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobService> * Nullable<Azure.ResourceManager.MachineLearning.Models.MachineLearningJobStatus> * Nullable<Azure.ResourceManager.MachineLearning.Models.MachineLearningFlowAutoLoggerState> * Azure.Core.ResourceIdentifier * string * Azure.ResourceManager.MachineLearning.Models.MachineLearningDistributionConfiguration * Azure.Core.ResourceIdentifier * System.Collections.Generic.IDictionary<string, string> * System.Collections.Generic.IDictionary<string, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobInput> * Azure.ResourceManager.MachineLearning.Models.MachineLearningCommandJobLimits * System.Collections.Generic.IDictionary<string, Azure.ResourceManager.MachineLearning.Models.MachineLearningJobOutput> * BinaryData * Azure.ResourceManager.MachineLearning.Models.JobQueueSettings * Azure.ResourceManager.MachineLearning.Models.MachineLearningJobResourceConfiguration -> Azure.ResourceManager.MachineLearning.Models.MachineLearningCommandJob
Public Shared Function MachineLearningCommandJob (Optional description As String = Nothing, Optional properties As IDictionary(Of String, String) = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional componentId As ResourceIdentifier = Nothing, Optional computeId As ResourceIdentifier = Nothing, Optional displayName As String = Nothing, Optional experimentName As String = Nothing, Optional identity As MachineLearningIdentityConfiguration = Nothing, Optional isArchived As Nullable(Of Boolean) = Nothing, Optional notificationSetting As NotificationSetting = Nothing, Optional secretsConfiguration As IDictionary(Of String, SecretConfiguration) = Nothing, Optional services As IDictionary(Of String, MachineLearningJobService) = Nothing, Optional status As Nullable(Of MachineLearningJobStatus) = Nothing, Optional mlflowAutologger As Nullable(Of MachineLearningFlowAutoLoggerState) = Nothing, 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 inputs As IDictionary(Of String, MachineLearningJobInput) = Nothing, Optional limits As MachineLearningCommandJobLimits = Nothing, Optional outputs As IDictionary(Of String, MachineLearningJobOutput) = Nothing, Optional parameters As BinaryData = Nothing, Optional queueSettings As JobQueueSettings = Nothing, Optional resources As MachineLearningJobResourceConfiguration = Nothing) As MachineLearningCommandJob
参数
- description
- String
资产说明文本。
- properties
- IDictionary<String,String>
资产属性字典。
- tags
- IDictionary<String,String>
标记字典。 可以添加、删除和更新标记。
- componentId
- ResourceIdentifier
组件资源的 ARM 资源 ID。
- computeId
- ResourceIdentifier
计算资源的 ARM 资源 ID。
- displayName
- String
作业的显示名称。
- experimentName
- String
作业所属的试验的名称。 如果未设置,作业将置于“默认”试验中。
- identity
- MachineLearningIdentityConfiguration
标识配置。 如果已设置,应为 AmlToken、ManagedIdentity、UserIdentity 或 null 之一。 如果为 null,则默认为 AmlToken。 请注意 MachineLearningIdentityConfiguration ,是基类。 根据方案,可能需要在此处分配基类的派生类,或者此属性需要强制转换为可能的派生类之一。 可用的派生类包括 AmlToken、 MachineLearningManagedIdentity 和 MachineLearningUserIdentity。
- notificationSetting
- NotificationSetting
作业的通知设置。
- secretsConfiguration
- IDictionary<String,SecretConfiguration>
用于在运行时提供机密的配置。
- services
- IDictionary<String,MachineLearningJobService>
JobEndpoints 列表。 对于本地作业,作业终结点的终结点值为 FileStreamObject。
- status
- Nullable<MachineLearningJobStatus>
作业的状态。
- mlflowAutologger
- Nullable<MachineLearningFlowAutoLoggerState>
作业的分发配置。 如果已设置,则应为 Mpi、Tensorflow、PyTorch 或 null 之一。
- codeId
- ResourceIdentifier
代码资产的 ARM 资源 ID。
- command
- String
[必需]启动作业时要执行的命令。 例如 “python train.py”。
- distribution
- MachineLearningDistributionConfiguration
作业的分发配置。 如果已设置,则此值应为 Mpi、Tensorflow、PyTorch、Ray 或 null 之一。 请注意 MachineLearningDistributionConfiguration ,是基类。 根据方案,可能需要在此处分配基类的派生类,或者此属性需要强制转换为可能的派生类之一。 可用的派生类包括 MpiDistributionConfiguration、 PyTorchDistributionConfigurationRayDistributionConfiguration 和 TensorFlowDistributionConfiguration。
- environmentId
- ResourceIdentifier
[必需]作业的环境规范的 ARM 资源 ID。
- environmentVariables
- IDictionary<String,String>
作业中包含的环境变量。
- inputs
- IDictionary<String,MachineLearningJobInput>
作业中使用的输入数据绑定的映射。 请注意 MachineLearningJobInput ,是基类。 根据方案,可能需要在此处分配基类的派生类,或者此属性需要强制转换为可能的派生类之一。 可用的派生类包括 MachineLearningCustomModelJobInput、、MachineLearningLiteralJobInput、MachineLearningFlowModelJobInputMachineLearningTableJobInput、 MachineLearningTritonModelJobInputMachineLearningUriFileJobInput 和 MachineLearningUriFolderJobInput。
命令作业限制。
- outputs
- IDictionary<String,MachineLearningJobOutput>
作业中使用的输出数据绑定的映射。 请注意 MachineLearningJobOutput ,是基类。 根据方案,可能需要在此处分配基类的派生类,或者此属性需要强制转换为可能的派生类之一。 可用的派生类包括 MachineLearningCustomModelJobOutput、、MachineLearningFlowModelJobOutput、 MachineLearningUriFileJobOutputMachineLearningTableJobOutputMachineLearningTritonModelJobOutput和 。MachineLearningUriFolderJobOutput
- parameters
- BinaryData
输入参数。
- queueSettings
- JobQueueSettings
作业的队列设置。
- resources
- MachineLearningJobResourceConfiguration
作业的计算资源配置。
返回
用于模拟的新 MachineLearningCommandJob 实例。