Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions neuralredis.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand All @@ -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
Expand Down