HolidayEnricher 类
定义公共节假日扩充器。
HolidayEnricher 类可用于将节假日公共数据与你的数据联接在一起。 例如,请参阅开放数据集目录中的公共节假日数据集。
- 继承
-
HolidayEnricher
构造函数
HolidayEnricher(public_data_object: azureml.opendatasets.accessories.public_data.PublicData, enable_telemetry: bool = False)
参数
方法
| enrich_customer_data_no_agg |
使用默认 aggregator_all 来扩充客户数据。 |
| enrich_customer_data_with_agg |
使用指定的聚合器扩充客户数据。 |
enrich_customer_data_no_agg
使用默认 aggregator_all 来扩充客户数据。
enrich_customer_data_no_agg(customer_data_object: azureml.opendatasets.accessories.customer_data.CustomerData, time_round_granularity: str = 'day') -> Tuple[azureml.opendatasets.accessories.customer_data.CustomerData, azureml.opendatasets.accessories.public_data.PublicData, List[Tuple[str, str]]]
参数
返回
扩充的客户数据的元组 (new_customer_data) 和 processed_public_data。
返回类型
enrich_customer_data_with_agg
使用指定的聚合器扩充客户数据。
enrich_customer_data_with_agg(customer_data_object: azureml.opendatasets.accessories.customer_data.CustomerData, agg: str, time_round_granularity: str = 'day') -> Tuple[azureml.opendatasets.accessories.customer_data.CustomerData, List[Tuple[str, str]]]
参数
返回
扩充的客户数据的元组 (joined_data)。
返回类型
反馈
提交和查看相关反馈