å
æ¥ãRand Index ã«ããã¯ã©ã¹ã¿ãªã³ã°éã®è·é¢ã®è¨ç®ã«ã¤ãã¦è¨äºãæ¸ãã¾ããããD3.js ã使ã£ããã¢ãã¼ã¸ãä½æãã¦ã¿ã¾ããã
Rand Index のデモ
ç»é¢ã®å·¦å³ã«è¡¨ç¤ºãããäºæã®æ¥æ¬å°å³ã¯ãããããç¬ç«ã« k-means ã§ã¯ã©ã¹ã¿ãªã³ã°ãã¦è²åãããã¦ãã¾ã*1ããã®çµæããè¨ç®ãã Rand Index 㨠Adjusted Rand Index ãç»é¢ä¸é¨ã«è¡¨ç¤ºããã¾ããã¯ã©ã¹ã¿æ°ã 2 ãã 6 ã®ç¯å²ã§é¸æãã¦ãåè¨ç®ã®ãã¿ã³ãæ¼ãã¨ãè¨å®ãããã¯ã©ã¹ã¿æ°ã§ k-means ãåå®è¡ãã¾ãã
å°å³ä¸ã®é½éåºçã«ãã¦ã¹ã«ã¼ã½ã«ãéããã¨ã両å´ã®ã¯ã©ã¹ã¿ãªã³ã°çµæãæ¯è¼ãã¦ã以ä¸ã®æ¡ä»¶ã«åè´ããé½éåºçããã¤ã©ã¤ãããã¾ãã
- ãã¦ã¹ã«ã¼ã½ã«ãç½®ããã¦ããé½éåºç
- ãã¦ã¹ã«ã¼ã½ã«ãç½®ããã¦ããé½éåºçã¨ãå·¦å³ããããã§ã¯åä¸ã¯ã©ã¹ã¿ (åè²) ã§ãããä¸æ¹ã§ã¯ç°ãªãã¯ã©ã¹ã¿ (ç°ãªãè²) ã«åé¡ããã¦ããé½éåºç*2
ç»é¢ã®ä¾ã§ã¯ãæ±äº¬é½ã«ãã¦ã¹ã«ã¼ã½ã«ãéãã¦ãã¾ããæ±äº¬é½ã¯ãå·¦ã®å³ã§ã¯éãå³ã®å³ã§ã¯ç·ã«åé¡ããã¦ãã¾ããç³å·çãå²éçãæç¥çã¯ãå·¦ã®å³ã§ã¯æ±äº¬é½ã¨åè² (é)ãå³ã®å³ã§ã¯æ±äº¬é½ã¨ç°ãªãè² (赤) ã«åé¡ããã¦ããããããã¤ã©ã¤ã表示ããã¾ããã¾ãã山形çã¯ãå·¦ã®å³ã§ã¯æ±äº¬é½ã¨ç°ãªãè² (ç·)ãå³ã®å³ã§ã¯æ±äº¬é½ã¨åè² (ç·) ã«åé¡ããã¦ãããããããããã¤ã©ã¤ã表示ããã¾ãã
*1:å æ¥ã®è¨äºã§ã¯å½åå°çé¢ã®ã¦ã§ããã¼ã¸ã®ãã¼ã¿ãå©ç¨ãã¾ããããNatural Earth ã®ãã¼ã¿ã«ãåé½éåºçã®ç·¯åº¦çµåº¦ãå«ã¾ãã¦ãã¾ããã®ã§ãä»åã¯ãããå©ç¨ãã¾ããããã ãããã®åº§æ¨ãåé½éåºçã®ä½ã®åº§æ¨ãªã®ãã¯æªèª¿æ»ã§ãã
*2:å æ¥ã®è¨äºã§ãâãÃãã¾ãã¯ãÃãâãã«è©²å½ããé½éåºçã§ãã