diff options
| author | Sam Scholten | 2026-10-15 08:00:39 +1000 |
|---|---|---|
| committer | Sam Scholten | 2026-10-15 08:00:39 +1000 |
| commit | c2dd299c2f2ebb1c4d5614087402d38173ed93ec (patch) | |
| tree | eb97a830b695a043e697ecc57b12a580173f7b58 /justfile | |
| parent | 9552cfc2058aa09c6c8b5d4b02d8700bc9fbce17 (diff) | |
| download | fluxrec-c2dd299c2f2ebb1c4d5614087402d38173ed93ec.tar.gz fluxrec-c2dd299c2f2ebb1c4d5614087402d38173ed93ec.zip | |
improve time stamps
Diffstat (limited to 'justfile')
| -rw-r--r-- | justfile | 25 |
1 files changed, 6 insertions, 19 deletions
@@ -15,12 +15,10 @@ vet: clean: rm -f fluxrec -# Quick smoke: train-free, needs a model.json (from `fluxrec train`, future) +# Quick smoke: train-free, needs a model.json score TITLE MODEL="model.json": echo "{{TITLE}}" | go run . score --model {{MODEL}} -# ── auth (same pattern as the mflux justfile) ── - # Print the two export lines to paste in your shell (just can't set them for you) auth: @echo 'export MFLUX_URL="https://your-miniflux-host" # base URL, no trailing slash' @@ -41,26 +39,16 @@ retrostar LIMIT="50": # Pruning audit: per-feed volume + star stats feeds DAYS="180" MIN_PER_DAY="0.05" MIN_SEEN="0": check-auth - go run . feeds --days 180 --min-per-day 0.05 --min-seen 0 - -# ── retrain loop ── -# Eyeball report.json (precision@15 >= 0.10) before `just ship SERVER` — -# retrain never deploys. + go run . feeds --days {{DAYS}} --min-per-day {{MIN_PER_DAY}} --min-seen {{MIN_SEEN}} -# Export new labels, train, print the report path +# Export, compact the negative pool to the per-feed ceiling, then train (never deploys) retrain: check-auth go run . export + go run . compact-labels go run . train labels.jsonl @echo "report: report.json — check precision@15 >= 0.10 before shipping" -# ── deploy lane (local PC → server) ── -# SERVER is an ssh config alias; the agent does auth. No hostnames in this -# file. Run `ship` only after eyeballing report.json — retrain never deploys. -# The server state dir is bind-mounted at /data (created once on the VPS; -# see README "Deployment"); fluxrec runs under the compose stack at -# ~/services on the server. - -# Ship a freshly trained model.json to the server state dir +# Ship a freshly trained model.json to SERVER's state dir (SERVER = ssh alias) deploy SERVER: scp model.json {{SERVER}}:~/fluxrec-data/ @@ -72,8 +60,7 @@ restart SERVER: ship SERVER: (deploy SERVER) (restart SERVER) @echo "model shipped; serve restarted — watch /api/status next run" -# Full model refresh: retrain + ship in one verb (no report gate — eyeball -# report.json first if unsure, or use `retrain` + `ship` separately) +# retrain + ship in one verb (no report gate; use retrain/ship separately if unsure) refresh SERVER: retrain (ship SERVER) @echo "refreshed: retrained locally + model shipped to {{SERVER}}" |
