Weather casting with Machine Learning (SVM and SRNN).

Dependencies:   EthernetInterface GraphicHandler NTPClient SRNN SVM SensorModule mbed-rtos mbed

Revision:
6:29d393d430d0
Parent:
5:b61f3f5b0fc8
--- a/setup.cpp	Thu Feb 19 19:21:16 2015 +0000
+++ b/setup.cpp	Sun Feb 22 01:06:19 2015 +0000
@@ -12,6 +12,7 @@
     int* svm_tmp_sample_label = new int[MCSVM_NUM_SAMPLES];
     float* svm_tmp_mc_alpha   = new float[MCSVM_NUM_SAMPLES * NUM_WEATHERS * (NUM_WEATHERS - 1) / 2];
 
+    // You can use /dat/SVM_SAMP.txt
     svm_setup_fp = fopen( "/local/SVM_SAMP.CSV" , "r" );
     if( svm_setup_fp == NULL ) {
         fprintf( stderr, "Error in svm setup : sample file cannot open. \r \n" );
@@ -42,6 +43,8 @@
 
     // Thank you freopen.
     // Here, we should not use fclose -> fopen
+    
+    // You can use /dat/SVM_ALPH.txt
     svm_setup_fp = freopen("/local/SVM_ALPH.CSV", "r", svm_setup_fp );
     fflush( svm_setup_fp ); // required.
 
@@ -192,7 +195,7 @@
     printf("SVM ...OK \r\n");
     srnn_setup();
     printf("SRNN ...OK \r\n");
-    sensor_setup();
+    //sensor_setup();
     printf("SENSOR ...OK \r\n");
     // network_setup();
     jst_setup(2015, 2, 20, 4, 0);