LoginSignup
0
0

More than 3 years have passed since last update.

jupyter notebook の準備

Last updated at Posted at 2020-06-20

利用するもの

ライブラリ 公式サイト
pandas https://pandas.pydata.org/
scikit-learn https://scikit-learn.org/
motplotlib https://matplotlib.org/

Anacondaをインストールして利用

おすすめはAnacondaをインストールする方法。
自動的にインストールされるライブラリのバージョンは2020/06/14時点こんな感じ。

  • pandas: '1.0.1'
  • sklearn: '0.22.1'
  • matplotlib: '3.1.3'

Anacondaをインストール

自分のPCに該当するインストーラをGET!
image.png

ダウンロードできたら実行!
Windows 64bitの場合は↓
Anaconda3-2020.02-Windows-x86_64.exe

image.png
image.png
image.png
image.png
image.png
image.png
image.png
image.png
こんなん出るけど登録しなくても使えるっぽい
image.png

インストールできたらAnacondaを起動

image.png
image.png
image.png
image.png

以下のコードで動作確認。

import pandas
pandas.__version__
import sklearn
from sklearn import datasets
iris = datasets.load_iris()
digits = datasets.load_digits()
print(digits.data)
sklearn.__version__
import matplotlib
import matplotlib.pyplot as plt
plt.plot([1, 2, 3, 4])
plt.ylabel('some numbers')
plt.show()
matplotlib.__version__

image.png

jupyterをブラウザで利用

anacondaがうまくインストールできない方はこちら。
jupyterの公式サイトでjupyterを利用できます。
ただし、ライブラリのバージョンがちょっと低め。

  • pandas: '0.24.2'
  • sklearn: '0.21.3'
  • matplotlib: '3.1.3'

https://jupyter.org/
image.png
image.png
(昔ながらのエディタが好きな方は「Try Classic Notebook」でもOK。)
image.png
image.png
動作確認用のコードが動くか確認。
image.png

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0