Skip to content

Add CLI: mlineage history <model> #2

@Fredbcx

Description

@Fredbcx

Context

MLineage has no command-line interface yet. The most useful first command is
mlineage history <model> — show the version history of a tracked model from the terminal.

Task

Using argparse or click, implement:

$ mlineage history fraud-detector --storage ./lineage-store
[2024-01-15 10:23]  a1b2c3d4  accuracy=0.921  f1=0.887  "Initial model trained on January data"
[2024-02-12 09:41]  e5f6g7h8  accuracy=0.934  f1=0.901  "February update"
[2024-03-10 11:05]  i9j0k1l2  accuracy=0.891  f1=0.854  "March update (data quality issue)"

Notes

  • Depends on Issue Implement local storage backend (JSON) #1 (storage backend) — can be developed in parallel but requires it to run end-to-end
  • Entry point goes in pyproject.toml under [project.scripts]
  • mlineage blame <model> --metric accuracy is a natural follow-up

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions