Google Colaboratoryã便å©
ãæè¿ãGoogle Colaboratoryãã¡ãã£ã¨æ°ã«ãªã£ã¦ããã®ã§ãããã¿ãã±ã³ (id:tadaken3)ããã®ä»¥ä¸è¨äºã«åããããã使ãæ¹ãæ¸ãã¦ãã£ãã®ããã£ããã«è©¦ãã¦è¦ã¾ããã
ãçµè«ããè¨ãã¨ãããè¯ãã§ãããGoogle Colaboratoryã«ã¯ä»¥ä¸ã®ç¹å¾´ï¼å©ç¹ï¼ãããã¾ãã
- ãã¼ã«ã«PCã«å¿ è¦ãªã®ã¯ãã©ã¦ã¶ï¼Google Chromeï¼ã®ã¿
- ã¯ã©ã¦ãä¸ã«Pythonç°å¢ãããPython2/3 両æ¹ä½¿ãã
- æ©æ¢°å¦ç¿ã«å¿ è¦ãªã©ã¤ãã©ãªã¯ãããç¨åº¦ããªã¤ã³ã¹ãã¼ã«ããã¦ããï¼numpy, matplotlib, TensorFlowçï¼
- å¿
è¦ãªã©ã¤ãã©ãªã¯
!pip install
ã§ã¤ã³ã¹ãã¼ã«ã§ãã - æ¥æ¬èªãã©ã³ããï¼ã¡ãã£ã¨å·¥å¤«ããã°ï¼ä½¿ãã
- ç¡æã§ä½¿ããããªãã¨GPUã12æéåãç¡æã§ä½¿ããï¼
ãããæ»è§ç¡ãããã§ã¯â¦Pythonã£ã¦ç°å¢æ§ç¯ãé¢åèããªã¨æãããã¨ããåå¿è ã«ã¯å°ããã¼ãã«é«ããªã¨æããã¨ãå¤ãã§ãããåå¿è ã«ãä¸ç´è ã®æ¹ã«ã便å©ã ã¨æãã¾ãã
Google Colaboratoryã使ã£ã¦æ©æ¢°å¦ç¿ã試ãã¦ã¿ã
ãã¤ã¼ãæ å ±ã®å¯è¦å
ãã¾ãã¯ãã¿ãã±ã³ãããã以ä¸ã®ãããªä¸å¯§ãªè¨äºãæ¸ãã¦ããã®ã§ãæ©éç§ãçä¼¼ãã¦ã¿ããã¨ã«ãã¾ããã
ããã ããã®ã¾ã¾çä¼¼ããã®ãè¸ããªãã®ã§ãã¿ãã±ã³ããã®ãã¤ã¼ãæ°ã®åæã«å ãã¦ã以å試ãããæ©æ¢°å¦ç¿ææ³ãç¨ãã¦ããã°ã®æç« ãåæã»å¯è¦åï¼ããã¹ããã¤ãã³ã°ï¼ãã試ãã¦è¦ããã¨ã«ãã¾ãããæããã¦ãGoogle Colaboratoryä¸ã§åãã®ãï¼
ãçµæçã«æ¸ãã¨å ¨é¨ã§ãã¦ãã¾ãã¾ããã
ã以åãã£ããã¨ãªã®ã§ã詳細ã®åæã¯å²æãã¾ãã
ããã¤ã¼ãæ°ã®å¯è¦åãå³è©ä¸ããã§ãã
ãWordcloudã«ããå¯è¦åãããè¦ããã¤ã§ãã
ãWord2Vecã«ããå¯è¦å
ãã»ã¨ãã©è©°ã¾ããã«ãç°¡åã«Google Colaboratoryã§å®è¡ãããã¨ãã§ãã¾ããã
ããã¼ã¿ã®ã¢ãããã¼ãããã¦ã³ãã¼ãã«é¢ãã¦ã¯ãã¿ãã±ã³ããã®è¨äºã«æ¸ãã¦ããéãã§ãï¼æè¬ï¼ã
ãwordcloudã¨ããã¤ã³ã¹ãã¼ã«ã§ããã®ã ãããã¨æã£ãã
!pip install wordcloud
ã§ä¸çºã§ããã
ãæ¥æ¬èªãã©ã³ããã調ã¹ãããªãã¨apt-get
ã§å
¥ããããã¨ã®ãã¨ã以ä¸ã§å
¥ãã¾ããï¼ãªã¹ã¿ã¼ããå¿
è¦ï¼ã
!apt-get -y install fonts-ipafont-gothic
ãæ¢ã£ã¦è¦ãã/etc/debian_version
ããã£ãã®ã§ãDebianã¿ããã§ããã
!cat /etc/debian_version stretch/sid
ãã¨ãããã§ãä»å試ãã¦ã¿ãJupyter Notebookå½¢å¼ã®ãã¡ã¤ã«ãå ±æãã¦ã¿ã¾ããããããã£ã¦ç°¡åã«å ±æã§ããã®ãã便å©ãªç¹ã§ããã
ãGoogle Chromeã§ä¸è¨ã«ã¢ã¯ã»ã¹ããã°ãä»å使ç¨ããã³ã¼ããè¦ããã¯ãã§ãããã©ã¦ã¶ä¸ã§ãä¸è¨ãã¡ã¤ã«ãä¸ããé ã«å®è¡ãã¦ããã°ã誰ã§ãèªåã®ãã¤ã¼ãã使ã£ãåæãç°¡åã«ã§ãã¡ããã¾ãï¼å¤åï¼ã
æ©æ¢°å¦ç¿ã®åå¼·ã«ãæé©ãã
ãGoogle Colaboratoryã¯ãç°å¢æ§ç¯ãä¸è¦ãªã®ã§ãåå¦è ã®å¦ç¿ç°å¢ã¨ãã¦ãæé©ããããã¾ãããããã®ããã°ã§ãã以ä¸ã®ãããªæ©æ¢°å¦ç¿ã®å®è·µçãªãã¥ã¼ããªã¢ã«ãç´¹ä»ãã¾ããã
ããã ãããããå®è¡ããããã®ç°å¢æ§ç¯ã§è©°ã¾ã£ã¦ãã人ãæ£ç´å¤ãã®ãããªããã¨æãã¾ããGoogle Colaboratoryãªãããã©ã¦ã¶ããããã°ãä¸è¨ã®ãã¥ã¼ããªã¢ã«ãæ¯è¼ç楽ã«åãããã¨ãã§ããã®ã§ã¯ãªãããªã¨æãã¾ãï¼ãã¡ããã1é¨ã¯è¿½å ã§ããã±ã¼ã¸ã®ã¤ã³ã¹ãã¼ã«ãå¿ è¦ã§ããã0ããããã¯éå楽ãã¨æãã¾ãï¼ã
ããããã追è¨ã§ããChainerã®ãã¥ã¼ããªã¢ã«ãGoogle Colaboratoryã§åããæ¹æ³ã¯ã以ä¸ã®è¨äºã詳ããã£ãã§ããGoogle Colaboratoryä¸ã§Chainerã®GPUã使ãããã®TIPSãªã©ããæçã§ãã
Colaboratoryで10秒で起動できる、ChainerのGitHubレポジトリ作ってみた - Qiita
ãããã¦ããããã£ãå¦ç¿ç°å¢ããå®å ¨ã«ã»ããã¢ãããããç¶æ ã§æä¾ãã¦ããã¦ããã®ããAidemyããã§ããåå¦è ã®æè²ã«ã¯ãæ¬å½ã«æé©ã ã¨æãã¾ãï¼å¥ã«Aidemyããã®åãè ã§ã¯ãªãã®ã§ãç¡çããªãã¦è©¦ããªãã¦ã大ä¸å¤«ã§ãwï¼
ãã¨ãã£ã¦ããAidemyããã®ç°å¢ã¯å¦ç¿ããã°ã©ã ã«æ²¿ã£ããã¨ä»¥å¤ã¯ã§ããªãã®ã§ãèªåã®ãããããã¨ã«ã¹ãããã¢ããããå ´åãGoogle Colaboratoryã¨ããã®ã¯ãã¹ã ã¼ãºã«ç§»è¡ããããç°å¢ã¨è¨ããããããã¾ããã
GitHubä¸ã®JupyterNotebookãGoogle Colaboratoryãéããã¨ãã§ãã
ã以ä¸è¨äºã§ç¥ã£ãã®ã§ãããå®ã¯GitHubã¨Google Colaboratoryã®çµã¿åããã¯ãã¡ããã¡ã便å©ã§ãã
ãä¸è¨ã«æ¸ãã¦ããéããGitHubãªãã¸ããªå
ã®jupyter notebookãéããURLã®https://github.com
ãhttps://colab.research.google.com/github
ã«å¤æããã ãã§ããç´ æ´ãããâ¦
ãã®ä»ä¾¿å©ãªTIPSã®ã¾ã¨ã
ãGoogle Colabã§ä½¿ãã便å©ãªTIPSãªã©ãã¾ã¨ãã¾ããã以ä¸è¨äºåç §ä¸ããã
Google Colaboratoryã®è¨äºãæ¸ããã¨æã£ããã£ãã
ãä½è«ã«ãªãã¾ãããä»åã®è¨äºãæ¸ãããã£ãããå®ã¯ä»¥ä¸è¨äºã§ id:jastaway03 ããããç§ã®ããã°è¨äºã¨åããã¨ããããã¨ãã¦ç°å¢æ§ç¯ã«10æéããã£ãã¨ãããã¨ãæ¸ããã¦ããããã§ãã
ãåå¿è ã§10æéã§ç°å¢æ§ç¯ã§ãããªãååããªã¨ãæãã®ã§ãããç°å¢è¨å®ã®é¨åã¯Google Colaboratory使ãã°ããªã楽ã«ã§ããã®ã§ãæåã¯ãããããã®ã使ã£ãæ¹ããåå¦è ã®æ¹ã«ã¯éè¦ãªé¨åã«æ©ããã©ã¼ã«ã¹ã§ãã¦ããã®ããªã¨æãã¾ãããå¤åãGoogle Colaboratory使ãã°ãåå¿è ã®æ¹ã§ã1æéããããã«åãããã¨ãã§ããã®ãããªããã¨æãã¾ãï¼ããç¨åº¦ã®ç¥èã¯å¿ è¦ã§ããï¼ã
ãããã¦ãGoogle ColaboratoryãTensorFlowãKerasãããªã¤ã³ã¹ãã¼ã«ããã¦ãã¾ãããChainerãï¼pip installããã°ï¼ä½¿ããã®ã§ããã£ã¼ãã©ã¼ãã³ã°ã«ãæ´»ç¨ã§ãããã§ãããªãã¨GPUã12æé使ç¨ç¡æãããã§ãããä¸ä½ã©ããªã£ã¦ããã®ã§ãããâ¦
ãGPUã®ä½¿ãæ¹ãå«ãããGoogle Colaboratoryã®ä½¿ãæ¹ã¯ã以ä¸ã®id:ueponx ããã®è¨äºã詳ããã®ã§ãèå³æ¹§ãããã©ä½¿ãæ¹ãããããªãã¨ãã人ã¯ã以ä¸ã®è¨äºãåããã¦èªãã¨è¯ãã¨æãã¾ãã
ããã ãéã®ãã¨ãè¨ãããã§ãããããããã¯ã©ã¦ãç°å¢ã«å®å ¨ã«å²ãè¾¼ã¾ãããæãï¼ã¯ã©ã¦ããç¡ãã¨ä½ã«ãã§ããªããã³ã«ãªã£ã¦ãã¾ãï¼ãªã¨ããæããããã®ã§ãå人çã«ã¯ãã¼ã«ã«ã§ãã¡ããã¨ç°å¢æ§ç¯ã§ããããã«ãªã£ãä¸ã§ããããããµã¼ãã¹ãæ´»ç¨ãã¦ããã®ãè¯ãã®ããç¡ãããªã¨æã£ã¦ãã¾ããè³¢ããã¼ã«ã«ã¨ã¯ã©ã¦ãã使ãåãã¦ãå¿«é©ãªæ©æ¢°å¦ç¿ã©ã¤ããéãã¾ãããï¼
ã¾ã¨ã
ãGoogle Colaboratoryã使ã£ã¦ãPythonã®æ©æ¢°å¦ç¿ããã¦è¦ã¾ããããã¼ã«ã«ã§ã®ç°å¢æ§ç¯ä¸è¦ã§ãç°¡åã«Pythonã®ããã°ã©ã ã試ããã®ã§æ¬å½ã«è¯ãã§ãããåå¿è ããä¸ç´è ã¾ã§ãæ¯éæ´»ç¨ãã¦ã¿ã¦ãã ããã
æ¸ç±ã®å®£ä¼
ãAIã®åå¿è åãæ¬ãããããå çã®ã¨ã«ãã楽ããAIèªä½æ室ããå·çãã¾ãããGoogle Colaboratoryã使ã£ã¦ãå®éã«åãããªããAIãå¦ã¹ãæ¬ã«ãªã£ã¦ãã¾ãã
ãæç³»ã§AIç´ äººã®ç§ã®å¦»ããå®è·µã§ãã¦ç解ãæ·±ãããããããªãåå¦è åãã®å 容ã«ãªã£ã¦ãã¾ãã以ä¸ã«ç´¹ä»è¨äºãæ¸ãã¦ãã¾ãã®ã§ãèå³ããæ¹ã¯æ¯éããããã ããã
åèãªã³ã¯
ドシロウトがGoogle Colaboratoryをさわってみた - Qiita
DataFrameからリストやnumpy.ndarrayへの変換 - Pythonのメモ帳
pandas DataFrame内にNaNありますか? - Qiita
Colaboratoryについて(まとめ) | 粉末@それは風のように (日記)
GitHub - chainer-community/chainer-colab-notebook: this repository is synchronized with ReadTheDocs.
é¢é£è¨äº
å¤æ´å±¥æ´
- 2020/12/20 æ¸ç±ã®å·çã«é¢ãã¦è¿½è¨
- 2019/04/08 é¢é£è¨äºè¿½è¨
- 2019/03/22 è¨äºã®ä¿®æ£
- 2019/02/02 é¢é£è¨äºè¿½è¨
- 2018/12/19 便å©ãªTIPSã¾ã¨ãã¸ã®ãªã³ã¯è¿½è¨
- 2018/03/22 Google Colaboratoryä¸ã§ã®Chainerã®ãã¥ã¼ããªã¢ã«ã«é¢ãã¦è¿½è¨