EnricherCountryRegionSelector 类

定义 CountryRegion 选择器计算。

所有成员均为静态函数。

继承
EnricherCountryRegionSelector

构造函数

EnricherCountryRegionSelector()

方法

countryregion_join

将客户数据与公共数据联接,并应用指定的聚合器。

process

通过指定的聚合器,使用公共数据扩充客户数据。

countryregion_join

将客户数据与公共数据联接,并应用指定的聚合器。

countryregion_join(env, customer_data: azureml.opendatasets.accessories.country_region_data.CountryOrRegionData, public_data: azureml.opendatasets.accessories.country_region_data.CountryOrRegionData, aggregator: azureml.opendatasets.aggregators.aggregator.Aggregator, join_keys: Optional[list] = None, debug: bool = False) -> Tuple[azureml.opendatasets.accessories.country_region_data.CountryOrRegionData, azureml.opendatasets.accessories.country_region_data.CountryOrRegionData, List[Tuple[str, str]]]

参数

env
RuntimeEnv
必需

运行时环境。

customer_data
CountryOrRegionData
必需

客户数据的 CountryOrRegionData 类的实例。

public_data
CountryOrRegionData
必需

公共数据的 CountryOrRegionData 类的实例。

aggregator
Aggregator
必需

聚合器。

join_keys
list
默认值: None

联接键对的列表。

debug
bool
默认值: False

指示是否要打印调试日志。

返回

一个元组,其中包含已更改的客户数据类实例、已更改的公共数据类实例和联接键对的列表。

返回类型

process

通过指定的聚合器,使用公共数据扩充客户数据。

process(env: azureml.opendatasets.environ.RuntimeEnv, customer_data: azureml.opendatasets.accessories.country_region_data.CountryOrRegionData, public_data: azureml.opendatasets.accessories.country_region_data.CountryOrRegionData, aggregator: azureml.opendatasets.aggregators.aggregator.Aggregator, join_keys: Optional[list] = None, debug: bool = False) -> Tuple[azureml.opendatasets.accessories.country_region_data.CountryOrRegionData, azureml.opendatasets.accessories.country_region_data.CountryOrRegionData, List[Tuple[str, str]]]

参数

env
RuntimeEnv
必需

运行时环境。

customer_data
CountryOrRegionData
必需

CountryOrRegionData 类的实例。

public_data
CountryOrRegionData
必需

CountryOrRegionData 类的实例。

aggregator
Aggregator
必需

聚合器。

join_keys
list
默认值: None

联接键对的列表。

debug
bool
默认值: False

指示是否要打印调试日志。

返回

一个元组,其中包含已更改的客户数据类实例、已更改的公共数据类实例和联接键对的列表。

返回类型