ãã€ããŒèªäœã«å ããŠããã€ããŒããã»ã¹ïŒã¹ã±ãžã¥ãŒã«ãå«ãïŒãä¿åããã³å®è¡ããããã®ãªããžããªãšããŠäœ¿çšã§ããRapidMinerãµãŒããŒïŒä»¥åã®ããŒãžã§ã³6ãŸã§ã®RapidAnalyticsïŒããŠãŒã¶ãŒéã®ããŒã¿ãœãŒã¹ãžã®æ¥ç¶ã®ãææ¢ããã WebãµãŒãã¹ãšããŠã®ãã€ããŒããã»ã¹ã
æ®å¿µãªããšã«ãããŒãžã§ã³6ã§ã¯ããã€ããŒã®äœæè ã¯ããã®ãœãããŠã§ã¢ã®è²©å£²ã§åçãåŸãããšã決å®ããã©ã€ã»ã³ã¹ãAGPLããBusiness Sourceã«å€æŽããŸãã ã ããã«ãããããããAGPLã®ããŒãžã§ã³5ããã³ç§ãã¡ã¯èªç±ã«å¶éãªãã§äœ¿çšã§ããŸãã ãããã£ãŠãèšäºã§æ€èšãããŸãã ãŸãã6çªç®ã®ããŒãžã§ã³ã§ã¯ãå€ãã®æ°ããæŒç®åãšé¢æ°ã¯ãªãïŒããããæãèå³æ·±ãã®ã¯ã¯ã©ãŠããµããŒãã§ãïŒãã»ãšãã©ã®ã¿ã¹ã¯ã«ã¯RapidMiner 5ã³ãã¥ããã£ã§ååã§ãã
èšçœ®
å°ãåãŸã§ãRapidMiner 5ãããŠã³ããŒãããããã®ãªã³ã¯ãå ¬åŒãµã€ãããåé€ãããŠãããããgithubã®å ¬åŒãããžã§ã¯ãã§ååŸãããœãŒã¹ã³ãŒãããRMãåéããŸãã
ãªããžããªããRapidMinerãæ§ç¯ããã«ã¯ã次ã®ãã®ãå¿ èŠã§ãã
- ã€ã³ã¹ããŒã«æžã¿ã®Javaããã³JDK
- ã¢ãããã¢ãª
- Gitã¯ã©ã€ã¢ã³ã
ã³ã³ãœãŒã«ã«è¡ãããã€ããŒã眮ããããã£ã¬ã¯ããªã«è¡ãããªããžããªãã¯ããŒã³ããŸããã
git clone https://github.com/rapidminer/rapidminer-5.git
次ã®ã¹ãããã§ã¯ããããžã§ã¯ããåéããŸã
ant build ant release.makePlatformIndependent
ä»ãã€ããŒãå®è¡ããŸã
.\scripts\RapidMinerGUI.bat
ããããLinuxçš
./scripts/RapidMinerGUI.sh
å³ã®åçã®ããã«ããŠã£ã³ããŠãéããŸãã [æ°ããããã»ã¹]ãã¯ãªãã¯ããŠå ã«é²ã¿ãŸãã
åºæ¬çãªæŠå¿µ
ãµã³ãã«ã䜿çšããŠRapidMinerãæäœããåºæ¬ååãèŠãåã«ããã®åºæ¬æŠå¿µãå°ã玹ä»ããŸãã
ããã»ã¹
ããŒã¿åæ/åŠçã«å¿ èŠãªã¿ã¹ã¯ãå®è¡ããããã«ãæå®ã®é åºã§çžäºæ¥ç¶ããããªãã¬ãŒã¿ãŒã®ã»ããã
ãªãã¬ãŒã¿ãŒ
ããã»ã¹ã®è«çãŠãããã ãªãã¬ãŒã¿ãŒã¯ããŒã¿ã«å¯ŸããŠããã€ãã®ã¢ã¯ã·ã§ã³ãå®è¡ããå ¥åºåïŒãããããããŒããïŒãæã¡ãããŒã¿ã¯å ¥åã«éããããªãã¬ãŒã¿ãŒã«ãã£ãŠåŠçãããããŒã¿ã¯åºåã«éãããŸãã ãããã£ãŠãããŒã¿åŠçãã§ãŒã³ãå®è¡ã§ããŸããããšãã°ãããŒã¿ããŒã¹ããã®é¡§å®¢ãã©ã³ã¶ã¯ã·ã§ã³ãæ€èšããæ倧ã®ãã®ãèŠã€ãããã«ã«å€æããŠçµæãåºãããšãã§ããŸãã åæã«ããã§ãŒã³ã䞊ååããããšãã§ããŸã-ããšãã°ãããããŒã¿ããŒã¹ã§ã¯ããŸããŸãªããŒã¿ããŒã¹ãããã©ã³ã¶ã¯ã·ã§ã³ãèªã¿åããå¥ã®ããŒã¿ããŒã¹ã§ã¯é¡§å®¢ããŒã¿ãæ€çŽ¢ããçµåããŠçµæãååŸããŸãïŒããããåæã«äžŠè¡ããŠå®è¡ããããšãå¯èœã§ãïŒïŒ
ããã°ã©ã ã€ã³ã¿ãŒãã§ã€ã¹ã§ã¯ã[æŒç®å]ã¿ãã¯[æŒç®å]ã¿ãã«å¯Ÿå¿ããŸããéå±€ã§ã¯ãæ©èœã¿ãã¯ã°ã«ãŒãåãããŠããŸãã æŒç®åã䜿çšããã«ã¯ãæŒç®åãã¯ãªãã¯ããŠããã»ã¹ã®ã¯ãŒã¯ã¹ããŒã¹ã«è»¢éããå¿ èŠããããŸãã
ãªããžããª
RMããã»ã¹çšã®ã¹ãã¬ãŒãžã¹ããŒã¹ã ããŒã«ã«ã§ããªã¢ãŒãïŒRapidMinerãµãŒããŒïŒã§ãããŸããŸããããµãŒããŒåŽã§ããã»ã¹ãå®è¡ããããããŒã¿ããŒã¹ããã»ã¹/æ¥ç¶ã«ãã«ããŠãŒã¶ãŒã¢ã¯ã»ã¹ããããã¹ã±ãžã¥ãŒã«ã«åŸã£ãŠããã»ã¹ãå®è¡ããããWebãµãŒãã¹ãšããŠããŒã¿ãéä¿¡ãããã§ããŸãã
RMãžã®ãªããžããªã³ã³ããªãã¥ãŒã·ã§ã³ã§ã¯ããµã³ãã«ãDBãããã³ããŒã«ã«ãªããžããªã®ã¿ãããã«è¡šç€ºãããŸãã æåã«ãååããæ¢ã«æãããªããã«ãäžé£ã®ããã»ã¹-äŸãDB-ãã€ããŒã§äœ¿çšå¯èœãªçŸåšã®ããŒã¿ããŒã¹æ¥ç¶ïŒããŒã«->ããŒã¿ããŒã¹æ¥ç¶ã®ç®¡çã§å®çŸ©ïŒããã³ããŒã«ã«ãªããžããªãã³ã³ãã¥ãŒã¿ãŒã«ç¬èªã®ããã»ã¹ãä¿åããå Žæã§ãã
ããã»ã¹ã³ã³ããã¹ã
ã³ã³ããã¹ãã¯ã次ã®3ã€ã®ã»ã¯ã·ã§ã³ã衚瀺ã§ãã[ã³ã³ããã¹ã]ã¿ãã«å¯Ÿå¿ããŠããŸãã
- ããã»ã¹å ¥å - ããã»ã¹ã®å ¥åã«éä¿¡ãããããŒã¿ã ããã§ããªããžããªå ã®ããŒã¿ãžã®ãã¹ãæå®ã§ããŸãã
- ããã»ã¹åºå -ãªããžããªå ã®ãã¹ã瀺ãããããã»ã¹ã®çµæãä¿åãããŸãã
- ãã¯ãã¯ãããã»ã¹å ã®ã©ãããã§ã䜿çšã§ããã°ããŒãã«å€æ°ã§ãã å€ãšããŠæååãŸãã¯æ°åã®ã¿ã䜿çšã§ããŸãã
ããã»ã¹å ¥åãšããã»ã¹åºå㯠ãç¢æinpãšresã䜿çšããŠãããã»ã¹ã®å¢çã«æ²¿ã£ãããã»ã¹å ã®åã§ç€ºãããããšã«æ³šæããŠãã ããã å ¥åããã®ããŒã¿ã䜿çšãŸãã¯ä¿åããã«ã¯ã察å¿ããåãæŒç®åã®å ¥å/åºåã«æ¥ç¶ããå¿ èŠããããŸãã
æè¯ã®ãã¬ãŒãã³ã°ã¯å®è·µã§ãã å°ããªããã»ã¹ãäœæããŠã¿ãŸãããããã®ããã»ã¹ã«åºã¥ããŠãé±å±±åŽåè ãšã®å ±åäœæ¥ã®åºæ¬ååã確èªããŸãã
å°ããªã¿ã¹ã¯
ããªãã¯ããŠã§ããµã€ãã®éçºãå·¥æ¥ãã¶ã€ã³ãªã©ã«é¢ããå°ããªäŒç€Ÿã®ãã£ã¬ã¯ã¿ãŒã§ãã å€ãã®å Žåã泚æãå€ãåŸæ¥å¡ãããªããããããŸããŸãªåœã®ããªãŒã©ã³ãµãŒãéãïŒäžçäžã®ã¯ã©ã€ã¢ã³ããšããŠïŒãå¥çŽè ã®ååãä»äºã®çš®é¡ãæ¯æãæ¥ãæ¯æãéé¡ãæ¯æãé貚ã瀺ãExcelãã¬ãŒãã§è¡ãããäœæ¥ã«é¢ããæ å ±ãå®æçã«å ¥åããŸãã ããæç¹ã§ãç¹å®ã®æ¥ä»ã§äœæ¥ã®çš®é¡ããšã«çºçããã³ã¹ããã«ãŒãã«ïŒCBã¬ãŒãããšïŒã§ååŸãããã£ãïŒããèå³æ·±ãã±ãŒã¹ã¯ãæããšã®å èš³ã§ãããåŸæ¥å¡ã¯ç¬èªã®å®éšãè¡ãå¿ èŠãããïŒã
æåã«è¡ãããšã¯ãExcelãã¡ã€ã«ãCSV圢åŒã§ä¿åããRapidMinerã§èªã¿åãããã«éãããšã§ãã ãããè¡ãã«ã¯ã CSVèªã¿åãæŒç®åïŒã€ã³ããŒã->ããŒã¿-> CSVèªã¿åãïŒã䜿çšããŠãããã»ã¹ã®ã¯ãŒã¯ã¹ããŒã¹ã«ãã©ãã°ããŸãã 次ã«ããããã¯ãªãã¯ããŠãå³åŽã®ãªãã¬ãŒã¿ãŒèšå®ã確èªããŸãã éããŠããããã¢ã€ã³ã³ãã¯ãªãã¯ããŸã ããã€ã¢ãã°ããã¯ã¹ã§å¿ èŠãªãã¡ã€ã«ãéžæããŸãïŒäŸã§äœ¿çšãããŠããCSVã¯ãªã³ã¯ããããŠã³ããŒãã§ããŸãïŒ
æŒããããã¿ã³ã«æ³šæããŠãã ãã -ãšãã¹ããŒãã¢ãŒãã éåžžãã»ãšãã©åžžã«å¿ èŠã§ãããæäœã§ããŒã¯ãããŠããæŒç®åã®è¿œå ãã©ã¡ãŒã¿ãŒãå«ãŸããŠããŸãã
å³åŽã®å³ã®ããã«ãã©ã¡ãŒã¿ãŒãèšå®ãã äžã®ããŒã¿ã»ããã®ã¡ã¿ããŒã¿æ å ±ã®å³åŽã«ããç·šéãªã¹ããã¯ãªãã¯ããŸãã äžã®åçã®ããã«ãã¹ãŠãå ¬éããŸã
ããã§æšæž¬ã§ããããã«ãåã®ååãå ¥åããŸãã解æçµæãåãããã³åœ¹å²ããåãé€å€ãŸãã¯å«ããããã«ãã§ãã¯ããŒã¯ãä»ããããŠããŸãã ãã€ãã³ã°ã§ã¯å±æ§ä»¥å€ã®åœ¹å²ãå¿ èŠã«ãªãå ŽåããããŸãããéåžžã®å Žåãéåžžã¯å¿ èŠãããŸããã
[ é©çš]ãã¯ãªãã¯ããŠã次ã®æé ã«é²ã¿ãŸãã ãã£ã«ã¿ãŒã®äŸæŒç®åïŒããŒã¿å€æ->ãã£ã«ã¿ãªã³ã°ïŒãè¿œå ãããã®å ¥åãRead CSVåºåã«æ¥ç¶ããåºåãåãšç¢æresã§ããã»ã¹åºåã«æ¥ç¶ããŸãã ãã®åçãå±ããŸã
è¿œå ãããæŒç®åã䜿çšããŠãæå®ãããæ¥ä»ã®ã¬ã³ãŒãã®ã¿ãéžæãããããããã»ã¹ãã¯ããšããŠå®£èšããŸãã ããã»ã¹ã®ã ã³ã³ããã¹ããã¿ãã«ç§»åããã ãã¯ããã»ã¯ã·ã§ã³ãèŠã€ããŠã¯ãªãã¯ããŸã ã [ ãã¯ã ]åã«ã¯æ¥ä»ãã[ å€]ã«ã¯ç®çã®æ¥ä»ãèšå ¥ãã2012幎6æ30æ¥ãšããŸãã
ãã®ããããã®ã¹ãããã®ã ã³ã³ããã¹ããã¿ãã¯å³åŽã®ç»åã®ããã«ãªããŸãã ãã¯ãïŒãªã³ãŒã«ãã€ãŸãã°ããŒãã«å€æ°ïŒãå®çŸ©ããããã䜿çšããŠCSVshnichkaããæ¥ä»ã§ã¬ã³ãŒãããã£ã«ã¿ãŒåŠçããŸãã [ ãã£ã«ã¿ãŒã®äŸ]æŒç®åãã¯ãªãã¯ãã æ¡ä»¶ã¯ã©ã¹ attribute_value_filterã§éžæããŠã ãã©ã¡ãŒã¿ãŒæåå date =ïŒ {date}ã«æžã蟌ã¿ãŸã ã å·ŠåŽã«ã¯ãã£ã«ã¿ãªã³ã°ãå®è¡ããåã®ååã瀺ããäžå€®ã«ã¯ç䟡æ§ããã§ãã¯ããæäœã瀺ããå³åŽã«ã¯ãã¯ãããå€ãååŸããŸãã
äœãèµ·ãã£ãã®ãèŠãŠã¿ãŸãããã ããã»ã¹éå§ãã¿ã³ãã¯ãªãã¯ããŸã ãã€ããŒãçµæããŒã¹ãã¯ãã£ãã«åãæ¿ããŸã ïŒãããçºçããªãã£ãå Žåã¯ã ïŒ2012幎7æ30æ¥çŸåšããã£ã«ã¿ãªã³ã°ãããããŒã¿ã衚瀺ãããŸãã
æåã®çµæãåŸãããŸãããããã·ã¢é£éŠäžå€®éè¡ã®ã¬ãŒãã§ã«ãŒãã«ã®ã³ã¹ããèŠããã§ãã ãã¯ãªãã¯ããŠãã¶ã€ã³ããŒã¹ãã¯ãã£ãã«åãæ¿ããŸã ãã¡ã€ã«ãéãæŒç®åãè¿œå ããŸã ïŒãŠãŒãã£ãªãã£->ãã¡ã€ã«->ãã¡ã€ã«ãéãïŒã ãããã¯ãªãã¯ããŠã以äžã®èšå®ãèšå®ããŸã
URLïŒ http ://www.cbr.ru/scripts/XML_daily.asp?date_req =%{ date }
operatorãã©ã¡ãŒã¿ãŒã§ãã¯ãã眮æããããšã«æ³šæããŠãã ããã
ããŒã¿ãååŸããŸãããäœããExampleSetã«å€æããå¿ èŠããããŸã -ã€ãŸã ããŒã¿ä»ãã®ããŒãã«ã æåã®ã±ãŒã¹ã§ã¯ã CSVã®èªã¿åãããã®åœ¹å²ãå®è¡ããŸããããä»ã§ã¯æšæž¬ããã®ãé£ãããªãããã XMLã®èªã¿åã ïŒã€ã³ããŒã->ããŒã¿-> XMLã®èªã¿åãïŒã䜿çšããŸãã æŒç®åãåŒãåºãããã®å ¥åããã¡ã€ã«ãéãæŒç®åã®åºåã«æ¥ç¶ãã次ã®èšå®ãè¡ããŸãïŒxpathã«åé¡ãããå Žåã¯ãã€ã³ããŒãæ§æãŠã£ã¶ãŒããã¯ãªãã¯ããŠã€ã³ããŒããŠã£ã¶ãŒãã䜿çšããŸãïŒã
解æçªå·ã«ãã§ãã¯ããŒã¯ãä»ããŠãããæŽæ°éšåãšå°æ°éšåãåºåãããã«ã³ã³ããèšå®ãããŠããããšã«æ³šæããŠãã ããã
ExampleSetã«å¯ŸããŠRapidMinerãã©ã®å±æ§ã䜿çšãããã決å®ããå¿ èŠããããŸãã å±æ§ã®xpath ã®å³åŽã«ãã[ åæã® ç·šé]ãã¯ãªãã¯ãã 2ã€ã®ãšã³ããªãè¿œå ããŸã
å€[1] /ããã¹ãïŒïŒ -é貚åäœã®ã«ãŒãã«åäœã®å€
CharCode [1] / textïŒïŒ -æåã®é貚ã³ãŒã
次ã«ãå±æ§ã®å€ã¿ã€ããèšå®ããå¿ èŠããããŸãã ãããè¡ãã«ã¯ã ããŒã¿ã»ããã®ã¡ã¿ããŒã¿æ å ±ã®å³åŽã«ããç·šéãªã¹ããã¯ãªãã¯ããäžã®å³ã®ããã«èšå®ããŸã
ãã®æ®µéã§ã¯ã次ã®ãããªããã»ã¹ãå¿ èŠã§ã
é貚ãæ¥ä»ãã£ã«ã¿ãŒããŒã¿ã«å€æãããšããæ¥ãŸããã ãã®ããããæ³åã®ãšãããåŒçšç¬ŠãšããŒã¿ãäœããã®æ¹æ³ã§çµã¿åãããå¿ èŠããããŸãã çµåæŒç®åïŒããŒã¿å€æ->æäœã®èšå®->çµåïŒãããã«åœ¹ç«ã¡ãŸãã 次ã®æäœãè¡ããŸãã ããã»ã¹ã®åºåã«çŸåšæ¥ç¶ãããŠããFilter examplesæŒç®åã®åºåãååŸãã JoinæŒç®åã«æ¥ç¶ããŸããReadXMLæŒç®åã§ãåãããšãè¡ããŸã ã
次ã«ã çµåæŒç®åãã¯ãªãã¯ããŠãããŒã¿ã®ããŒãžæ¹æ³ã決å®ããŸãã ããŒãšããŠuse idå±æ§ã®ãã§ãã¯ãå€ããŸãã é貚ãã£ãŒã«ãã§çµåããŠãããããæ°ããããŒå±æ§ãã©ã¡ãŒã¿ãŒã衚瀺ãããŸããå·ŠåŽã®[ ç·šé ] ãªã¹ããã¯ãªãã¯ãã[ ãšã³ããªã®è¿œå ]ãã€ã¢ãã°ã§äž¡æ¹ã®ãã£ãŒã«ãã«é貚ãå ¥åããŸã-currency ã å€æŽãä¿åããŸãã ãã¿ã³ãã¯ãªãã¯ããããšã§ãäžã§è¡ãããæ¹æ³ãšåæ§ã«ãäœãèµ·ãã£ãããèŠãããšãã§ããŸã ã çµæã¯æ¬¡ã®ããã«ãªããŸã
ç§ãã¡ã¯å€§åãªç®æšã«è¿ã¥ããŠããŸã-ç§ãã¡ãä»äºã«ã©ããããã«ãŒãã«ã§è²»ãããããç¥ãããšã§ãã æåŸã®ã¿ãããå®éã«ã¯å€æãã®ãã®ããããŸããã å±æ§ã®çææŒç®åïŒããŒã¿å€æ->å±æ§ã»ããã®åæžãšå€æ->çæïŒãããã»ã¹ã«è¿œå ãããã®å ¥åãJoinæŒç®åã®åºåã«æ¥ç¶ããŸãããã®æåã®åºåã¯exp ïŒç瞮圢ExampleSet ïŒã§ããã»ã¹ã®åºåã«æžã蟌ãŸããŸãã æŒç®åã®ååããæãããªããã«ã圌ã®ã¿ã¹ã¯ã¯æ°ããå±æ§ãè¿œå ããããšã§ãããã®ããã«ã¯ãæŒç®åãã¯ãªãã¯ãã ç·šéãªã¹ãã®èšå®ã®å³åŽã§ã é¢æ°ã®èª¬æã®å察ã®ãã¿ã³ãã¯ãªãã¯ããŸãã å±æ§ã«ååãä»ããŠããã®èªã¿æ¹ãèŠãŠã¿ãŸãããã
å€æŽãä¿åããŠããã»ã¹ãå®è¡ããŸããçµæ
ãã£ãïŒ ããã¯ãæ¯ææ¥ã«äžå€®éè¡ã®ã¬ãŒãã§çºçããã倧åãªã«ãŒãã«ã®ã³ã¹ãã®æ°å€ã§ãã ããšãã°ãä»äºãã¢ãŒãã£ã¹ãããŸãã¯æ¥ä»ã®çš®é¡ããšã«ã°ã«ãŒãåããŠã1ãæéã®æ å ±ãæç»ãããªã©ããã®ã¿ã¹ã¯ãéåžžã«é ããŸã§éçºã§ããŸãã äžè¬çã«ãæ³åã®ç¯å²ã