mltrace.db package#
Submodules#
mltrace.db.base module#
mltrace.db.models module#
- class mltrace.db.models.Component(name, description, owner, tags=[])[source]#
Bases:
Base
- component_runs#
- description#
- name#
- owner#
- tags#
- class mltrace.db.models.ComponentRun(component_name)[source]#
Bases:
Base
- add_inputs(inputs: List[IOPointer])[source]#
Add a list of inputs (each element should be an instance of IOPointer).
- add_outputs(outputs: List[IOPointer])[source]#
Add a list of outputs (each element should be an instance of IOPointer).
- code_snapshot#
- component_name#
- dependencies#
- end_timestamp#
- git_hash#
- git_tags#
- id#
- inputs#
- mlflow_run_id#
- mlflow_run_metrics#
- mlflow_run_params#
- notes#
- outputs#
- set_end_timestamp(ts: Optional[datetime] = None)[source]#
Call this function to set the end timestamp to a specific timestamp or now.
- set_mlflow_run_id(mlflow_run_id: str)[source]#
Call this function to set the mlflow component run id
- set_mlflow_run_metrics(mlflow_run_metrics: dict)[source]#
Call this function to set the mlflow component run id
- set_mlflow_run_params(mlflow_run_params: dict)[source]#
Call this function to set the mlflow component run id
- set_start_timestamp(ts: Optional[datetime] = None)[source]#
Call this function to set the start timestamp to a specific timestamp or now.
- set_upstream(dependencies: Union[List[ComponentRun], ComponentRun])[source]#
Set dependencies for this ComponentRun. API similar to Airflow set_upstream.
- stale#
- start_timestamp#
- test_results#
- class mltrace.db.models.IOPointer(name, value=b'', pointer_type=PointerTypeEnum.UNKNOWN, labels=[])[source]#
Bases:
Base
- flag#
- labels#
- name#
- pointer_type#
- set_pointer_type(pointer_type: PointerTypeEnum)[source]#
- value#