HiFive1ã®è©¦è¡ãå¼ãç¶ãè¡ã£ã¦ãããããã¶ããã誰ã大è¦æ¨¡ãªããã°ã©ã æµãããã¨ãªãã®ããªãã¨ããã®ãåãã£ã¦ãã(æ°ããã)ã
ä¸æç®ã®ãã¼ããå£ãã¦ãã¾ã£ãã½ãã®ã ãã2æç®ã®ãã¼ããã¡ãã£ã¨å¤§ããã«é åãåã£ã¦ã³ã³ãã¤ã«å¾ãæµãããä¸æ£çµäºãããã¦æ¬¡å以éãã¤ããªã®ç¼ãè¾¼ã¿ãåãä»ããªããªã£ã¦ãã¾ã£ãããã°ãï¼
æ¸ãè¾¼ããã¨ãã¦ããã®ã¯ä»¥ä¸ã®ãã¤ããªã注æï¼ããæ¸ãè¾¼ãã¨HiFive1ããªã¼ãºãã¦åããªããªãã¾ãï¼
ã ãã¶ããã°ã©ã ãåãã¾ãã£ã¦ã以ä¸ãããã«ãã¦ã¿ããL1ãã£ãã·ã¥ã«å ¥ããªãç¨åº¦ã®ããã°ã©ã ã ã¨ãã¹ã¿ãã¯ã使ãã¤ã¶ããæå¥ãå¤ãªã¨ããã«æ¸ãè¾¼ãã£ã½ãï¼
#define INPUTNO (28*28) // No of input cell #define OUTPUTNO (10) #define HIDDENNO (50) // No of hidden cell #define ALPHA (10) // Coefficient of learning #define SEED (65535) // Seed of random // #define MAXINPUTNO (60000) // Max number of learning data #define MAXINPUTNO (100) // Max number of learning data #define BATCH_SIZE (100) #define LEARNING_RATE (0.1) #define WEIGHT_INIT (0.01) int main () { fix16_t wh0[INPUTNO * HIDDENNO]; fix16_t wb0[HIDDENNO]; fix16_t wh1[HIDDENNO * OUTPUTNO]; fix16_t wb1[OUTPUTNO]; ...
試è¡é¯èª¤ãããã¡ã«ãã©ããããªã»ãããã¿ã³ãä½åº¦ãæ¼ãã¦ããã¨å¾©æ§ããã¿ã¤ãã³ã°ãããæ§åã ãã®ã¿ã¤ãã³ã°ã§å¥ã®ã·ã³ãã«ãªããã°ã©ã (helloã¨ãled_fadeã¨ã)ãæ¸ãè¾¼ãã¨å¾©æ§ããã
ããããã¤ã³ã³ãã¼ãã¨ãã¦ã¯ã ãã¶å±ãããªãããæ°ãä»ãã¦ä½¿ããªãã¨ããã