No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

main.c 736B

1234567891011121314151617181920212223242526272829303132
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. #include <string.h>
  4. #include "randomness.h"
  5. #include "neurons.h"
  6. #include "network.h"
  7. #include "activations.h"
  8. #include "preprocessing.h"
  9. #include "training.h"
  10. int main(int argc, char *argv[])
  11. {
  12. init_randomness();
  13. printf("Bonjour et bienvenu ;)\n");
  14. int n_neurons[] = {3,120,220,120,200,10};
  15. char *activations[] = {"relu","relu","relu","relu","relu","sigmoid"};
  16. Network *net = init_network(n_neurons, 6, activations);
  17. print_network(net);
  18. Data *data = csv_to_samples("mydata.csv", 3, ",", 70.0, "yes", 3);
  19. print_data(data);
  20. forward(net, data->first_sample);
  21. print_network(net);
  22. destroy_network(net);
  23. destroy_data(data);
  24. return 0;
  25. }