Repository navigation
fix: various bug fixes - #575
MartinuzziFrancesco wants to merge 5 commits into
Conversation
DelayLayer with stride > 1 updated its buffer only when clock % stride == 0, so delayed copies did not sit at a fixed lag. The layer now shifts on every call and returns h(t), h(t - s), ..., h(t - D*s), matching the NG-RC linear features (Gauthier 2021, Eq. 5) and the delay ESN equations. stride = 1 is unchanged. A history of the wrong size now throws a DimensionMismatch. Also: collectstates docstring is attached to the public method, the chain collectstates allocates its output with the element type of the first column (integer input data works), and the stride descriptions in the delay models and NGRC docstrings describe the new spacing. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
__state_modifier_output_dims for Extend assumed the wrapped op kept the state width, so a readout built after an Extend of a layer with a different output size had the wrong in_dims. The width now comes from the op applied to the state features, including nested Extend. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
reverse_simple_cycle! wrote weight[idx] where simple_cycle! uses weight[idx - 1] for the same edge convention, so the reverse cycle was shifted by one entry. true_doublecycle, permutation_init and diagonal_init now convert weights with T.(...) instead of passing the caller's vector to self_loop! and simple_cycle!, which overwrote it. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
…nputs ContinuousESN and SciMLProblemReservoir now throw when a solve or an autoregressive step does not return a successful retcode, instead of continuing with a bad state. Autoregressive predict copies initialdata into a float array of the same kind, so integer inputs work. use_bias and use_jac_prototype accept Static booleans. Calling ContinuousESN or LSM with three integers and no tspan or solver now says what arguments are missing instead of reporting that the extension is not loaded. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
loadpatterns rewrites reservoir_matrix, but EuSNCell does not apply that matrix directly (it uses reservoir_matrix - reservoir_matrix' - gamma * I), so loaded patterns would be wrong. It now throws an ArgumentError for EuSNCell. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
PR: #575 Reviewed head: 6f17bf2 Risk assessment
Review reportVERDICT: CHANGES Riskhigh (H1: 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 CPU suite and QA pass, but targeted probes found silent numerical changes and API regressions, and two signed examples fail their doctests."} Head link: 6f17bf2 🤖 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.
Additional context
Add any other context about the problem here.