MCPcopy
hub / github.com/feast-dev/feast / get_historical_features

Method get_historical_features

sdk/python/feast/infra/provider.py:249–281  ·  view source on GitHub ↗

Retrieves the point-in-time correct historical feature values for the specified entity rows. Args: config: The config for the current feature store. feature_views: A list containing all feature views that are referenced in the entity rows. featur

(
        self,
        config: RepoConfig,
        feature_views: List[Union[FeatureView, OnDemandFeatureView]],
        feature_refs: List[str],
        entity_df: Optional[Union[pd.DataFrame, str]],
        registry: BaseRegistry,
        project: str,
        full_feature_names: bool,
        **kwargs,
    )

Source from the content-addressed store, hash-verified

247
248 @abstractmethod
249 def get_historical_features(
250 self,
251 config: RepoConfig,
252 feature_views: List[Union[FeatureView, OnDemandFeatureView]],
253 feature_refs: List[str],
254 entity_df: Optional[Union[pd.DataFrame, str]],
255 registry: BaseRegistry,
256 project: str,
257 full_feature_names: bool,
258 **kwargs,
259 ) -> RetrievalJob:
260 """
261 Retrieves the point-in-time correct historical feature values for the specified entity rows.
262
263 Args:
264 config: The config for the current feature store.
265 feature_views: A list containing all feature views that are referenced in the entity rows.
266 feature_refs: The features to be retrieved.
267 entity_df: A collection of rows containing all entity columns on which features need to be joined,
268 as well as the timestamp column used for point-in-time joins. Either a pandas dataframe can be
269 provided or a SQL query. If None, features will be retrieved for the specified timestamp range.
270 registry: The registry for the current feature store.
271 project: Feast project to which the feature views belong.
272 full_feature_names: If True, feature names will be prefixed with the corresponding feature view name,
273 changing them from the format "feature" to "feature_view__feature" (e.g. "daily_transactions"
274 changes to "customer_fv__daily_transactions").
275 start_date: Start date for the timestamp range when retrieving features without entity_df.
276 end_date: End date for the timestamp range when retrieving features without entity_df.
277
278 Returns:
279 A RetrievalJob that can be executed to get the features.
280 """
281 pass
282
283 @abstractmethod
284 def online_read(

Calls

no outgoing calls