-
Notifications
You must be signed in to change notification settings - Fork 1
/
hooks.py
30 lines (28 loc) · 814 Bytes
/
hooks.py
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
"""
API document about the Kedro hooks for MLflow is at:
https://pipelinex.readthedocs.io/en/latest/pipelinex.mlflow_on_kedro.hooks.mlflow.html
"""
import pipelinex
hooks = (
pipelinex.MLflowBasicLoggerHook(
uri="sqlite:///mlruns/sqlite.db",
experiment_name="experiment_001",
artifact_location="./mlruns/experiment_001",
offset_hours=0,
),
pipelinex.MLflowCatalogLoggerHook(
auto=True,
),
pipelinex.MLflowArtifactsLoggerHook(
filepaths_before_pipeline_run=["conf/base/parameters.yml"],
filepaths_after_pipeline_run=[
"info.log",
"errors.log",
],
),
pipelinex.MLflowEnvVarsLoggerHook(
param_env_vars=["HOSTNAME"],
metric_env_vars=[],
),
pipelinex.MLflowTimeLoggerHook(),
)