Skip to main content

Live Streamlit dashboard for kt-masterlog master CSV files. Companion to kt-masterlog.

Project description

kt-masterviz

Live Streamlit dashboard for kt-masterlog master CSV files. Companion package — separate install so you don't pay the dashboard's dependency footprint when you only want the logger.

What it does

Point kt-masterviz at any master CSV produced by kt-masterlog (or any CSV that follows the schema: trial_id, epoch, hyperparameter columns, metric columns) and get a live Streamlit dashboard showing:

  • Trial summary — one row per trial, sorted by the objective metric, with hyperparameter values inline.
  • Training curves — per-trial loss/accuracy lines, switchable across any detected metric.
  • Raw data — the full DataFrame, for ad-hoc filtering.

The reader is file-safe: tolerant of partial last rows from a writer mid-append, so you can launch the dashboard against a CSV that's still being written by a running tuner.

Install

With pip:

pip install kt-masterviz

With uv:

uv add kt-masterviz

Usage

kt-masterviz path/to/master_log.csv

Opens the dashboard at http://localhost:8501. The page auto-refreshes every few seconds (configurable in the sidebar) so trials show up as the tuner writes them.

The CSV doesn't need to exist when you launch — the dashboard polls and renders a waiting state until the writer produces the first row. Useful for starting the viewer before kicking off a long sweep.

Programmatic use

If you'd rather build your own viewer, the loader is the reusable bit:

from kt_masterviz import load_master_csv, detect_hyperparameter_columns

df = load_master_csv("runs/sweep_master_log.csv")
hp_cols = detect_hyperparameter_columns(df)
# ... your own pandas / plotly / altair code

CSV schema

kt-masterviz works with any CSV that has:

Column Required Purpose
trial_id yes Identifies a single tuning trial
epoch yes Epoch number within the trial
loss / val_loss / accuracy / etc. no (auto-detected) Training/validation metrics
anything else no Treated as a hyperparameter or extra field

Detection of "metric vs hyperparameter" is heuristic — a column counts as a metric if its lowercased name contains any of: loss, accuracy, acc, auc, mae, mse, rmse, f1, precision, recall, iou, dice. Everything else is treated as a hyperparameter or static field (and shown in the trial summary).

Requirements

  • Python 3.12 (tested; 3.13+ may work but is not yet verified)
  • pandas ≥ 2.0
  • streamlit ≥ 1.28

No dependency on kt-masterlog itself — kt-masterviz reads its file format but doesn't import its code.

License

MIT.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kt_masterviz-0.1.1.tar.gz (96.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

kt_masterviz-0.1.1-py3-none-any.whl (11.8 kB view details)

Uploaded Python 3

File details

Details for the file kt_masterviz-0.1.1.tar.gz.

File metadata

  • Download URL: kt_masterviz-0.1.1.tar.gz
  • Upload date:
  • Size: 96.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for kt_masterviz-0.1.1.tar.gz
Algorithm Hash digest
SHA256 493b8cae7e4a9a759815711a7cbafab2e76882134e26fe747fbb1ca6c10024dd
MD5 9a03289e0306d5a026c07ec8cb1e55ee
BLAKE2b-256 66d7d3889fd103e1af7a51a7d7d1858d797c7e79cc596a1779b73034a9d26c62

See more details on using hashes here.

File details

Details for the file kt_masterviz-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: kt_masterviz-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for kt_masterviz-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 81b3b3590bf7dd6c970ba1f4a29298bf97f4773b3a63634bae7d865187f2a7df
MD5 8b754b5c3626cdb67b22b0be4edf5e18
BLAKE2b-256 31fb7b89921ca6df2091c9e63d9893d081172fdc254a1420e63152f0f9e8f9f4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page