Let the model shrink entries once it has earned it and watch it every night

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>
This commit is contained in:
Alby96andClaude Opus 5.5 committed 2026-12-01 12:02:55 +01:00
1 parent 99ff2d9402
commit df21962da3
16 files changed
+1615 -52

No files matched your search

+2 -2
View File
@@ -221,8 +221,8 @@ public sealed class LearningCasesTests
var example = new Example(Guid.Empty, StrategyNames.EquityMeanrev, "AAPL", CaseSources.Live, First, rig.Clock.UtcNow, "meanrev_entry", 0.123456m, null, 4.25m,
new Dictionary<string, double> { [Clues.Strength] = 0.1 + 0.2, [Clues.Breadth] = 1 })
{ Stage = StrategyStages.Observation, DecisionId = Ids.NewId(rig.Clock), Multiplier = 0.4 };
var id = await rig.Db.WriteAsync(s => LearningStore.AddAsync(s, rig.Clock, example, none), none).ConfigureAwait(false);
await rig.Db.WriteAsync(s => LearningStore.AddAsync(s, rig.Clock, example, none), none).ConfigureAwait(false);
var id = (await rig.Db.WriteAsync(s => LearningStore.AddAsync(s, rig.Clock, example, none), none).ConfigureAwait(false))!.Value;
Assert.IsNull(await rig.Db.WriteAsync(s => LearningStore.AddAsync(s, rig.Clock, example, none), none).ConfigureAwait(false), "the same example again");
var read = (await store.AllAsync(none).ConfigureAwait(false)).Single();
Assert.AreEqual((id, example.Symbol, example.Weight, example.Stop, example.StopOffset, example.Stage, example.DecisionId, example.Multiplier),
(read.Id, read.Symbol, read.Weight, read.Stop, read.StopOffset, read.Stage, read.DecisionId, read.Multiplier));