Fase 8 — Apprendimento #109

Merged
Alby96 merged 8 commits from fase-8 into main 2026-12-01 16:58:07 +01:00
Owner

Un modello che impara dall'esito dei segnali e può solo rimpicciolire le operazioni (SPEC 11, scelte nell'ADR 0018). Nessun pacchetto nuovo: i modelli sono scritti in casa.

  • #62 Archivio degli indizi "a una certa data" ed etichette
  • #63 Addestramento, convalida, calibrazione, registro e primo modello (docs/learning/first-model.md)
  • #64 Ciclo continuo: modello in carica e sfidante, deriva, messa da parte, promozione
  • #65 Scostamento, impatto delle notizie, scoperte a parole
  • #66 Schermata Apprendimento e sezione del modello in Impostazioni
  • #67 Revisione indipendente: 10 difetti nei calcoli e 15 nelle schermate, poi 11 trovati da una seconda lettura sulle correzioni; tutti corretti con le loro prove (ADR 0018, punti 17 e 18). Una terza lettura non ne ha trovati altri.
  • Prove più robuste su un server carico: la pulizia del database di prova si ritenta (la CI della versione precedente era caduta lì, a test già superato).

Onestà sul primo modello: le sue stime sono appena migliori di chi risponde sempre la frequenza di base (0,2% nelle combinazioni, 1,1% in avanti). Resta in osservazione e non cambia nessuna operazione finché non passa i criteri di 11.5. Ha studiato solo crypto_trend: le strategie azionarie aspettano lo storico di Alpaca.

Closes #67

🤖 Generated with Claude Code

Un modello che impara dall'esito dei segnali e può solo rimpicciolire le operazioni (SPEC 11, scelte nell'ADR 0018). Nessun pacchetto nuovo: i modelli sono scritti in casa. - #62 Archivio degli indizi "a una certa data" ed etichette - #63 Addestramento, convalida, calibrazione, registro e primo modello (`docs/learning/first-model.md`) - #64 Ciclo continuo: modello in carica e sfidante, deriva, messa da parte, promozione - #65 Scostamento, impatto delle notizie, scoperte a parole - #66 Schermata Apprendimento e sezione del modello in Impostazioni - #67 Revisione indipendente: 10 difetti nei calcoli e 15 nelle schermate, poi 11 trovati da una seconda lettura sulle correzioni; tutti corretti con le loro prove (ADR 0018, punti 17 e 18). Una terza lettura non ne ha trovati altri. - Prove più robuste su un server carico: la pulizia del database di prova si ritenta (la CI della versione precedente era caduta lì, a test già superato). Onestà sul primo modello: le sue stime sono appena migliori di chi risponde sempre la frequenza di base (0,2% nelle combinazioni, 1,1% in avanti). Resta in osservazione e non cambia nessuna operazione finché non passa i criteri di 11.5. Ha studiato solo `crypto_trend`: le strategie azionarie aspettano lo storico di Alpaca. Closes #67 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Alby96 added 6 commits 2026-12-01 13:40:01 +01:00
One example for the first entry intent of a strategy, executed or not and also
in observation, saved in the transaction of the decision with the clues known at
that moment. The label is the operation simulated alone at full size, net of
costs, so it does not depend on what the bot did with the signal (ADR 0018).

refs #62

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Logistic regression, boosted trees and random forest, calibration, purged
validation and the choice by mean gain per proposed operation (refs #63).
The first model comes from the crypto history: nothing better than the base
rate, so it starts in observation as the report says.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The multiplier is the last corrective and is fixed when an operation is
born. Until the criteria of SPEC 11.5 are met the estimates are only noted
beside each operation. Every night the outcomes are labelled and the model
is checked (precision, ADWIN on the error, clues never studied) and set
aside when it is wrong; every Sunday a challenger is trained or judged.

refs #64

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The monthly regression raises an estimate by itself and lowers one only on
real money and with the confirmation of the user in the Laboratorio. The
table of what news does to prices and the fixed list of questions on the
clues are informative only.

refs #65

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Apprendimento screen says in plain words whether the model counts, how
well its probabilities hold, which clues it weighs, how the challenger is
doing and what it has learned. Thresholds, set-aside and the undo of a
promotion live in Impostazioni; anything that shrinks less with real money
asks for the phrase. The new tests also caught a wrong column name that
broke the Panoramica as soon as the first model existed.

refs #66

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Fix what the independent review of Phase 8 found and close the phase
ci / test (postgres) (push) Successful in 6m37s
ci / test (sqlite) (push) Successful in 7m51s
ci / test (postgres) (pull_request) Successful in 5m40s
ci / test (sqlite) (pull_request) Successful in 7m31s
ci / image (push) Successful in 2m29s
ci / image (pull_request) Successful in 59s
0b0f4a5e75
Two reviewers with a clean context read the engine and the screens. The
isotonic calibration took its floor from the first step, even of two cases, so
with few winners it flattened every estimate: the first model is rebuilt with
the fix. Learning failures no longer forget the multiplier an operation was
born with, nor stop a decision or the nightly check; recovered decisions read
the outside world as it was when due; models estimate only the strategies they
studied; a newer history does not repeat what was lived. The screens count
examples instead of verifications, show the next threshold and never round an
alarm to 50%; two forms now check the antiforgery token.

Each defect has its test, on both engines. ADR 0018 point 17 has the list.

refs #67

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Alby96 added 1 commit 2026-12-01 14:32:24 +01:00
Fix what a second independent reading of the Phase 8 fixes found
ci / test (postgres) (push) Failing after 6m9s
ci / test (sqlite) (push) Successful in 7m6s
ci / image (push) Skipped
ci / test (postgres) (pull_request) Successful in 5m51s
ci / test (sqlite) (pull_request) Successful in 7m3s
ci / image (pull_request) Successful in 1m51s
c7e462b6f4
One funded signal was enough to start the model for good, because the interval
of a few cases had no width: it now takes a hundred, weighed among themselves.
A computer always off at 03:00 never made the night of the model: a job to make
up for counts from the first start that knows it, and the night waits for the
bars of the absence. Stories are seen as they were when the decision was due, a
report already out does not close a label, an undone promotion starts the trial
again, and the trade card finds the estimate of an example born earlier.

ADR 0018 point 18 has the list; each defect has its test.

refs #67

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Alby96 added 1 commit 2026-12-01 15:20:59 +01:00
Let the tests ride out a busy server
ci / test (postgres) (push) Successful in 5m36s
ci / test (sqlite) (push) Successful in 7m14s
ci / test (postgres) (pull_request) Successful in 5m57s
ci / test (sqlite) (pull_request) Successful in 7m11s
ci / image (push) Successful in 1m21s
ci / image (pull_request) Successful in 59s
3eabc7713e
On a loaded runner a forced DROP DATABASE gave up on an autovacuum slow to
leave, and failed a test that had already passed: the cleanup is tried again, as
the creation already is. The feed test gets time for its slow reader on a
computer at full load.

refs #67

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Alby96 merged commit 3da9b00f44 into main 2026-12-01 16:58:07 +01:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: BalboSoft/Anubis#109