CommonWeatherEnricher 类

为 GFS 预测和 ISD 历史记录数据定义常见的天气扩充器。

NOAA 全球预测系统 (GFS) 天气数据和 NOAA 集成地面数据 (ISD) 历史数据在开放数据集目录中提供。 这些公共数据集可用于扩充数据。

继承
CommonWeatherEnricher

构造函数

CommonWeatherEnricher(public_data_object: azureml.opendatasets.accessories.public_data.PublicData, enable_telemetry: bool = False)

参数

public_data_object
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, location_match_granularity: int = 1, time_round_granularity: str = 'hour') -> Tuple[azureml.opendatasets.accessories.customer_data.CustomerData, azureml.opendatasets.accessories.public_data.PublicData, List[Tuple[str, str]]]

参数

customer_data_object
CustomerData
必需

客户数据类的实例。

location_match_granularity
int
默认值: 1

location_granularity.closest_top_n

time_round_granularity
str
默认值: hour

时间粒度:“day”、“hour”或“month”。

返回

扩充的客户数据 (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, location_match_granularity: int = 1, time_round_granularity: str = 'hour') -> Tuple[azureml.opendatasets.accessories.customer_data.CustomerData, List[Tuple[str, str]]]

参数

customer_data_object
CustomerData
必需

客户数据类的实例。

agg
Aggregator
必需

聚合器。

location_match_granularity
int
默认值: 1

location_granularity.closest_top_n

time_round_granularity
str
默认值: hour

time_granularity

返回

扩充的客户数据 (joined_data) 的元组

返回类型