aboutsummaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorjvech <jmvalenciae@unal.edu.co>2023-08-23 12:25:46 -0500
committerjvech <jmvalenciae@unal.edu.co>2023-08-23 12:25:46 -0500
commitca92314f00cb41c3d9d2976cfc819b359d53cda1 (patch)
tree7489a3b7c477809ed6db310a499d5545118efe10 /src/main.c
parent23e665000e876f9ff8b521a060b0cdb7e58287cb (diff)
add: basic configuration parsing implemented
parameters implemented: - input_keys - label_keys - epochs - labels - weights_path Network weights and architecture loading is not implemented yet.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 0071426..7800495 100644
--- a/src/main.c
+++ b/src/main.c
@@ -92,9 +92,10 @@ int main(int argc, char *argv[]) {
struct Configs ml_configs = {
.epochs = 100,
.alpha = 1e-5,
- .config_filepath = "utils/config.yml",
+ .config_filepath = "utils/ml.cfg",
};
- util_load_config(&ml_configs);
+
+ util_load_config(&ml_configs, ml_configs.config_filepath);
util_load_cli(&ml_configs, argc, argv);
return 0;
}
Feel free to download, copy and edit any repo