POST/backtestsadmin

Backtest: fit the release of a design, a run or an inline release on a measured series BEFORE the cut and forecast after it; scored only out of sample at each horizon (MAPE, sMAPE, MAE, pinball, cumulative error) beside naive baselines (last period carried forward, no further change, seasonal-naive when the cadence has a season), with a plain verdict on whether the model beat each. A signal and an outcome make it a calibration pair. All faults come back at once in faults [{path, message}].

Body

subjectwhat the series measures
series{values: [8..1000 numbers >= 0], kind: cumulative|per_period, cadence: hour|day|week|month|quarter, start?: YYYY-MM-DD, measure?: adoption (new adopters per period, default) | attention (level per period)}
cutpoints before the cut (4..n-1), or a date with series.start
horizonsdays, 1..8 (default [7, 30, 90])
designa design key (its release seeds the fit)
runor a run id
releaseor {channels, imitation, fatigue, fatigue_shape}
seedwhole number (1): the same seed, the same fit
seasonperiods per season (default day 7, week 52, month 12, quarter 4)
margin0..1 (0.05): how much lower the MAE must be to count as beating
signal{run, metric: mean|would_act|have_it_end|ever_had_it_end, measure?} (debiased by the run's measured prior) or {value, metric?}
outcomenumber observed (default: the total after the cut to the longest horizon)
GET/backtestsmember

Backtests, newest first, with their verdicts.

Query

designonly this design's
subjectonly this subject's
limit1..100 (20)
GET/backtests/:idmember

One backtest: the series, the fitted parameters (with an in-sample error that is never judged), per-horizon scores and skill against each baseline, the verdict, and the forecast with its 10–90% band beside the actuals and baselines.

DELETE/backtests/:idadmin

Delete a backtest and its calibration pair, for good (404 when not the tenant's). Event backtest.deleted.

POST/backtests/deleteadmin

Delete many backtests at once; those not found come back under missing.

Body

ids[ids], 1..200
POST/backtests/:id/archiveadmin

Archive (archived: true, the default) or bring back (false) a backtest. Archived backtests leave lists unless ?archived=1 (only archived) or all.

Body

archivedtrue | false
POST/backtests/archiveadmin

Archive or bring back many backtests at once.

Body

ids[ids], 1..200
archivedtrue | false
A glass tree whose crown holds many small worlds like fruit

Which world will you live in?

What grows here is meant to reach the real world. Start with a world of your own.