你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
BatchDeployment 类
Batch 终结点部署实体。
- 继承
-
azure.ai.ml.entities._deployment.deployment.DeploymentBatchDeployment
构造函数
BatchDeployment(*, name: str, endpoint_name: str | None = None, description: str | None = None, tags: Dict[str, Any] | None = None, properties: Dict[str, str] | None = None, model: str | Model | None = None, code_configuration: CodeConfiguration | None = None, environment: str | Environment | None = None, compute: str | None = None, resources: ResourceConfiguration | None = None, output_file_name: str | None = None, output_action: BatchDeploymentOutputAction | None = None, error_threshold: int | None = None, retry_settings: BatchRetrySettings | None = None, logging_level: str | None = None, mini_batch_size: int | None = None, max_concurrency_per_instance: int | None = None, environment_variables: Dict[str, str] | None = None, code_path: str | PathLike | None = None, scoring_script: str | PathLike | None = None, instance_count: int | None = None, **kwargs)
参数
- output_action
- str 或 BatchDeploymentOutputAction
必需
指示输出的组织方式。 可能的值包括:“summary_only”、“append_row”。 默认为“append_row”
- error_threshold
- int
必需
错误阈值,如果整个输入的错误计数超过此值,则批处理推理将中止。 范围为 [-1, int.MaxValue] -1 值指示,在批处理推理过程中忽略所有失败。对于 FileDataset 文件失败计数,对于 TabularDataset,这是记录失败的计数,默认为 -1
方法
dump |
将部署内容转储到 yaml 格式的文件中。 |
dump
将部署内容转储到 yaml 格式的文件中。
dump(dest: str | PathLike | IO, **kwargs) -> None