EstimatorParams 类

Microsoft资源估算器的顶级输入参数。

EstimatorInputParamsItem扩展支持批处理:传递num_items以创建批处理作业,其中每个项都可以替代顶级参数。

构造函数

EstimatorParams(num_items: int | None = None)

参数

名称 说明
num_items
int

批处理项数。 如果 None创建单点估计作业。

默认值: None

方法

as_dict

从输入参数构造字典。

对于批处理作业,顶级条目将合并到项条目中。 在指定项项时,项项具有优先级。

as_dict

从输入参数构造字典。

对于批处理作业,顶级条目将合并到项条目中。 在指定项项时,项项具有优先级。

as_dict(validate=True) -> Dict[str, Any]

参数

名称 说明
validate
默认值: True

属性

items

MAX_NUM_ITEMS

MAX_NUM_ITEMS: int = 1000