summaryrefslogtreecommitdiff
path: root/spires_tutorial.c
diff options
context:
space:
mode:
authorTanner Robison <[email protected]>2026-07-06 10:35:32 -0700
committerTanner Robison <[email protected]>2026-07-07 15:42:48 -0700
commite2b30976cdaccf9d2b9820fefa22ced03c82711f (patch)
tree99f1d6d5824882a533f46f1819138ec5196abed3 /spires_tutorial.c
parent3a17db637fd41015df26f1cceb0d1c098e85d436 (diff)
readout layer trained
verified with time-series forecasting task and plotted
Diffstat (limited to 'spires_tutorial.c')
-rw-r--r--spires_tutorial.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/spires_tutorial.c b/spires_tutorial.c
index 758b5ea..f4eba10 100644
--- a/spires_tutorial.c
+++ b/spires_tutorial.c
@@ -44,6 +44,7 @@ int main(void) {
/* 4. Train with ridge regression */
s = spires_train_ridge(r, input_train, target_train, N_TRAIN, 1e-6);
+
if (s != SPIRES_OK) {
fprintf(stderr, "Training failed: %d\n", s);
spires_reservoir_destroy(r);