diff --git a/README.md b/README.md index e839dd7..a03f52b 100644 --- a/README.md +++ b/README.md @@ -209,7 +209,7 @@ ones. We can also see that the network was trained with 1344 steps for 0 seconds (just a few milliseconds). Each step is the training performed with a single -data item, so the same 6 items were presented to the network for 244 cycles +data item, so the same 6 items were presented to the network for 224 cycles in total. A few words about normalization diff --git a/neuralredis.c b/neuralredis.c index 5d35471..f2454ce 100644 --- a/neuralredis.c +++ b/neuralredis.c @@ -104,7 +104,7 @@ typedef struct { float *onorm; /* Outputs normalization factors. */ } NRTypeObject; -struct { +typedef struct { RedisModuleString *key; /* Key name of the NN we are training. Set to NULL for unused slots. */ int db_id; /* DB ID where the key is. */ @@ -115,7 +115,7 @@ struct { float test_error; /* Test error in the last cycle. */ float class_error; /* Percentage of wrong classifications. */ int curcycle; /* Current cycle. */ -} typedef NRPendingTraining; +} NRPendingTraining; /* We take an array with NNs currently training in other threads. * Every time an NN command is called, we try to see if there are