Skip to content

Commit

Permalink
update colab setup
Browse files Browse the repository at this point in the history
  • Loading branch information
taroyabuki committed Dec 8, 2021
1 parent 5bf58b3 commit aaccd64
Show file tree
Hide file tree
Showing 13 changed files with 16 additions and 36 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ RやPythonのコード(具体的なコンピュータプログラム)の読
本書には,次の三つの特徴があります.

1. 第1部「データサイエンスの準備」で,準備に時間をかけています.
1. ほぼ全ての例をコードに基づいて説明しています.本書掲載のコードはサポートサイト([ここ](#コード))でも公開しています(使用方法は2.6節を参照).ただし,コードは自分で入力して実行することを勧めます.
1. ほぼ全ての例をコードに基づいて説明しています.本書掲載のコードはサポートサイト([ここ](#コード))でも公開しています(使用方法は2.6節を参照).
1. 第2部「機械学習」では,ほぼ全ての課題をRとPythonで解決し,同じ結果を得ることを試みています.

## 目次
Expand Down
19 changes: 2 additions & 17 deletions code/Python-notebook/ch08/08-colab.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,8 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# 08"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# Google Colaboratoryの環境設定\n",
"!pip install -U scikit-learn | tail -n 1"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# 08\n",
"\n",
"## 8.1 ブドウの生育条件とワインの価格"
]
},
Expand Down
19 changes: 2 additions & 17 deletions code/Python-notebook/ch10/10-colab.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,8 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# 10"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# Google Colaboratoryの環境設定\n",
"!pip install -U scikit-learn | tail -n 1"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# 10\n",
"\n",
"## 10.1 2値分類の性能指標\n",
"\n",
"### 10.1.1 陽性と陰性"
Expand Down
1 change: 1 addition & 0 deletions code/R-notebook/ch03/03-colab.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"outputs": [],
"source": [
"# Google Colaboratoryの環境設定\n",
"options(Ncpus = 2)\n",
"install.packages(c(\"furrr\", \"keras\", \"proxy\"))"
]
},
Expand Down
1 change: 1 addition & 0 deletions code/R-notebook/ch04/04-colab.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"outputs": [],
"source": [
"# Google Colaboratoryの環境設定\n",
"options(Ncpus = 2)\n",
"install.packages(c(\"exactci\", \"ggmosaic\", \"pastecs\", \"psych\", \"vcd\"))"
]
},
Expand Down
1 change: 1 addition & 0 deletions code/R-notebook/ch05/05-colab.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"outputs": [],
"source": [
"# Google Colaboratoryの環境設定\n",
"options(Ncpus = 2)\n",
"install.packages(\"caret\")"
]
},
Expand Down
1 change: 1 addition & 0 deletions code/R-notebook/ch07/07-colab.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"outputs": [],
"source": [
"# Google Colaboratoryの環境設定\n",
"options(Ncpus = 2)\n",
"install.packages(c(\"caret\", \"doParallel\", \"pastecs\"))"
]
},
Expand Down
1 change: 1 addition & 0 deletions code/R-notebook/ch08/08-colab.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"outputs": [],
"source": [
"# Google Colaboratoryの環境設定\n",
"options(Ncpus = 2)\n",
"install.packages(c(\"caret\", \"ggfortify\", \"glmnet\", \"glmnetUtils\", \"leaps\", \"neuralnet\", \"psych\"))"
]
},
Expand Down
1 change: 1 addition & 0 deletions code/R-notebook/ch09/09-colab.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"outputs": [],
"source": [
"# Google Colaboratoryの環境設定\n",
"options(Ncpus = 2)\n",
"install.packages(c(\"caret\", \"e1071\", \"furrr\", \"psych\", \"randomForest\", \"rpart.plot\", \"xgboost\"))"
]
},
Expand Down
1 change: 1 addition & 0 deletions code/R-notebook/ch10/10-colab.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"outputs": [],
"source": [
"# Google Colaboratoryの環境設定\n",
"options(Ncpus = 2)\n",
"install.packages(c(\"caret\", \"e1071\", \"PRROC\", \"rpart.plot\"))"
]
},
Expand Down
1 change: 1 addition & 0 deletions code/R-notebook/ch11/11-colab.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"outputs": [],
"source": [
"# Google Colaboratoryの環境設定\n",
"options(Ncpus = 2)\n",
"install.packages(c(\"h2o\", \"keras\"))"
]
},
Expand Down
3 changes: 2 additions & 1 deletion code/R-notebook/ch12/12-colab.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"outputs": [],
"source": [
"# Google Colaboratoryの環境設定\n",
"system(\"sudo apt install -y libcurl4-openssl-dev libv8-dev r-cran-rcppeigen\")\n",
"system(\"apt-get install -y libcurl4-openssl-dev libv8-dev r-cran-rcppeigen\")\n",
"options(Ncpus = 2)\n",
"install.packages(c(\"caret\", \"fable\", \"feasts\", \"prophet\", \"tsibble\", \"urca\"))"
]
},
Expand Down
1 change: 1 addition & 0 deletions code/R-notebook/ch13/13-colab.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"outputs": [],
"source": [
"# Google Colaboratoryの環境設定\n",
"options(Ncpus = 2)\n",
"install.packages(c(\"factoextra\", \"gplots\", \"igraph\"))\n",
"devtools::install_github(\"vqv/ggbiplot\")"
]
Expand Down

0 comments on commit aaccd64

Please sign in to comment.