Last active
January 8, 2018 02:47
-
-
Save vochicong/98109f650636e443b0ffcb3b86ef7c83 to your computer and use it in GitHub Desktop.
Cloud Datalabで手軽にディープラーニングを始める ref: https://qiita.com/vochicong/items/91e5c920f994cf60eabb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew cask install google-cloud-sdk | |
gcloud components install datalab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
datalab create --zone asia-northeast1-a mylab --port 8080 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
datalab stop mylab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
datalab connect mylab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
!pip3 install keras |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%%bash | |
echo "pip3 install keras" >> /content/datalab/.config/startup.sh | |
cat /content/datalab/.config/startup.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gcloud compute ssh mylab --command='sudo chown -R datalab /mnt/disks/datalab-pd/content/datalab/notebooks' | |
gcloud compute scp --recurse [LOCAL_DATA_FOLDER] \ | |
datalab@mylab:/mnt/disks/datalab-pd/content/datalab/notebooks/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment