summaryrefslogtreecommitdiff
path: root/spires_tutorial.c
diff options
context:
space:
mode:
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);