èªå®
ã§éçºããç°å¢ã®æ§ç¯æé ãã¾ã¨ãã¦ãããã¨æãã¾ãã
使ç¨ãã¦ãããã½ã³ã³ã¯å¹³å以ä¸ã®ã¹ããã¯ã§ãWindows10ã使ç¨ãã¦ãã¾ãããã¼ã«ã«PCã§ãAIã®å¦ç¿ãLinuxä»®æ³ç°å¢ã使ãã®ã¯å³ãããããåºæ¬çã«ç¡æã®ç¯å²ã§ã¯ã©ã¦ããµã¼ãã¹ãæ´»ç¨ããç°å¢ã«ãããã¨æãã¾ãã
éçºç°å¢ã®æ¦è¦
æ³å®ããéçºç°å¢ï¼Googleãã©ã¤ãï¼Google Colaboratoryï¼GitHub
- ãã¼ã«ã«PCã¯Windows10ã®ãã¼ããã½ã³ã³
- åºæ¬çã«ã¯ãGoogle Colaboratoryã使ã£ã¦ãã½ã¼ã¹ã³ã¼ããå®è£
ãã
- å®è£
ãå®äºããããGoogle ColaboratoryããPythonãã¡ã¤ã«ãã¨ã¯ã¹ãã¼ããã
- æ©è½ã確èªã§ããããGitHubã«pushãã
ä»ã®é¸æè¢
- ä»®æ³ç°å¢ï¼WSL2ãVirtualBoxãªã©ï¼
- ãã¼ã«ã«PCãéåãªã®ã§ãèããªã
- Google Cloud Shellï¼Jupyter notebookï¼GitHub
- Google Cloud Shellã®æ¦è¦
- Googleã®ãµã¼ãã¹ã§ããã©ã¦ã¶ä¸ã§ãLinuxã·ã§ã«ãç¡æã§ä½¿ãã
- Linuxã¯Debianç³»ã§ãGUIã¯ç¡ã
- Googleã®ã¦ã¼ã¶ã¨ãã¦ã5GBã®ãã¼ã ãã£ã¬ã¯ããªãç¨æãããï¼ãã ãã120æ¥éã¢ã¯ã»ã¹ãç¡ãã¨åé¤ããããäºåã«ã¡ã¼ã«ã§éç¥ããï¼
- 1é±éã®å©ç¨æéã¯50æéã¾ã§
- ãã°ã¤ã³ãããæ°è¦ã¤ã³ã¹ã¿ã³ã¹ãä½ããããã°ã¢ã¦ãã§ã¤ã³ã¹ã¿ã³ã¹ã¯åé¤ããããç°¡åãªãã¹ããªã©ã«åãã¦ãã¨æã
- ããããããGitãPythonãªã©ã®éçºãã¼ã«ãããç¨åº¦ã¤ã³ã¹ãã¼ã«ããã¦ãããå¿
è¦ã«å¿ãã¦ã¤ã³ã¹ãã¼ã«ã§ãã
- Googleãã©ã¤ãã¯ãã¦ã³ãã§ããªããããï¼ãã³ãï¼ï¼
- ãããããã¨ãPython以å¤ã«ã§ããå ´åã«ããã®ç°å¢ãæ§ç¯ãã¦ã¿ã
å
·ä½çãªæé
Googleãã©ã¤ãã®æºå
ãã½ã³ã³çGoogleãã©ã¤ãã®ã¤ã³ã¹ãã¼ã«
Googleãã©ã¤ãã¯ããã©ã¦ã¶ã§ãã¡ã¤ã«ãæä½ããå¿
è¦ãããã¾ãããã¨ã¦ã大å¤ã§ããããã§ãWindowsã®ã¨ã¯ã¹ããã¼ã©ã§ãGoogleãã©ã¤ãã®ãã¡ã¤ã«ãæä½ã§ããããã«ããã½ã³ã³çGoogleãã©ã¤ããã¤ã³ã¹ãã¼ã«ãã¾ãã大éã®ãã¡ã¤ã«ãæä½ããã¨ãåæã«æéããããããã注æãå¿
è¦ã§ããã¤ã³ã¹ãã¼ã«ã¯ä»¥ä¸ã®ãªã³ã¯ã§ã¤ã³ã¹ãã¼ã«ç¨ã®ãã¡ã¤ã«ããã¦ã³ãã¼ããã¦å®è¡ããã°OKã§ãã
support.google.com
- ãã½ã³ã³çGoogleãã©ã¤ããã¤ã³ã¹ãã¼ã«ãã¦ããèµ·åããæ¼ãã¨ãGoogleãã©ã¤ãã¸ãããããã¨ããç»é¢ã表示ãããã®ã§ããéå§ããæ¼ã
- Google Colaboratoryã§ä½¿ç¨ããGoogleã¢ã«ã¦ã³ãã§ãã°ã¤ã³ããï¼ãã½ã³ã³çGoogleãã©ã¤ãã¯æ大ã§4ã¢ã«ã¦ã³ãåãæ¿ãã¦ä½¿ãããããï¼
- åä½ç¢ºèªã®ããããã¼ã«ã«PCä¸ã§ãæ°è¦ã«GitHubã¨ãããã£ã¬ã¯ããªãä½ããtest.pyã¨ãããã¡ã¤ã«ãä½ã£ã
- åæãã¨ããã£ã¬ã¯ããªã¨ãã¦ãä»ä½æãããã£ã¬ã¯ããªãæå®ãã
- ããã©ã«ãã§ç¨æããã¦ããã¯ã©ã¦ãä¸ã®Googleãã©ã¤ãã¯ããã¤ãã©ã¤ãããããããã£ã¬ã¯ããªã¨ãªãã¿ãã
- åæãããã£ã¬ã¯ããªãæå®ããå ´åãããã½ã³ã³ããããããã£ã¬ã¯ããªã«ãªãã¿ãã
- Googleãã©ã¤ãã確èªããã¨ããããã¼ã«ã«PCã§ä½æããtest.pyããããã¨ã確èªã§ãã
ãã½ã³ã³çGoogleãã©ã¤ãã®è¤æ°ã¢ã«ã¦ã³ãã®ä½¿ãæ¹
- Windowsã®ã¡ãã¥ã¼ããGoogle Driveãèµ·åããããã¯ãã·ã¹ãã ãã¬ã¤ã®Googleãã©ã¤ããã¯ãªãã¯ãã¦ãè¨å®ã¢ã¤ã³ã³ãã¯ãªãã¯
- Googleãã©ã¤ãã®è¨å®ã¨ããã¦ã£ã³ãã¦ãèµ·åããã®ã§ãå³ä¸ã®ã¦ã¼ã¶ã®ã¢ã¤ã³ã³ãã¯ãªãã¯ãã¦å¥ã¢ã«ã¦ã³ãã追å ãã¯ãªãã¯
- å¥ã¢ã«ã¦ã³ãã§ãã°ã¤ã³ããã¨ããã¼ã«ã«PCã®ãã©ã¤ãã«ãã®ã¢ã«ã¦ã³ãã®Googleãã©ã¤ãããã¦ã³ãããã
Google Colaboratoryã®èµ·å
- ãã©ã¦ã¶ã§ãä»å使ç¨ããGoogleã¢ã«ã¦ã³ãã§ãã°ã¤ã³ãã
- Googleã®æ¤ç´¢ã®ããããã¼ã¸ã§ããã©ã¤ãã®ã¢ã¤ã³ã³ãã¯ãªãã¯
- å³ã®ãµã¤ããã¼ã®ãï¼ããã¯ãªãã¯
- ãColabãã§æ¤ç´¢ãã¦ãã¤ã³ã¹ãã¼ã«ãã
- å·¦ã®ãµã¤ããã¼ã®ãã¤ãã©ã¤ãã§å³ã¯ãªãã¯âãã®ä»âGoogle Colaboratoryãã¯ãªãã¯ãGoogle Colaboratoryãèµ·åããï¼ãã¤ãã©ã¤ãç´ä¸ã«Untitled.ipynbã¨ãããã¡ã¤ã«åã§ä½ãããï¼
- ãã ããèµ·åããGoogle Colaboratoryã®ã«ã¬ã³ããã£ã¬ã¯ããªã¯ãä¸æçã«ä½ãããç°å¢ï¼å®ä½ã¯VMã®Ubuntuã³ã³ããã§ãããã»ãã·ã§ã³ãåæãããã¨ç°å¢ã¯åé¤ãããï¼ã®ãã£ã¬ã¯ããªï¼/contentï¼ã§ããããã®ãã£ã¬ã¯ããªã§ãã¡ã¤ã«ãªã©ãåºåãã¦ãæ¶ãã¦ãã¾ãã®ã§ãGoogleãã©ã¤ãããã¦ã³ããã¦ãããã«ç§»åãã¦ä½æ¥ãè¡ãå¿
è¦ããã
GitHubã®ãªãã¸ããªã®æºå
GitHubã®ãªãã¸ããªã®ä½æ
- GitHubï¼ã¢ã«ã¦ã³ããå¿
è¦ãªãä½æãã¦ããï¼ã«ãã°ã¤ã³ãã¦ãå³ä¸ã®ãï¼ããã¯ãªãã¯ãã¦ãNew repositoryãã¯ãªãã¯ãã
- Repository nameã«ãä»»æã®ãªãã¸ããªåï¼ä»åã¯experimentã¨ããï¼ãå
¥åãã
- Add a README fileã«ãã§ãã¯ãå
¥ãã
- ãã¨ã¯ä»»æã«è¨å®ãã¦ãCreate repositoryãã¯ãªãã¯
- âã¯ä½æãããªãã¸ããª
github.com
Googleãã©ã¤ãã«GitHubã®ä½æ¥ãã£ã¬ã¯ããªããã§ãã¯ã¢ã¦ããã¦æ´æ°ãã
git.ipynb
å®è¡ãã¦ããGoogle Colaboratoryã®ãã¡ã¤ã«ãç´æ¥GitHubã«ã³ããããããã¨ãã§ãã
- Google Colaboratoryã§ããã¡ã¤ã«ã¡ãã¥ã¼ã®ãGitHubã«ã³ãã¼ãä¿åããã¯ãªãã¯
- 以ä¸ã®ãããªç»é¢ãåºãã®ã§ãOKãæ¼ãã¨ãèªåã®GitHubã®ãªãã¸ããªã«ç§»åããã³ãããããããã¨ã確èªã§ããï¼ãã¼ãããã¯ã ããæ´æ°ããã ããªããããã§ãããããã¼ãããã¯ä»¥å¤ã®Gitæä½ãããã¨ãã«ãçµå±ã¯âã®ãããªæä½ãå¿
è¦ã«ãªãï¼
Visual Studio Codeã§ãPythonã®ãããã°ãè¡ã
Googleãã©ã¤ãã«SSHã§æ¥ç¶ã§ããªãããããã¼ã«ã«PCã§ãããã°ãããããªãã¨æãã¾ãã
ãã½ã³ã³çGoogleãã©ã¤ããã¤ã³ã¹ãã¼ã«ããã®ã§ãGoogleãã©ã¤ãããã¦ã³ãããããã¼ã«ã«PCã®ãã©ã¤ãã«ã¢ã¯ã»ã¹ããã°ãæ®éã«VSCodeã§ãããã°ã§ãã¾ããã
ãããã«
ä»åã¯ãç¡æã§ä½¿ããéçºç°å¢ã®æé ã®èª¬æã§ããã
ä»åã¯ä»¥ä¸ã§ãï¼
æå¾ã¾ã§ãèªã¿ããã ãããããã¨ããããã¾ããã