ããŒã¿åé
åé¡ã®å£°æããæãããªããã«ãããŒã¿ã®å ¥æå ã®åé¡ãçããŸãããã·ã¢ã«ã¯äžåç£ãèŠã€ããããã®äž»èŠãªãµã€ããããã€ããããWinNERããŒã¿ããŒã¹ããããŸããããªã䟿å©ãªã€ã³ã¿ãŒãã§ã€ã¹ã«ã¯æ倧æ°ã®åºåãå«ãŸããcsv圢åŒã§ã¢ããããŒãã§ããŸãã ãã ãããã®ããŒã¹ã§ä»¥åã«æéããŒã¹ã®ã¢ã¯ã»ã¹ïŒåãæéãæ¥ïŒãèš±å¯ãããŠããå Žåãæå°3ãæã®ã¢ã¯ã»ã¹ã«ãªããéåžžã®è²·ãæãŸãã¯å£²ãæã«ãšã£ãŠã¯å€å°åé·ã«ãªããŸãïŒçå£ã«åãæ¢ãããšããŠãããããã®è²»çšã¯çºçããŸãïŒã ãã®ãªãã·ã§ã³ã䜿çšãããšãéåžžã«ç°¡åã«ãªããŸãããã®ãããä»ã®æ¹æ³ã§ãäžåç£ãµã€ããã解æããŠã¿ãŸãããã ããã€ãã®ãªãã·ã§ã³ãããæã䟿å©ãªæªåé«ãcian.ruãéžæããŸããã åœæãããŒã¿è¡šç€ºã¯åçŽãªè¡šåœ¢åŒã§è¡šç€ºãããŠããŸãããããã¹ãŠã®ããŒã¿ãRã«è§£æããããšãããšå€±æããŸããã äžéšã®ã»ã«ã§ã¯ãããŒã¿ãäžå®å šãªå ŽåããããRé¢æ°ã®æšæºçãªæ段ã§ã¯ãã¢ã³ã«ãŒã¯ãŒããŸãã¯ã·ã³ãã«ããã£ããã§ãããã«ãŒãïŒãã®ãããªã¿ã¹ã¯ã®Rã§ã¯æ£ãããããŸããïŒã䜿çšãããããŸã£ããç¥ããªãæ£èŠè¡šçŸã䜿çšããå¿ èŠããããŸããããããã£ãŠãç§ã¯ä»£æ¿æ段ã䜿çšããå¿ èŠããããŸããã ãã®ä»£æ¿æ段ã¯ãããŒãžïŒãŸãã¯ãµã€ãïŒããæ å ±ãååŸã§ããç¬èªã®REST APIãæã¡ãJSONã®çµæãè¿ãåªãããµãŒãã¹import.ioã§ããããšãå€æããŸããã ãŸããRã¯APIãžã®ãªã¯ãšã¹ããå®è£ ããJSONã解æã§ããŸãã
ãã®ãµãŒãã¹ãããã«ãã¹ã¿ãŒããã®ã§ã1ã€ã®ããŒãžãããã¹ãŠã®å¿ èŠãªæ å ±ïŒåã¢ããŒãã¡ã³ãã®ãã¹ãŠã®ãã©ã¡ãŒã¿ãŒïŒãæœåºããæœåºããã°ã©ã ãäœæããŸããã ãããŠãRã¯ãã§ã«ãã¹ãŠã®ããŒãžãå埩åŠçããããããã«å¯ŸããŠãã®APIãåŒã³åºããåä¿¡ããJSONããŒã¿ãåäžã®ããŒãã«ã«æ¥çããŸãã import.ioã䜿çšãããšããã¹ãŠã®ããŒãžãåŠçããå®å šã«èªåŸçãªAPIãäœæã§ããŸããããµãŒãããŒãã£ã®APIãæ£ããé 眮ïŒ1ããŒãžã解æïŒããæ®ããRã§åŒãç¶ãå®è¡ã§ããªããšå€æããŸãããå°æ¥ã®ã¢ãã«ã®å¶éã«ã€ããŠãããŒã¿ãœãŒã¹ãéžæãããŸãã
- ã¢ã¹ã¯ã¯åž
- ã¢ãã«å ã®ã¢ããŒãã®1ã€ã®ã¿ã€ãïŒã€ãŸããodnushkiãŸãã¯dvushkaãŸãã¯treshkaïŒ
- åãå°äžéé§ å ïŒãžãªã³ãŒãã£ã³ã°ã䜿çšãããŠãããããæå¯ãã®å°äžéé§ ãŸã§ã®è·é¢ïŒ
- å販ïŒæ°ãã建ç©ã¯ãã¹ãŠæ ¹æ¬çã«ç°ãªããäºãã«è³ªçã«ç°ãªããããããã¯åºåã§ã¯èšãããŠããªãããã³ã¡ã³ãã«äœããæžãããŠããŸãããã©ã¡ããé©åãªã¢ãã«ãäœæããããšã¯ã§ããŸããïŒ
ããŒã¿ã®æŠèŠ
ããããããšã§ãããããŒã¿ã«ã¯ãæåºéãã®ã£ãããããã³æ°ãã建ç©ãäºæ¬¡è²¡ç£ãšããŠå£²åŽãããããåå°ã売åŽããããããšãã®ãããå«ãŸããŠããã ãã§ãã
ãããã£ãŠãæåã¯ãã¹ãŠã®ããŒã¿ãããã¡ããšãããå€èŠ³ã«ããå¿ èŠããããŸãã
ããŒããã§ãã¯
ããã§ã¯äž»ã«çºè¡šã®èª¬æã«éç¹ã眮ããŠãããæããã«å¿ èŠãªãµã³ãã«ã«é¢é£ããªãåèªãããå Žåããããã®èŠ³å¯ã¯é€å€ãããR grepé¢æ°ã«ãã£ãŠãã§ãã¯ãããŸãã ãŸããèšç®ã¯Rã®ãã¯ãã«ã§ããããããã®é¢æ°ã¯æ£ãã芳枬å€ã®ãã¯ãã«ãããã«è¿ãããããé©çšããŠããµã³ãã«ããã£ã«ã¿ãŒåŠçããŸãã
æ¬ æå€ã確èªãã
æ¬ èœããå€ã¯éåžžã«ãŸãã§ãïŒãããŠäž»ã«ãçŸæç¹ãã§æ¢ã«é€å€ãããŠããæ°ãã建ç©ãšåå°ãå«ããå·Šãåºåã§ã¯ïŒãæ®ã£ãŠããå€ã§ã¯ãäœããããå¿ èŠããããŸãã äžè¬ã«ããã®ãããªèŠ³æž¬ãé€å€ãããããããã®æ¬ æå€ã眮ãæããã«ã¯ã2ã€ã®ãªãã·ã§ã³ããããŸãã 芳枬ãç ç²ã«ãããã¯ãããŸããã§ããããããŒã¿ã¯ãäœãå ¥åããã®ãããšããååã«åºã¥ããŠå ¥åãããŠããªããšä»®å®ããŠãå®æ§å€æ°ããã®å€ã®ã¢ãŒãã«çœ®ãæããå®éçïŒããããŒãžïŒãäžå€®å€ã ãã¡ãããããã¯å®å šã«æ£ããããã§ã¯ãªãã芳枬éã®çžé¢ãå®è¡ããåŸãããçµæã«å¿ããŠã®ã£ãããåããããšã¯å®å šã«æ£ããã§ããããããã®ã¿ã¹ã¯ã§ã¯ããã®åé·æ§ãèæ ®ããããã«ããã®ãããªèŠ³æž¬ã¯ã»ãšãã©ãããŸããã
æåºãã§ãã¯
æŸåºã¯ããã«äžè¬çã§ã¯ãªããéçãããªãã¡äŸ¡æ Œãšæ åã®èŠ³ç¹ããã®ã¿å¯èœã§ãã ããã§ã¯ãè²·ãæïŒIïŒãèªåã®ã¢ããŒãã®äŸ¡æ Œãšããããã®æ åãå ·äœçã«ç¥ã£ãŠãããšããåæããé²ãã ãããäžéãšäžéã®äŸ¡æ Œã®åæå€ãèšå®ããæ åãå¶éããŠãèªåçã«æåºãåãé€ããŸãã ãã ããããã§ãªãå Žåã§ãïŒå¶éãè¡ããªãã§ãã ããïŒãçµæãååŸããããæ£åžå³ãèŠãŠç°åžžå€ãããããšã確èªãããšãæŽæ°ãããããŒã¿ã䜿çšããŠã¯ãšãªãå®è¡ãããããã®èŠ³æž¬ãåé€ããããšã§ã¢ãã«ãæ¹åã§ããŸãã
ã¬ãŠã¹ã»ãã«ã³ãã®å®çã®äž»èŠãªåæ
詳现
ãããã£ãŠã誀ã£ã芳枬å€ãåé€ããåæãå®è¡ããåã«ãã¬ãŠã¹ãã«ã³ãã®å®çã®äž»èŠãªåæã§ããããè©äŸ¡ããŸãã
ä»åŸã¯ãã¢ãã«ããã®ä¿æ°ã®è§£éãä¿¡é Œåºéã®æ£ç¢ºãªæšå®ãå¿ èŠã§ã¯ãªãããçè«äžã®ãäŸ¡æ Œãäºæž¬ããå¿ èŠããããããäžéšã®åæã¯éèŠã§ã¯ãããŸããã
ããŒã¿ã¯äžè¬ã«ä»®å®ãšäžèŽããŠãããããã¢ãã«ãæ§ç¯ã§ããŸãã
ä»åŸã¯ãã¢ãã«ããã®ä¿æ°ã®è§£éãä¿¡é Œåºéã®æ£ç¢ºãªæšå®ãå¿ èŠã§ã¯ãªãããçè«äžã®ãäŸ¡æ Œãäºæž¬ããå¿ èŠããããããäžéšã®åæã¯éèŠã§ã¯ãããŸããã
- ããŒã¿ã¢ãã«ãæ£ããæå®ãããŠããã äžè¬ã«ãã¯ããå€ãå€ã誀ã£ãåç¥ãæ¬ æå€ã®çœ®æãæé€ããããšã«ãããã¢ãã«ã¯éåžžã«é©åã§ãã ããã€ãã®éå³å¯ãªå€éå ±ç·æ§ãååšããå¯èœæ§ããããŸãïŒããšãã°ã5é建ãŠã®å»ºç©ã§ããšã¬ããŒã¿ãŒããšãªã¢ããããŸãã-å ±é/äœå® ïŒãäžã§æžããããã«ãããã¯äºæž¬ã«ãšã£ãŠéèŠã§ã¯ãªããããã«ãåºæ¬çãªåæã«ãéåããŸããã ãã¹ãã¢ãã«ãæ§ç¯ããããã«ããã¹ãŠã®å€ãæ£ãããããŒå€æ°ã«å€æãããå³å¯ãªå€éå ±ç·æ§ã¯é€å€ãããŸããã
- ãã¹ãŠã®ååž°å€æ°ã¯æ±ºå®è«çã§ãããçãããããŸããã ã¯ããããã§ãã
- ãšã©ãŒã¯äœç³»çã§ã¯ãããŸããã æå°äºä¹æ³ã§ã¯èª€å·®ãåçåããèªç±é ã䜿çšããããããããã¯äºå®ã§ãã
- ãšã©ãŒã®åæ£ã¯åãã§ãïŒåçžåæ£æ§ïŒã ååž°å€æ°ãšåŸå±å€æ°ã®ãµã€ãºã®å¶éã䜿çšãããããïŒã¹ã±ãŒã«ã¯åçïŒãäžåäžåæ£æ§ã¯æå°éã§ãããäºæž¬ã«ãšã£ãŠãéèŠã§ã¯ãããŸããïŒæšæºèª€å·®ã¯åãå ¥ããããŸãããããããã¯ç§ãã¡ã«ãšã£ãŠèå³æ·±ããã®ã§ã¯ãããŸããïŒ
- ãšã©ãŒã¯ç¡çžé¢ã§ãïŒå å æ§ïŒã ããããå çæ§ãååšããå¯èœæ§ãæãé«ãïŒããšãã°ãã¢ããŒãã¯1ã€ã®ãµã€ããŸãã¯å ¥ãå£ããã®ãé£äººãïŒãå€éšã®äžæãªèŠå ããããŸãããäºæž¬ã®ããã«ãå çæ§ã®èšé²ã¯éèŠã§ã¯ãããŸãããããã«ãç§ãã¡ã¯ç¥ããŸãããã®åå äžæã®èŠå ã
ããŒã¿ã¯äžè¬ã«ä»®å®ãšäžèŽããŠãããããã¢ãã«ãæ§ç¯ã§ããŸãã
ãªã°ã¬ããµãŒã»ãã
å€æ°ïŒãµã€ãããçŽæ¥ååŸïŒã«å ããŠãè¿œå ã®ãªã°ã¬ããµãŒãã€ãŸã5é建ãŠã®ãã«ãã©ããïŒããã¯éåžžéåžžã«è³ªçãªéãã§ããããïŒãããã³æå¯ãã®ã¡ãããŸã§ã®è·é¢ïŒåæ§ã«ïŒãè¿œå ããããšã«ããŸããã è·é¢ã決å®ããããã«ãGoogleãžãªã³ãŒãã£ã³ã°ãµãŒãã¹APIã䜿çšãããŸãïŒæãæ£ç¢ºã§å¶éã«å¿ å®ã§ãRã«æ¢è£œã®é¢æ°ããããŸãïŒãã¢ããŒããšã¡ããã®äœæãæåã«ãžãªã³ãŒãã£ã³ã°ããã ggmapããã±ãŒãžã®ãžãªã³ãŒãé¢æ°ã䜿çšãããŸãã ãããŠãè·é¢ã¯ãhaversineã®åŒã«ãã£ãŠæ±ºå®ããã geosphereããã±ãŒãžã®distHaversineé¢æ°ã«ãã£ãŠæºåãããŸãã
ãªã°ã¬ããµãŒã®ç·æ°ã¯14åã§ããã
- ã¡ãããŸã§ã®è·é¢
- ç·é¢ç©
- ãªãã³ã°ãšãªã¢
- ãããã³ãšãªã¢
- ããŠã¹ã¿ã€ã
- ãšã¬ããŒã¿ãŒã®å¯çšæ§ãšçš®é¡
- å¯çšæ§ãšãã«ã³ããŒã®çš®é¡
- ãã¹ã«ãŒã ã®æ°ãšçš®é¡
- çªã¯ã©ãã«è¡ããŸããïŒ
- é»è©±ã®å¯çšæ§
- 販売ã®çš®é¡
- 1é
- æäžé
- 5é建ãŠã®å»ºç©
ãã¹ãæžã¿ã®äºæž¬åæã¢ãã«
詳现
å®çšçãªå人ç䟡å€ã«å ããŠãããŸããŸãªã¢ãã«ããã¹ãããããšãèå³æ·±ãã£ãã®ã§ãæé©ãªã¢ãã«ãéžæããç§ãç¥ã£ãŠãããã¹ãŠã®åçŽãªååž°ã¢ãã«ã®ããŸããŸãªãµã³ãã«ããã§ãã¯ããããšã«ããŸãããã€ãŸãã次ã®ã¢ãã«ããã¹ãããŸããã
1.ãã¹ãŠã®ãªã°ã¬ããµã®MNC
2. OLS察æ°ïŒç°ãªããªãã·ã§ã³ïŒäŸ¡æ Œã®å¯Ÿæ°ããã³/ãŸãã¯é¢ç©ããã³/ãŸãã¯å°äžéãŸã§ã®è·é¢ïŒ
3.ãªã°ã¬ããµãŒã®å å«ããã³é€å€ã䌎ãMNC
aïŒååž°å€æ°ã®æ®µéçãªé€å€
bïŒçŽæ¥æ€çŽ¢ã¢ã«ãŽãªãºã
4.眰éã®ããã¢ãã«ïŒäžåäžåæ£ã®åœ±é¿ã軜æžããããïŒ
aïŒãªããªãååž°ïŒåå¥ãã©ã¡ãŒã¿ãŒã決å®ããããã®2ã€ã®æ¹æ³-Cp-criterion Mallowãšäº€å·®æ€èšŒã®æå°åïŒ
bïŒãªããžååž°ïŒããã«ãã£ãã©ã¡ãŒã¿ãŒãèŠã€ãã3ã€ã®æ¹æ³-HKBãLWãããã³äº€å·®æ€èšŒïŒ
5.äž»æåã®æ¹æ³
aïŒãã¹ãŠã®ãªã°ã¬ããµãš
bïŒååž°å€æ°ã段éçã«é€å€ãã
6.åäœç¹ïŒäžå€®å€ïŒååž°ïŒäžåäžåæ£ã®åœ±é¿ãæžããããïŒ
7.ã©ã³ãã ãã©ã¬ã¹ãã¢ã«ãŽãªãºã
ãã¹ãããã¢ãã«ã®ç·æ°ã¯18åã§ããã
ã¢ãã«ãæºåããéçšã§ã次ã®ææãéšåçã«äœ¿çšãããŸããã
Mastitsky S.E.ãShitikov V.K. ïŒ2014ïŒRã䜿çšããçµ±èšåæãšããŒã¿èŠèŠå
-é»åæžç±ã®ã¢ã¯ã»ã¹ã¢ãã¬ã¹ïŒ r-analytics.blogspot.com
1.ãã¹ãŠã®ãªã°ã¬ããµã®MNC
2. OLS察æ°ïŒç°ãªããªãã·ã§ã³ïŒäŸ¡æ Œã®å¯Ÿæ°ããã³/ãŸãã¯é¢ç©ããã³/ãŸãã¯å°äžéãŸã§ã®è·é¢ïŒ
3.ãªã°ã¬ããµãŒã®å å«ããã³é€å€ã䌎ãMNC
aïŒååž°å€æ°ã®æ®µéçãªé€å€
bïŒçŽæ¥æ€çŽ¢ã¢ã«ãŽãªãºã
4.眰éã®ããã¢ãã«ïŒäžåäžåæ£ã®åœ±é¿ã軜æžããããïŒ
aïŒãªããªãååž°ïŒåå¥ãã©ã¡ãŒã¿ãŒã決å®ããããã®2ã€ã®æ¹æ³-Cp-criterion Mallowãšäº€å·®æ€èšŒã®æå°åïŒ
bïŒãªããžååž°ïŒããã«ãã£ãã©ã¡ãŒã¿ãŒãèŠã€ãã3ã€ã®æ¹æ³-HKBãLWãããã³äº€å·®æ€èšŒïŒ
5.äž»æåã®æ¹æ³
aïŒãã¹ãŠã®ãªã°ã¬ããµãš
bïŒååž°å€æ°ã段éçã«é€å€ãã
6.åäœç¹ïŒäžå€®å€ïŒååž°ïŒäžåäžåæ£ã®åœ±é¿ãæžããããïŒ
7.ã©ã³ãã ãã©ã¬ã¹ãã¢ã«ãŽãªãºã
ãã¹ãããã¢ãã«ã®ç·æ°ã¯18åã§ããã
ã¢ãã«ãæºåããéçšã§ã次ã®ææãéšåçã«äœ¿çšãããŸããã
Mastitsky S.E.ãShitikov V.K. ïŒ2014ïŒRã䜿çšããçµ±èšåæãšããŒã¿èŠèŠå
-é»åæžç±ã®ã¢ã¯ã»ã¹ã¢ãã¬ã¹ïŒ r-analytics.blogspot.com
ã¢ãã«æ§èœåºæº
詳现
ãã¹ãŠã®ã¢ãã«ã¯æ¬è³ªçã«æ ¹æ¬çã«ç°ãªã£ãŠãããå€ãã®ã¢ãã«ã§ã¯å°€åºŠé¢æ°ã¯ãããŸããããããã£ãŠãå
éšå質åºæºã決å®ããããšã¯äžå¯èœã§ãããã¢ãã«ã®åŠ¥åœæ§ãäž»ã«è©äŸ¡ããã®ã«åœ¹ç«ã€ããããããã«äŸåããŠå¹æçãªã¢ãã«ãéžæããããšã¯å®å
šã«æ£ããããã§ã¯ãããŸããã ãããã£ãŠãçµéšå€ãšäºæž¬å€ã®å¹³åå·®ã«åºã¥ããŠã¢ãã«ã®å質ãè©äŸ¡ããããšã«çŠç¹ãåœãŠãŸãã ãããŠããããããèå³æ·±ããã®ã«ããå©çïŒè²»çšå¯Ÿå¹æïŒã決å®ããããã«ãäºä¹å¹³åå¹³æ¹æ ¹èª€å·®ïŒããã€ãã®èŠ³æž¬ã¯ãããæªããå¯èœæ§ãããïŒã¯å¿
ãããææšã§ã¯ãããŸãããç§ã¯éåžžã®RMSE-æšæºèª€å·®ã ãã§ãªããMAE-å¹³åäºä¹èª€å·®ãåºæºãè©äŸ¡ããããã«äœ¿çšããŸããããã³MPEãå¹³åããŒã»ã³ã誀差ã
ã¢ãã«ãã¹ãçµæ
詳现
ã¢ãã«ã¯ããŸããŸãªé¢æ°ã«ãã£ãŠè©äŸ¡ãããäºæž¬å€ã®æ§æãç°ãªããããäžéšã®ãªã°ã¬ããµãéä¹ã§ãããšããåçŽãªæ瀺ã¯ãã¹ãŠã®ã¢ãã«ã«é©ããŠããªãããããã¹ãŠã®è³ªçå€æ°ããããŒå€æ°ã«å€æããããã®åœ¢åŒã®è¿œå ã®ããŒã¿ãã¬ãŒã ãäœæãããŸããã¢ãã«ãæ§ç¯ãããŸããã ããã«ããããã¹ãŠã®ã¢ãã«ãåäžã«è©äŸ¡ããæ°ããäŸ¡æ Œãäºæž¬ãããšã©ãŒãç¹å®ã§ããŸãã
ããŸããŸãªã©ã³ãã ãã¹ããµã³ãã«ïŒç°ãªãå°äžéé§ ãç°ãªãã¿ã€ãã®ã¢ããŒãããã®ä»ã®ãã©ã¡ãŒã¿ãŒïŒã§ãäžèšã®ãã¹ãŠã®ã¢ãã«ã3ã€ã®ããã©ãŒãã³ã¹åºæºã§è©äŸ¡ããŸããã ãããŠã3ã€ã®åºæºãã¹ãŠã§ã»ãŒçµ¶å¯ŸçãªïŒ92ïŒ ïŒåè ã¯ãã©ã³ãã ãã©ã¬ã¹ãã¢ã«ãŽãªãºã ã§ããã ãŸããããŸããŸãªãµã³ãã«ã§ãããã€ãã®åºæºãäžå€®å€ååž°ãäŸ¡æ Œã®å¯Ÿæ°ãå«ãMNCãå®å šãªMNCãããã³å Žåã«ãã£ãŠã¯Lassoãå«ãRidgeãè¯å¥œãªçµæã瀺ããŸããã ããã«ãã£ã®ããã¢ãã«ã¯å®å šãªMNCãããåªããŠãããšèãããããããçµæã¯ããé©ãã¹ããã®ã§ããããåžžã«ããã§ãããšã¯éããŸããã§ããã ãããã£ãŠãåçŽãªã¢ãã«ïŒOLSïŒã¯ãããè€éãªã¢ãã«ãããåªãã代æ¿æ段ã«ãªãå¯èœæ§ããããŸãã ç°ãªããµã³ãã«ã§ã¯ãââç°ãªãåºæºã«åŸã£ãŠã2çªç®ã®å Žæããå§ãŸãå Žæã¯ç°ãªãã¢ãã«ã§å ããããŠãããåè ã¯ã©ã³ãã ãã©ã¬ã¹ãã§ãããšããäºå®ã®ãããç§ã¯ããããããªãäœæ¥ã«äœ¿çšããããšã«ããŸããã
1ã€ã®ã¢ãã«ãæ¢ã«äœ¿çšãããŠããããããããŒå€æ°ãæ瀺çã«æå®ããå¿ èŠã¯ãããŸããããããã£ãŠãå ã®ãã¬ãŒã ã«æ»ããé«å質å€æ°ãå åå€æ°ã§ããããšã瀺ããŸããããã«ããããã€ã¢ã°ã©ã äžã®åŸç¶ã®è§£éãç°¡ç¥åãããã¢ã«ãŽãªãºã ã¯ç°¡åã«ãªããŸãïŒæ¬è³ªçã«ã¯éèŠã§ã¯ãããŸãããïŒ ïŒ ãã¹ãã¢ããªã³ã°ã§ã¯ãïŒåãååã®ããã±ãŒãžã®ïŒ randomForesté¢æ°ãããã©ã«ãå€ã§äœ¿çšãã nodesize ã maxnodes ã nPerm treesã®äž»èŠãªè€é床ãã©ã¡ãŒã¿ãŒãå€æŽããããšããŠãç°ãªããµã³ãã«ã®äºæž¬ãšã©ãŒã®æå°åãããŒããµã€ãºãã©ã¡ãŒã¿ãŒïŒæå°ããŒãæ°ïŒ 1.ãããã£ãŠãã¢ãã«ãéžæãããŸãã
ããŸããŸãªã©ã³ãã ãã¹ããµã³ãã«ïŒç°ãªãå°äžéé§ ãç°ãªãã¿ã€ãã®ã¢ããŒãããã®ä»ã®ãã©ã¡ãŒã¿ãŒïŒã§ãäžèšã®ãã¹ãŠã®ã¢ãã«ã3ã€ã®ããã©ãŒãã³ã¹åºæºã§è©äŸ¡ããŸããã ãããŠã3ã€ã®åºæºãã¹ãŠã§ã»ãŒçµ¶å¯ŸçãªïŒ92ïŒ ïŒåè ã¯ãã©ã³ãã ãã©ã¬ã¹ãã¢ã«ãŽãªãºã ã§ããã ãŸããããŸããŸãªãµã³ãã«ã§ãããã€ãã®åºæºãäžå€®å€ååž°ãäŸ¡æ Œã®å¯Ÿæ°ãå«ãMNCãå®å šãªMNCãããã³å Žåã«ãã£ãŠã¯Lassoãå«ãRidgeãè¯å¥œãªçµæã瀺ããŸããã ããã«ãã£ã®ããã¢ãã«ã¯å®å šãªMNCãããåªããŠãããšèãããããããçµæã¯ããé©ãã¹ããã®ã§ããããåžžã«ããã§ãããšã¯éããŸããã§ããã ãããã£ãŠãåçŽãªã¢ãã«ïŒOLSïŒã¯ãããè€éãªã¢ãã«ãããåªãã代æ¿æ段ã«ãªãå¯èœæ§ããããŸãã ç°ãªããµã³ãã«ã§ã¯ãââç°ãªãåºæºã«åŸã£ãŠã2çªç®ã®å Žæããå§ãŸãå Žæã¯ç°ãªãã¢ãã«ã§å ããããŠãããåè ã¯ã©ã³ãã ãã©ã¬ã¹ãã§ãããšããäºå®ã®ãããç§ã¯ããããããªãäœæ¥ã«äœ¿çšããããšã«ããŸããã
1ã€ã®ã¢ãã«ãæ¢ã«äœ¿çšãããŠããããããããŒå€æ°ãæ瀺çã«æå®ããå¿ èŠã¯ãããŸããããããã£ãŠãå ã®ãã¬ãŒã ã«æ»ããé«å質å€æ°ãå åå€æ°ã§ããããšã瀺ããŸããããã«ããããã€ã¢ã°ã©ã äžã®åŸç¶ã®è§£éãç°¡ç¥åãããã¢ã«ãŽãªãºã ã¯ç°¡åã«ãªããŸãïŒæ¬è³ªçã«ã¯éèŠã§ã¯ãããŸãããïŒ ïŒ ãã¹ãã¢ããªã³ã°ã§ã¯ãïŒåãååã®ããã±ãŒãžã®ïŒ randomForesté¢æ°ãããã©ã«ãå€ã§äœ¿çšãã nodesize ã maxnodes ã nPerm treesã®äž»èŠãªè€é床ãã©ã¡ãŒã¿ãŒãå€æŽããããšããŠãç°ãªããµã³ãã«ã®äºæž¬ãšã©ãŒã®æå°åãããŒããµã€ãºãã©ã¡ãŒã¿ãŒïŒæå°ããŒãæ°ïŒ 1.ãããã£ãŠãã¢ãã«ãéžæãããŸãã
å°å³è¡šç€º
åè ã決å®ãããŸãïŒã©ã³ãã ãã©ã¬ã¹ãïŒããã®ã¢ãã«ã¯ããã¹ãŠã®èŠ³æž¬å€ã®ãçè«äžã®ãäŸ¡æ Œãæå°ã®èª€å·®ã§äºæž¬ããŸãã ããã§ã絶察çãçžå¯Ÿçãªéå°è©äŸ¡ãèšç®ãããœãŒããããããŒãã«ã®åœ¢åŒã§çµæã衚瀺ã§ããŸããã衚圢åŒãã¥ãŒã«å ããŠãããã«æ å ±ãåŸããã®ã§ãæè¯ã®çµæã®äžéšãããã«ãããã«è¡šç€ºããŸãã ãã®ãããRã«ã¯Googleãããã³ã°ã·ã¹ãã ãšã®çµ±åçšã«èšèšãããgoogleVisããã±ãŒãžããããŸãïŒãã ãããªãŒãã¬ããçšã®ããã±ãŒãžããããŸãïŒã ãžãªã³ãŒãã£ã³ã°ããåãåã£ã座æšãä»ã®å°å³ã«è¡šç€ºããããšã¯çŠæ¢ãããŠãããããGoogleãåŒãç¶ã䜿çšããŸããã ãããäžã®è¡šç€ºã¯ã googleVisããã±ãŒãžã®1ã€ã®gvisMapé¢æ°ã«ãã£ãŠå®è¡ãããŸãã
å°å³è¡šç€ºã³ãŒã
output $ view <-renderGvisïŒ{#view-htmlOutputåºåèŠçŽ
ifïŒïŒerrïŒïŒïŒ= ""ïŒïŒreturnïŒNULLïŒ
formap3 <-formapïŒïŒ
formap3 $ desc <-paste0ïŒrow.namesïŒformap3ïŒã
ããããããã
formap3 $çªå·ã
ããã
formap3 $ã¢ãã¬ã¹ã
ãéå°è©äŸ¡ãã
圢åŒïŒ-formap3 $ abs.discountãbig.mark = ""ïŒã
ãã«ãŒãã«ïŒãã
as.integerïŒformap3 $ otn.discountïŒã
ãïŒ ïŒãïŒ
gvisMapïŒformap3ããcoordãããdescããoptions = listïŒ
mapType = 'normal'ã
enableScrollWheel = TRUEã
showTip = TRUEïŒïŒ
}ïŒ
ifïŒïŒerrïŒïŒïŒ= ""ïŒïŒreturnïŒNULLïŒ
formap3 <-formapïŒïŒ
formap3 $ desc <-paste0ïŒrow.namesïŒformap3ïŒã
ããããããã
formap3 $çªå·ã
ããã
formap3 $ã¢ãã¬ã¹ã
ãéå°è©äŸ¡ãã
圢åŒïŒ-formap3 $ abs.discountãbig.mark = ""ïŒã
ãã«ãŒãã«ïŒãã
as.integerïŒformap3 $ otn.discountïŒã
ãïŒ ïŒãïŒ
gvisMapïŒformap3ããcoordãããdescããoptions = listïŒ
mapType = 'normal'ã
enableScrollWheel = TRUEã
showTip = TRUEïŒïŒ
}ïŒ
Web GUI
å¿ èŠãªãã¹ãŠã®ãã©ã¡ãŒã¿ãŒãã³ã³ãœãŒã«ã«æž¡ãã®ã¯æéãããããäžäŸ¿ãªã®ã§ããã¹ãŠãèªåçã«å®è¡ãããã£ãã®ã§ãã ãããŠäŒçµ±çã«ããã®ããã«ãååãªI / Oã³ã³ãããŒã«ãæã€shinyãšshinydashboardãã¬ãŒã ã¯ãŒã¯ã§Rãåã³äœ¿çšã§ããŸãã
ã€ã³ã¿ãŒãã§ãŒã¹ã®ã¯ã©ã€ã¢ã³ãéšåã®å®å
šãªã³ãŒã
dashboardPageïŒ
dashboardHeaderïŒã¿ã€ãã«=ããã€ãã³ã°ããããã£v0.9ãïŒã
dashboardSidebarïŒ
sidebarMenuïŒ
menuItemïŒ "ãœãŒã¹ããŒã¿"ãtabName = "ãœãŒã¹"ïŒã
menuItemïŒ "Summary"ãtabName = "Summary"ïŒã
menuItemïŒãçããŒã¿ããtabName =ãçãïŒã
menuItemïŒãæŽé ããŒã¿ããtabName =ãæŽé ãïŒã
menuItemïŒ "äºæž¬ããŒã¿"ãtabName = "äºæž¬"ïŒã
menuItemïŒ "Plots"ãtabName = "Plots"ïŒã
menuItemïŒ "çµæããã"ãtabName = "ããã"ïŒ
ïŒ
ïŒã
dashboardBodyïŒ
tags $ headïŒtags $ styleïŒHTMLïŒ 'ãbox {overflowïŒauto;}'ïŒïŒïŒã
tabItemsïŒ
tabItemïŒ "ãœãŒã¹"ã
ããã¯ã¹ïŒå¹ = 12ã
fluidRowïŒ
åïŒå¹ = 4
selectInputïŒ "Metro"ã "Metro"ã ""ãwidth = '60ïŒ 'ïŒã
ïŒbrïŒïŒã
hrïŒïŒã
#checkboxInputïŒ "Kind.home0"ã "all"ãTRUEïŒã
checkboxGroupInputïŒ "Kind.home"ã "House Type"ãcïŒ
ãããã«ã= 1ã
ãã¹ã¿ãŒãªã³ã= 7
ãã·ãŒã«ãã= 8
ãã¬ã³ã¬ã= 2
ãã¢ããªã·ãã¯ã= 3
ãããªãã¯ã¢ããªã·ãã¯ã= 4
ããããã¯ã= 5
ãããªãŒã= 6ïŒãéžææžã¿= cïŒ1,2,3,4,5,6,7,8ïŒïŒã
hrïŒïŒã
SliderInputïŒãEtagãããFloorããmin = 0ãmax = 100ãvalue = cïŒ0ã100ïŒãstep = 1ïŒã
checkboxInputïŒãEtagPãããæåŸã§ã¯ãªããïŒã
SliderInputïŒ "Etagn"ã "In the house of floors"ãmin = 0ãmax = 100ãvalue = cïŒ0ã100ïŒãstep = 1ïŒ
ã
submitButtonïŒãåæããã¢ã€ã³ã³ïŒãæŽæ°ãïŒïŒ
ïŒã
åïŒå¹ = 4
selectInputïŒ "Rooms"ã "Rooms"ãc
ïŒ ""ã
"1" = "ïŒroom1 = 1"ã
"2" = "ïŒroom2 = 1"ã
"3" = "ïŒroom3 = 1"ïŒãå¹ = '45ïŒ 'ïŒã
ïŒbrïŒïŒã
hrïŒïŒã
ïŒbrïŒïŒã
selectInputïŒ "Balcon"ã "Balcony"ã
cïŒ "ãã«ã³ããŒãªãã§ãå¯" = "0"ã
ããã«ã³ããŒã®ã¿ã=ãïŒminbalkon = 1ãã
ããã«ã³ããŒãªãã®ã¿ã=ãïŒminbalkon = -1ãïŒã
å¹ = '45ïŒ 'ïŒã
brïŒïŒã
hrïŒïŒã
brïŒïŒã
#brïŒïŒã
SliderInputïŒããããã³Mããããããã³ãšãªã¢ããæå°= 0ãæ倧= 25ãå€= cïŒ0ã25ïŒãã¹ããã= 1ïŒã
sliderInputïŒ "GilM"ã "Living Area"ãæå°= 0ãæ倧= 100ãå€= cïŒ0ã100ïŒãã¹ããã= 1ïŒã
SliderInputïŒãTotalMãããTotal Areaããæå°= 0ãæ倧= 150ãå€= cïŒ0ã150ïŒãã¹ããã= 1ïŒ
ïŒã
åïŒå¹ = 4
SliderInputïŒ "Price"ã "Price"ãmin = 0ãmax = 50000000ãvalue = cïŒ0ã50000000ïŒãstep = 100000ãsep = ""ïŒã
ïŒhrïŒïŒã
selectInputïŒãååŒãããååŒã¿ã€ããã
cïŒ "any" = "0"ã
ãç¡æã=ãïŒsost_type = 1ãã
ã代æ¿ã=ãïŒsost_type = 2ãïŒã
å¹ = '45ïŒ 'ïŒã
brïŒïŒã
hrïŒïŒã
#brïŒïŒã
ïŒbrïŒïŒã
ïŒbrïŒïŒã
radioButtonsïŒ "wc"ã "Bathroom"ã
cïŒãéèŠã§ã¯ãªãã=ããã
ãåé¢ã=ãïŒminsu_r = 1ãã
ãçµåã=ãïŒminsu_s = 1ãïŒïŒã
hrïŒïŒã
selectInputïŒãLiftãããLiftsïŒæå°ïŒãã
cïŒ "0" = 0ã
"1" = "ïŒminlift = 1"ã
"2" = "ïŒminlift = 2"ã
"3" = "ïŒminlift = 3"ã
"4" = "ïŒminlift = 4"
ïŒã
å¹ = '45ïŒ 'ïŒã
hrïŒïŒã
selectInputïŒãobsãããå°å³äžã«ã¢ããŒãã¡ã³ãã衚瀺ïŒããcïŒ1:10ïŒãéžæ= 5ãå¹ = 250ïŒã
textOutputïŒ "ãã©ãã"ïŒ
ïŒ
ïŒã
fluidRowïŒhtmlOutputïŒ "hyperf1"ïŒïŒã
fluidRowïŒtextOutputïŒ "testOutput"ïŒïŒ
ïŒ
ïŒã
tabItemïŒ "Raw"ãboxïŒdataTableOutputïŒ "Raw"ïŒãwidth = 12ãheight = 600ïŒïŒã
tabItemïŒ "Summary"ãboxïŒverbatimTextOutputïŒ "Summary"ïŒãwidth = 12ãheight = 600ïŒïŒã
tabItemïŒ "Tidy"ãboxïŒdataTableOutputïŒ "Tidy"ïŒãwidth = 12ãheight = 600ïŒïŒã
tabItemïŒ "äºæž¬"ãããã¯ã¹ïŒdataTableOutputïŒ "äºæž¬"ïŒãå¹ = 12ãé«ã= 600ïŒïŒã
tabItemïŒ "Plots"ãboxïŒwidth = 12ãplotOutputïŒ "RFplot"ãheight = 275ïŒãplotOutputïŒ "r2"ãheight = 275ïŒïŒïŒã
tabItemïŒ "Map"ãboxïŒwidth = 12ãhtmlOutputïŒ "view"ïŒãDT :: dataTableOutputïŒ "formap2"ïŒãheight = 600ïŒïŒ
ïŒ
ïŒ
ïŒ
dashboardHeaderïŒã¿ã€ãã«=ããã€ãã³ã°ããããã£v0.9ãïŒã
dashboardSidebarïŒ
sidebarMenuïŒ
menuItemïŒ "ãœãŒã¹ããŒã¿"ãtabName = "ãœãŒã¹"ïŒã
menuItemïŒ "Summary"ãtabName = "Summary"ïŒã
menuItemïŒãçããŒã¿ããtabName =ãçãïŒã
menuItemïŒãæŽé ããŒã¿ããtabName =ãæŽé ãïŒã
menuItemïŒ "äºæž¬ããŒã¿"ãtabName = "äºæž¬"ïŒã
menuItemïŒ "Plots"ãtabName = "Plots"ïŒã
menuItemïŒ "çµæããã"ãtabName = "ããã"ïŒ
ïŒ
ïŒã
dashboardBodyïŒ
tags $ headïŒtags $ styleïŒHTMLïŒ 'ãbox {overflowïŒauto;}'ïŒïŒïŒã
tabItemsïŒ
tabItemïŒ "ãœãŒã¹"ã
ããã¯ã¹ïŒå¹ = 12ã
fluidRowïŒ
åïŒå¹ = 4
selectInputïŒ "Metro"ã "Metro"ã ""ãwidth = '60ïŒ 'ïŒã
ïŒbrïŒïŒã
hrïŒïŒã
#checkboxInputïŒ "Kind.home0"ã "all"ãTRUEïŒã
checkboxGroupInputïŒ "Kind.home"ã "House Type"ãcïŒ
ãããã«ã= 1ã
ãã¹ã¿ãŒãªã³ã= 7
ãã·ãŒã«ãã= 8
ãã¬ã³ã¬ã= 2
ãã¢ããªã·ãã¯ã= 3
ãããªãã¯ã¢ããªã·ãã¯ã= 4
ããããã¯ã= 5
ãããªãŒã= 6ïŒãéžææžã¿= cïŒ1,2,3,4,5,6,7,8ïŒïŒã
hrïŒïŒã
SliderInputïŒãEtagãããFloorããmin = 0ãmax = 100ãvalue = cïŒ0ã100ïŒãstep = 1ïŒã
checkboxInputïŒãEtagPãããæåŸã§ã¯ãªããïŒã
SliderInputïŒ "Etagn"ã "In the house of floors"ãmin = 0ãmax = 100ãvalue = cïŒ0ã100ïŒãstep = 1ïŒ
ã
submitButtonïŒãåæããã¢ã€ã³ã³ïŒãæŽæ°ãïŒïŒ
ïŒã
åïŒå¹ = 4
selectInputïŒ "Rooms"ã "Rooms"ãc
ïŒ ""ã
"1" = "ïŒroom1 = 1"ã
"2" = "ïŒroom2 = 1"ã
"3" = "ïŒroom3 = 1"ïŒãå¹ = '45ïŒ 'ïŒã
ïŒbrïŒïŒã
hrïŒïŒã
ïŒbrïŒïŒã
selectInputïŒ "Balcon"ã "Balcony"ã
cïŒ "ãã«ã³ããŒãªãã§ãå¯" = "0"ã
ããã«ã³ããŒã®ã¿ã=ãïŒminbalkon = 1ãã
ããã«ã³ããŒãªãã®ã¿ã=ãïŒminbalkon = -1ãïŒã
å¹ = '45ïŒ 'ïŒã
brïŒïŒã
hrïŒïŒã
brïŒïŒã
#brïŒïŒã
SliderInputïŒããããã³Mããããããã³ãšãªã¢ããæå°= 0ãæ倧= 25ãå€= cïŒ0ã25ïŒãã¹ããã= 1ïŒã
sliderInputïŒ "GilM"ã "Living Area"ãæå°= 0ãæ倧= 100ãå€= cïŒ0ã100ïŒãã¹ããã= 1ïŒã
SliderInputïŒãTotalMãããTotal Areaããæå°= 0ãæ倧= 150ãå€= cïŒ0ã150ïŒãã¹ããã= 1ïŒ
ïŒã
åïŒå¹ = 4
SliderInputïŒ "Price"ã "Price"ãmin = 0ãmax = 50000000ãvalue = cïŒ0ã50000000ïŒãstep = 100000ãsep = ""ïŒã
ïŒhrïŒïŒã
selectInputïŒãååŒãããååŒã¿ã€ããã
cïŒ "any" = "0"ã
ãç¡æã=ãïŒsost_type = 1ãã
ã代æ¿ã=ãïŒsost_type = 2ãïŒã
å¹ = '45ïŒ 'ïŒã
brïŒïŒã
hrïŒïŒã
#brïŒïŒã
ïŒbrïŒïŒã
ïŒbrïŒïŒã
radioButtonsïŒ "wc"ã "Bathroom"ã
cïŒãéèŠã§ã¯ãªãã=ããã
ãåé¢ã=ãïŒminsu_r = 1ãã
ãçµåã=ãïŒminsu_s = 1ãïŒïŒã
hrïŒïŒã
selectInputïŒãLiftãããLiftsïŒæå°ïŒãã
cïŒ "0" = 0ã
"1" = "ïŒminlift = 1"ã
"2" = "ïŒminlift = 2"ã
"3" = "ïŒminlift = 3"ã
"4" = "ïŒminlift = 4"
ïŒã
å¹ = '45ïŒ 'ïŒã
hrïŒïŒã
selectInputïŒãobsãããå°å³äžã«ã¢ããŒãã¡ã³ãã衚瀺ïŒããcïŒ1:10ïŒãéžæ= 5ãå¹ = 250ïŒã
textOutputïŒ "ãã©ãã"ïŒ
ïŒ
ïŒã
fluidRowïŒhtmlOutputïŒ "hyperf1"ïŒïŒã
fluidRowïŒtextOutputïŒ "testOutput"ïŒïŒ
ïŒ
ïŒã
tabItemïŒ "Raw"ãboxïŒdataTableOutputïŒ "Raw"ïŒãwidth = 12ãheight = 600ïŒïŒã
tabItemïŒ "Summary"ãboxïŒverbatimTextOutputïŒ "Summary"ïŒãwidth = 12ãheight = 600ïŒïŒã
tabItemïŒ "Tidy"ãboxïŒdataTableOutputïŒ "Tidy"ïŒãwidth = 12ãheight = 600ïŒïŒã
tabItemïŒ "äºæž¬"ãããã¯ã¹ïŒdataTableOutputïŒ "äºæž¬"ïŒãå¹ = 12ãé«ã= 600ïŒïŒã
tabItemïŒ "Plots"ãboxïŒwidth = 12ãplotOutputïŒ "RFplot"ãheight = 275ïŒãplotOutputïŒ "r2"ãheight = 275ïŒïŒïŒã
tabItemïŒ "Map"ãboxïŒwidth = 12ãhtmlOutputïŒ "view"ïŒãDT :: dataTableOutputïŒ "formap2"ïŒãheight = 600ïŒïŒ
ïŒ
ïŒ
ïŒ
ããããã¹ãŠã®çµæã¯ãã°ã©ãã£ã«ã«ã€ã³ã¿ãŒãã§ã€ã¹ãåãã䟿å©ãªã¢ããªã±ãŒã·ã§ã³ã§ãããå®éã«ã¯ãµã€ãã¡ãã¥ãŒã®2ã€ã®äž»èŠãªãã€ã³ãïŒå¶åŸ¡çšã®ä»ã®ã¢ã€ãã ïŒãæåãšæåŸã«ãããŸãã ãµã€ãã¡ãã¥ãŒïŒå³1ïŒã®æåã®ïŒ ãœãŒã¹ããŒã¿ ïŒé ç®ã«ã¯ãã¢ããŒãã®æ€çŽ¢ãšè©äŸ¡ã«å¿ èŠãªãã¹ãŠã®ãã©ã¡ãŒã¿ãŒïŒcianã«é¡äŒŒïŒãèšå®ãããŠããŸãã
å³1éžæãããã¡ãã¥ãŒã®ãŠã£ã³ããŠãœãŒã¹ããŒã¿
ãµã€ãã¡ãã¥ãŒã®æ®ãã®é ç®ã«è¡šç€ºãããŸãïŒ
- ãªã°ã¬ããµãŒã®èŠçŽã¬ããŒã
- ããŒã¿ããŒãã«ïŒçïŒ çããŒã¿ ïŒ-解æåŸã®åæããã¡ããšããïŒ æŽé ãããããŒã¿ ïŒ-ãã©ã¡ãŒã¿ãŒããã¡ããšããå€èŠ³ã«ãããã©ã¡ãŒã¿ãŒã調æŽãããžãªãã±ãŒã·ã§ã³ãè¿œå ããåŸãããã³æçµïŒ äºæž¬ããŒã¿ ïŒäºæž¬äŸ¡æ Œå€ã®è¡šïŒ
- 3ã€ã®ããããå³ïŒå³2ïŒ-ã¢ãã«ã®ç²ŸåºŠãšã©ã³ãã ãã©ã¬ã¹ãã¢ã«ãŽãªãºã ã®ãªã°ã¬ããµã®éèŠæ§ïŒã»ãšãã©ãã¹ãŠã®ãªã°ã¬ããµãéèŠã§ãïŒããã³åæäŸ¡æ Œãšäºæž¬äŸ¡æ Œã®åæ£å³ã
å³2éžæããããããã¡ãã¥ãŒã®ãŠã£ã³ããŠ
ããŠãæåŸã®æ®µèœïŒ çµæããã ïŒïŒå³3ïŒã«ã¯ããã¹ãŠãäœã®ããã«éå§ãããããéžæãããæè¯ã®çµæã®ããããèšç®ãããäºæž¬äŸ¡æ Œãšã¢ããŒãã®äž»ãªç¹æ§ã®ããŒãã«ã衚瀺ãããŸãã
å³3éžæããã¡ãã¥ãŒã®ãŠã£ã³ããŠçµæããã
ãŸãããã®è¡šã«ã¯ããã®åºåã«ç§»åããããã®ãªã³ã¯ïŒ*ïŒãããã«ãããŸãã ãã®çµ±åïŒè¡šã®JSèŠçŽ ãå«ãïŒã«ããã DTããã±ãŒãžãäœæã§ããŸãã
ãããã«
äžèšã®ãã¹ãŠãèŠçŽãããšãããã¯ã©ã®ããã«æ©èœããŸããïŒ
- æåã®ããŒãžã§ã¯ãæåã®ãªã¯ãšã¹ãã¯ã³ã³ãããŒã«ã䜿çšããŠèšå®ãããŸã
- ãããã®å ¥åèŠçŽ ã®éžæã«åºã¥ããŠãã¯ãšãªæååã圢æãããŸãïŒæ€èšŒçšã®ãã€ããŒãªã³ã¯ãšããŠã瀺ãããŸãïŒ
- ããŒãžã瀺ããã®è¡ã¯import.io APIã«æž¡ãããŸãïŒããããã¹ãŠäœæããéçšã§ã import.ioã®ãããã§cianã¯åºåã€ã³ã¿ãŒãã§ãŒã¹ãå€æŽãå§ããŸãããæåéã5åã§æœåºããã°ã©ã ãåãã¬ãŒãã³ã°ããŸããïŒ
- APIããåä¿¡ããJSONãåŠçãããŸã
- ãã¹ãŠã®ããŒãžãã¹ãã£ã³ãããŸãïŒããã»ã¹ã§ã¯ãããã»ã¹ã®ã¹ããŒã¿ã¹ããŒã衚瀺ãããŸãïŒ
- ããŒãã«ã¯æ¥çããããã§ãã¯ããïŒäžæ£ãªå€ã¯é€å€ãããæ¬ æå€ã¯çœ®æãããŸãïŒãåæã«é©ããåäžãªåœ¢åŒã«ãªããŸã
- äœæã®ãžãªã³ãŒãã£ã³ã°ãšè·é¢ã®æ±ºå®
- ã¢ãã«ã¯ãã©ã³ãã ãã©ã¬ã¹ãã¢ã«ãŽãªãºã ã«åŸã£ãŠæ§ç¯ãããŸã
- äºæž¬äŸ¡æ Œã絶察ãçžå¯Ÿåå·®ã決å®ãããŸã
- æè¯ã®çµæã¯ãããããšãã®äžã®è¡šã«è¡šç€ºãããŸãïŒè¡šç€ºãããŠããã¢ããŒãã¡ã³ãã®æ°ã¯æåã®ããŒãžã«ç€ºãããŠããŸãïŒ
ã¢ããªã±ãŒã·ã§ã³ã®ãã¹ãŠã®äœæ¥ïŒãªã¯ãšã¹ãã®éå§ããå°å³äžã®è¡šç€ºãŸã§ïŒã¯1åæªæºã§å®äºããŸãïŒã»ãšãã©ã®æéã¯äœçœ®æ å ±ã«è²»ããããŸããããã¯ã家åºã§ã®äœ¿çšã«é¢ããGoogleã®å¶éã§ãïŒã
ãã®åºçç©ã¯ãåçŽãªå®¶åºã®ããŒãºã®ããã«ã1ã€ã®ã¢ããªã±ãŒã·ã§ã³ã®ãã¬ãŒã ã¯ãŒã¯å ã§ãå€ãã®å°ããªããããæ ¹æ¬çã«ç°ãªãèå³æ·±ããµãã¿ã¹ã¯ã解決ã§ããããšã瀺ããŸããã
- 鳎ã声
- 解æ
- ãµãŒãããŒãã£APIã®çµ±å
- JSONåŠç
- ãžãªã³ãŒãã£ã³ã°
- ããŸããŸãªååž°ã¢ãã«ã䜿çšãã
- ããŸããŸãªæ¹æ³ã§ã®æå¹æ§ã®è©äŸ¡
- ãžãªãã±ãŒã·ã§ã³
- å°å³è¡šç€º
ããã«ããããã¯ãã¹ãŠãããŒã«ã«ãŸãã¯ãããã¯ãŒã¯äžã§ãã¹ãã§ãã䟿å©ãªã°ã©ãã£ã«ã«ã¢ããªã±ãŒã·ã§ã³ã«å®è£ ããããã¹ãŠããã¯1ã€ã®RïŒ import.ioãã«ãŠã³ãããªãïŒã§è¡ãããã·ã³ãã«ã§ãšã¬ã¬ã³ããªæ§æã®æå°éã®ã³ãŒãè¡ã§è¡ãããŸãã ãã¡ãããé«ééè·¯ã®è¿ãã®å®¶ãã¢ããŒãã®ç¶æ ïŒããã¯åºåã«å«ãŸããŠããªãããïŒãªã©ã¯èæ ®ãããŸãããããããã«ããã«è¡šç€ºãããå ã®åºåèªäœãžã®ãªã³ã¯ãå«ãæçµçãªã©ã³ã¯ä»ãããããªãã·ã§ã³ã®ãªã¹ãã¯ãã¢ããŒãã®éžæãéåžžã«å®¹æã«ããŸãããã«å ããŠãRã§å€ãã®ããšãåŠã³ãŸããã