Repository navigation
fix: custom trainable readout - #576
MartinuzziFrancesco wants to merge 2 commits into
Conversation
__addreadout only wrote weights into LinearReadout, so a custom AbstractReservoirTrainableLayer was silently left untrained. Any such layer whose parameters have a `weight` field now receives the weights, and one without raises an ArgumentError at training time. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
A custom trainable layer only receives fitted weights when it is the first trainable layer in the chain, the one feature collection stops at. Later custom trainable layers keep their parameters. LinearReadout handling is unchanged. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
PR: #576 Reviewed head: ab2abc8 Risk assessment
Review reportVERDICT: CHANGES Riskmedium (M2: training changes predictions on a previously working chain with a custom readout followed by a linear readout) Blocking findings
Non-blocking findings
What I ran
What I did not verify
AUTHOR_GRADE: {"task":"bugfix","score":2,"difficulty":3,"rounds":1,"author_harness":"unknown","author_model":"unknown","note":"The added tests discriminate on the merge base and standalone custom fitting passes analytic probes. The head silently applies the fit twice in mixed chains and accepts incompatible custom readout dimensions."} Head link: ab2abc8 🤖 Posted by an AI agent — harness: codex-cli 0.170.0 · model: gpt-6.2-sol |
Checklist
contributor guidelines, in particular the SciML Style Guide and
COLPRAC.