-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
2,029 additions
and
482 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,183 @@ | ||
{"nbformat":4,"nbformat_minor":0,"metadata":{"accelerator":"GPU","colab":{"name":"00_operation_check.ipynb","provenance":[],"collapsed_sections":[]},"kernelspec":{"display_name":"Python 3","language":"python","name":"python3"},"language_info":{"codemirror_mode":{"name":"ipython","version":3},"file_extension":".py","mimetype":"text/x-python","name":"python","nbconvert_exporter":"python","pygments_lexer":"ipython3","version":"3.5.2"}},"cells":[{"cell_type":"markdown","metadata":{"id":"8G5SYENhn6Vg"},"source":["# Google Colaboratoryの動作確認\n","\n","---\n","## 目的\n","Google Colaboratoryの動作環境を確認し,使い方について学ぶ."]},{"cell_type":"markdown","metadata":{"id":"KOKaXxLwyb2D"},"source":["## Google Colaboratoryについて\n","\n","Google Colaboratory (以下,Colab.) はGoogleが提供するクラウド型のJupyter Notebook環境です.\n","Google Colab.は機械学習や画像認識に関する教育や研究を目的として開発されたサービスであり,無料で使用することができます."]},{"cell_type":"markdown","metadata":{"id":"TylkVfSeLFFZ"},"source":["## Google Colab. (Jupyter Notebook) のセル\n","\n","Google Colab.では「セル」にプログラムや説明文を記述して,ノートのようにプログラムを整理します.\n","セルには\n","1. Markdown セル\n","2. Code セル\n","の2種類が存在します.\n","\n","#### 1. Markdownセル\n","Markdownセルは,GitHubのREADMEやQiitaのページを記述する際に用いられるMarkdown記法を用いて,説明文等を記述することができます.\n","\n","#### 2. Codeセル\n","Codeセルはプログラムを記述するためのセルです.通常のPythonと同じようにプログラムを記述します."]},{"cell_type":"markdown","metadata":{"id":"MpHiC0O3LFFa"},"source":["## 実行方法\n","実行はCodeセルの左にある実行ボタンをクリックすることで,一つづつ実行することができます.\n","また,実行したいセルを選択した状態で,`Shift + Enter`を押すことでも実行可能です."]},{"cell_type":"markdown","metadata":{"id":"3gcE9SVYzC3m"},"source":["### 計算機のOS確認\n","下記のコードを実行してOSを確認してみます.\n","\n"]},{"cell_type":"code","metadata":{"id":"FJqP5_-vyb8u"},"source":["!lsb_release -a"],"execution_count":null,"outputs":[]},{"cell_type":"markdown","metadata":{"id":"pFGC3y1I0Upl"},"source":["### ハードウェアの確認\n","\n","#### CPU\n","\n","下記のプログラムを実行してCPU情報を確認します."]},{"cell_type":"code","metadata":{"id":"6B680KB_0Utd"},"source":["!cat /proc/cpuinfo | grep 'model name' | uniq\n","!cat /proc/cpuinfo | grep 'processor' | uniq"],"execution_count":null,"outputs":[]},{"cell_type":"markdown","metadata":{"id":"e9b3Yt1V0UxV"},"source":["#### メモリ\n","\n","メモリの総容量と現在の使用状況はこのページの右上の「RAM」と表示されているアイコンにカーソルを重ねることでも,確認することができます."]},{"cell_type":"code","metadata":{"id":"Q3ppY9ZT0U14"},"source":["!cat /proc/meminfo | grep 'MemTotal'\n","!cat /proc/meminfo | grep 'MemAvailable'"],"execution_count":null,"outputs":[]},{"cell_type":"markdown","metadata":{"id":"AQ0vG_Wt2HGy"},"source":["#### GPU\n","\n","下記のプログラムを実行して,GPUの種類を確認します.\n","情報が表示されない場合は,**上部のメニューバーの「ランタイム」→「ランタイムのタイプを変更」からハードウェアアクセラレータをGPUにしてください.**"]},{"cell_type":"code","metadata":{"id":"JNFjzVEj2HLK"},"source":["!nvidia-smi"],"execution_count":null,"outputs":[]}]} | ||
{ | ||
"cells": [ | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": { | ||
"id": "8G5SYENhn6Vg" | ||
}, | ||
"source": [ | ||
"# Google Colaboratoryの動作確認\n", | ||
"\n", | ||
"---\n", | ||
"## 目的\n", | ||
"Google Colaboratoryの動作環境を確認し,使い方について学ぶ." | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": { | ||
"id": "KOKaXxLwyb2D" | ||
}, | ||
"source": [ | ||
"## Google Colaboratoryについて\n", | ||
"\n", | ||
"Google Colaboratory (以下,Colab.) はGoogleが提供するクラウド型のJupyter Notebook環境です.\n", | ||
"Google Colab.は機械学習や画像認識に関する教育や研究を目的として開発されたサービスであり,無料で使用することができます." | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": { | ||
"id": "TylkVfSeLFFZ" | ||
}, | ||
"source": [ | ||
"## Google Colab. (Jupyter Notebook) のセル\n", | ||
"\n", | ||
"Google Colab.では「セル」にプログラムや説明文を記述して,ノートのようにプログラムを整理します.\n", | ||
"セルには\n", | ||
"\n", | ||
"* Markdown セル\n", | ||
"* Code セル\n", | ||
"\n", | ||
"の2種類が存在します.\n", | ||
"\n", | ||
"#### 1. Markdownセル\n", | ||
"Markdownセルは,GitHubのREADMEやQiitaのページを記述する際に用いられるMarkdown記法を用いて,説明文等を記述することができます.\n", | ||
"\n", | ||
"#### 2. Codeセル\n", | ||
"Codeセルはプログラムを記述するためのセルです.通常のPythonと同じようにプログラムを記述します." | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": { | ||
"id": "MpHiC0O3LFFa" | ||
}, | ||
"source": [ | ||
"## 実行方法\n", | ||
"実行はCodeセルの左にある実行ボタンをクリックすることで,一つづつ実行することができます.\n", | ||
"また,実行したいセルを選択した状態で,`Shift + Enter`を押すことでも実行可能です." | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": { | ||
"id": "3gcE9SVYzC3m" | ||
}, | ||
"source": [ | ||
"### 計算機のOS確認\n", | ||
"下記のコードを実行してOSを確認してみます.\n", | ||
"\n" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"metadata": { | ||
"id": "FJqP5_-vyb8u" | ||
}, | ||
"outputs": [], | ||
"source": [ | ||
"!lsb_release -a" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": { | ||
"id": "pFGC3y1I0Upl" | ||
}, | ||
"source": [ | ||
"### ハードウェアの確認\n", | ||
"\n", | ||
"#### CPU\n", | ||
"\n", | ||
"下記のプログラムを実行してCPU情報を確認します." | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"metadata": { | ||
"id": "6B680KB_0Utd" | ||
}, | ||
"outputs": [], | ||
"source": [ | ||
"!cat /proc/cpuinfo | grep 'model name' | uniq\n", | ||
"!cat /proc/cpuinfo | grep 'processor' | uniq" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": { | ||
"id": "e9b3Yt1V0UxV" | ||
}, | ||
"source": [ | ||
"#### メモリ\n", | ||
"\n", | ||
"メモリの総容量と現在の使用状況はこのページの右上の「RAM」と表示されているアイコンにカーソルを重ねることでも,確認することができます." | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"metadata": { | ||
"id": "Q3ppY9ZT0U14" | ||
}, | ||
"outputs": [], | ||
"source": [ | ||
"!cat /proc/meminfo | grep 'MemTotal'\n", | ||
"!cat /proc/meminfo | grep 'MemAvailable'" | ||
] | ||
}, | ||
{ | ||
"cell_type": "markdown", | ||
"metadata": { | ||
"id": "AQ0vG_Wt2HGy" | ||
}, | ||
"source": [ | ||
"#### GPU\n", | ||
"\n", | ||
"下記のプログラムを実行して,GPUの種類を確認します.\n", | ||
"情報が表示されない場合は,**上部のメニューバーの「ランタイム」→「ランタイムのタイプを変更」からハードウェアアクセラレータをGPUにしてください.**" | ||
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": null, | ||
"metadata": { | ||
"id": "JNFjzVEj2HLK" | ||
}, | ||
"outputs": [], | ||
"source": [ | ||
"!nvidia-smi" | ||
] | ||
} | ||
], | ||
"metadata": { | ||
"accelerator": "GPU", | ||
"colab": { | ||
"collapsed_sections": [], | ||
"name": "00_operation_check.ipynb", | ||
"provenance": [] | ||
}, | ||
"kernelspec": { | ||
"display_name": "Python 3", | ||
"language": "python", | ||
"name": "python3" | ||
}, | ||
"language_info": { | ||
"codemirror_mode": { | ||
"name": "ipython", | ||
"version": 3 | ||
}, | ||
"file_extension": ".py", | ||
"mimetype": "text/x-python", | ||
"name": "python", | ||
"nbconvert_exporter": "python", | ||
"pygments_lexer": "ipython3", | ||
"version": "3.7.9" | ||
} | ||
}, | ||
"nbformat": 4, | ||
"nbformat_minor": 4 | ||
} |
Oops, something went wrong.