次の方法で共有


CommonWeatherEnricher クラス

GFS 予測および ISD 履歴データ用の一般的な気象エンリッチャーを定義します。

NOAA Global Forecast System (GFS) 気象データと NOAA Integrated Surface Data (ISD) の履歴データは、Open Datasets カタログで入手できます。 これらのパブリック データセットを使用して、データを強化できます。

パブリック データ オブジェクトを使用して初期化します。

コンストラクター

CommonWeatherEnricher(public_data_object: PublicData, enable_telemetry: bool = False)

パラメーター

名前 説明
public_data_object
必須

パブリック データセット。

enable_telemetry

テレメトリを送信するかどうかを示します。

規定値: False
public_data_object
必須

パブリック データセット。

enable_telemetry
必須

テレメトリを送信するかどうかを示します。

メソッド

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: CustomerData, location_match_granularity: int = 1, time_round_granularity: str = 'hour') -> Tuple[CustomerData, PublicData, List[Tuple[str, str]]]

パラメーター

名前 説明
customer_data_object
必須

顧客データ クラスのインスタンス。

location_match_granularity
int

location_granularity.closest_top_n

規定値: 1
time_round_granularity
str

時間の細分性、'day'、'hour'、または 'month'。

規定値: hour

戻り値

説明

エンリッチされた顧客データ (new_customer_data) processed_public_dataのタプル。

enrich_customer_data_with_agg

指定したアグリゲーターを使用して顧客データを強化します。

enrich_customer_data_with_agg(customer_data_object: CustomerData, agg: str, location_match_granularity: int = 1, time_round_granularity: str = 'hour') -> Tuple[CustomerData, List[Tuple[str, str]]]

パラメーター

名前 説明
customer_data_object
必須

顧客データ クラスのインスタンス。

agg
必須

アグリゲーター。

location_match_granularity
int

location_granularity.closest_top_n

規定値: 1
time_round_granularity
str

time_granularity

規定値: hour

戻り値

説明

エンリッチされた顧客データのタプル (joined_data)