SamplerConfig 类

用于保存采样器配置的类。

继承
builtins.object
SamplerConfig

构造函数

SamplerConfig(_id: str, sampler_args: Optional[Any] = None, sampler_kwargs: Optional[Any] = None)

参数

_id
sampler_args
默认值: None
sampler_kwargs
默认值: None

方法

from_dict

从字典加载。

from_dict

从字典加载。

from_dict(dct: Dict[str, Any]) -> azureml.automl.core.configuration.sampler_config.SamplerConfig

参数

cls
必需

SamplerConfig 的类对象

dct
必需

包含所有所需参数的字典。

返回

已创建对象。

属性

id

获取对象的 ID。

返回

ID。

sampler_args

获取要发送到采样器实例的采样器参数。

返回

参数。

sampler_kwargs

获取要发送到采样器实例的采样器关键字参数。

返回

关键字参数。