aboutsummaryrefslogtreecommitdiff
path: root/src/nn.h
diff options
context:
space:
mode:
authorjvech <jmvalenciae@unal.edu.co>2024-08-26 12:12:40 -0500
committerjvech <jmvalenciae@unal.edu.co>2024-08-26 12:12:40 -0500
commite8624e1ebcabcc831d651e0beefe32df1463c903 (patch)
treea5fb8f491b30c01bc301cf0e5c7558cb4497b2b2 /src/nn.h
parent65926438256c1ed46993e1c8611597af5a9c23f1 (diff)
add: mini batch learning implemented
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 13e81da..5dbb656 100644
--- a/src/nn.h
+++ b/src/nn.h
@@ -52,7 +52,8 @@ void nn_network_train(
Layer network[], size_t network_size,
double *input, size_t input_shape[2],
double *labels, size_t labels_shape[2],
- struct Cost cost, size_t epochs, double alpha);
+ struct Cost cost, size_t epochs,
+ size_t batch_size, double alpha);
void nn_layer_map_activation(
double (*activation)(double),
Feel free to download, copy and edit any repo