共用方式為


granularity 模組

包含時間和位置的數據粒度定義。

資料粒度的組織方式如下:

您可以在擴充函式中指定數據粒度。 例如,使用 HolidayEnricher 類別方法擴充數據時,請將 指定 TimeGranularity 為 方法的輸入參數。

類別

DayGranularity

定義一天的時間粒度。

Granularity

定義基底數據粒度類別。

HourGranularity

定義小時的時間粒度。

LocationClosestGranularity

定義最接近的位置粒度。

_cord_count 是卸除重複項目之後的客戶數據計數。 如果大於 _cord_limit_lower_fuzzy_boundary 則會用來執行粗略篩選,否則 _upper_fuzzy_boundary 會使用 。

所有可能的位置都會依兩個位置的球形距離進行排名, _closest_top_n 系統會選取 進行進一步聯結。

使用各種組態初始化。

cord_count是dropDuplicates() 之後的customer_data計數,如果大於 _cord_limit,我們將使用 _lower_fuzzy_boundary 來執行粗略篩選,否則請使用 _upper_fuzzy_boundary。 所有可能的位置都會依兩個位置的球形距離進行排名,我們將選取_closest_top_n做進一步的聯結。

LocationGranularity

定義基底位置粒度。

MonthGranularity

定義月份的時間粒度。

TimeGranularity

定義時間粒度的基類。