diff options
author | jvech <jmvalenciae@unal.edu.co> | 2024-08-26 12:12:40 -0500 |
---|---|---|
committer | jvech <jmvalenciae@unal.edu.co> | 2024-08-26 12:12:40 -0500 |
commit | e8624e1ebcabcc831d651e0beefe32df1463c903 (patch) | |
tree | a5fb8f491b30c01bc301cf0e5c7558cb4497b2b2 /src/main.c | |
parent | 65926438256c1ed46993e1c8611597af5a9c23f1 (diff) |
add: mini batch learning implemented
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -91,6 +91,7 @@ int main(int argc, char *argv[]) { char default_config_path[512], *env_config_path; struct Configs ml_configs = { .epochs = 100, + .batch_size = 32, .alpha = 1e-5, .config_filepath = "", .network_size = 0, @@ -138,6 +139,7 @@ int main(int argc, char *argv[]) { y.data, y.shape, load_loss(ml_configs), ml_configs.epochs, + ml_configs.batch_size, ml_configs.alpha); nn_network_write_weights(ml_configs.weights_filepath, network, ml_configs.network_size); fprintf(stderr, "weights saved on '%s'\n", ml_configs.weights_filepath); |