CoolFace
Apppublic

weiqi001/bankruptcy-mlflow-dashboard

sourceHugging Facemitupdated 2mo agoView on Hugging Face
0likes
App README

๐Ÿ“Š MLflow tracking dashboard

The experiment history for the Corporate Bankruptcy Early-Warning System, served from Hugging Face rather than from someone's laptop.

Every training run of the pipeline records ~15 parameters, ~15 metrics and its artefacts, plus a nested run for each candidate algorithm on each feature set. That is what you are looking at.

Where the data comes from

GitHub Actions                          Hugging Face
--------------                          ------------
model-training
  mlflow server on :5555 (in the job)
  train.py logs every run
        โ”‚
        โ–ผ
sync-tracking
  uploads mlflow.db + mlruns/  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ถ dataset repo
  restarts this Space          โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ถ this Space
                                            โ”‚
                                            โ–ผ
                                    restore.py pulls the
                                    snapshot on boot, then
                                    mlflow server serves it

The dashboard therefore reflects every completed pipeline run, refreshed within about a minute of one finishing, because the pipeline restarts this Space after it syncs.

What "real-time" means here

ModeWhat you seeCost
Snapshot (default)Every run, refreshed after each pipeline runNothing; the Space stays read-only in practice
Live (optional)Metrics appearing during a training runThe pipeline must log straight to this Space; see below

To switch to live logging, point the training job at this Space:

yaml
env:
  MLFLOW_TRACKING_URI: https://<owner>-<space>.hf.space

Read the trade-offs in the project's docs/MLFLOW_DASHBOARD.md before doing that โ€” chiefly that a Space filesystem is ephemeral, so a restart loses anything not yet synced, and that a public Space is writable by anyone who knows the URL.

Configuration

Set in the Space's Settings โ†’ Variables and secrets:

NameKindValue
MLFLOW_DATASET_REPOvariable<owner>/bankruptcy-early-warning-mlflow
HF_TOKENsecretonly if that dataset repo is private

Without MLFLOW_DATASET_REPO the Space still starts, with an empty store.

Related

  • โ€”Application โ€” the Streamlit early-warning app
  • โ€”Dataset โ€” the 10,503 firm-years the model was fitted on
  • โ€”Source โ€” the GitHub repository and its MLOps pipeline