aboutsummaryrefslogtreecommitdiff
path: root/src/nn.h
diff options
context:
space:
mode:
authorjvech <jmvalenciae@unal.edu.co>2024-09-03 20:08:25 -0500
committerjvech <jmvalenciae@unal.edu.co>2024-09-03 20:08:25 -0500
commitf39f6d5b0a907d519377e70876b32daad1a676f2 (patch)
treee5462ac42b395e2e9938de53ffbfbf6f0380d3de /src/nn.h
parente8624e1ebcabcc831d651e0beefe32df1463c903 (diff)
feat: shuffle dataset on each epoch done
The CLI option to disable it was also added.
Diffstat (limited to 'src/nn.h')
-rw-r--r--src/nn.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nn.h b/src/nn.h
index 5dbb656..9f8e2a5 100644
--- a/src/nn.h
+++ b/src/nn.h
@@ -53,7 +53,8 @@ void nn_network_train(
double *input, size_t input_shape[2],
double *labels, size_t labels_shape[2],
struct Cost cost, size_t epochs,
- size_t batch_size, double alpha);
+ size_t batch_size, double alpha,
+ bool shuffle);
void nn_layer_map_activation(
double (*activation)(double),
Feel free to download, copy and edit any repo