diff options
author | jvech <jmvalenciae@unal.edu.co> | 2024-08-06 14:29:42 -0500 |
---|---|---|
committer | jvech <jmvalenciae@unal.edu.co> | 2024-08-06 14:29:42 -0500 |
commit | ebd66e65bf18574fa8905d7b0ae3fbb85bfc9e06 (patch) | |
tree | da128cfa54b20abbff670c89278f0005b0f128cb /src/main.c | |
parent | ce0001538820d819bf965a24ffbb6f6e6269859c (diff) |
add: file parsing improved
Things implemented:
* json_read() must die if the key does not exist or the value type is wrong.
* on predict command input should be shown exactly the same
* float precision CLI option should be added.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -95,6 +95,7 @@ int main(int argc, char *argv[]) { .config_filepath = "utils/settings.cfg", .network_size = 0, .only_out = false, + .decimal_precision = -1, .file_format = NULL, .out_filepath = NULL, }; @@ -146,7 +147,8 @@ int main(int argc, char *argv[]) { file_write(ml_configs.out_filepath, X, y, ml_configs.input_keys, ml_configs.n_input_keys, ml_configs.label_keys, ml_configs.n_label_keys, - !ml_configs.only_out, ml_configs.file_format); + !ml_configs.only_out, ml_configs.file_format, + ml_configs.decimal_precision); } else usage(1); nn_network_free_weights(network, ml_configs.network_size); |