aboutsummaryrefslogtreecommitdiff
path: root/justfile
diff options
context:
space:
mode:
Diffstat (limited to 'justfile')
-rw-r--r--justfile25
1 files changed, 6 insertions, 19 deletions
diff --git a/justfile b/justfile
index df3d9d5..03f8afe 100644
--- a/justfile
+++ b/justfile
@@ -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}}"