-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Expand file tree
/
Copy path__init__.py
More file actions
39 lines (30 loc) · 1.44 KB
/
__init__.py
File metadata and controls
39 lines (30 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
"""
MLflow integration for Feast Feature Store.
This module provides seamless integration between Feast and MLflow. When enabled
in feature_store.yaml, feature metadata is logged to MLflow
during get_historical_features and get_online_features calls.
Usage:
Configure MLflow in your feature_store.yaml:
project: my_project
# ... other config ...
mlflow:
enabled: true
tracking_uri: https://mlflow.example.com # or set MLFLOW_TRACKING_URI
auto_log: true
When ``tracking_uri`` is omitted, the ``MLFLOW_TRACKING_URI`` environment
variable is used. If neither is set, MLflow falls back to its own default.
All functionality is accessed through ``store.mlflow``:
- ``store.mlflow.start_run()`` — start an MLflow run pre-tagged with Feast metadata
- ``store.mlflow.log_model()`` — log a model with ``feast_features.json``
- ``store.mlflow.resolve_features()`` — map an MLflow model to its feature service
- ``store.mlflow.get_training_entity_df()`` — reproduce training by pulling entity
data from a previous MLflow run's artifacts
"""
from feast.mlflow_integration.config import MlflowConfig
from feast.mlflow_integration.entity_df_builder import FeastMlflowEntityDfError
from feast.mlflow_integration.model_resolver import FeastMlflowModelResolutionError
__all__ = [
"MlflowConfig",
"FeastMlflowModelResolutionError",
"FeastMlflowEntityDfError",
]