Entries from 2018-01-01 to 1 month

request python まとめ

what is request requestsとはサードパーティ製のhttp通信を行うためのライブラリ これを使用すると、webサイトのデータのダウンロードやrestapiの使用が可能 install cmd pip install requests example ヤフーのニュース一覧ページのhtmlを取得 import requ…

imgaugライブラリを使った機械学習用のdata augmentation

install 通常版 sudo pip install imgaug 最新版 pip install git+https://github.com/aleju/imgaug 必要なもの six numpy scipy scikit-image (pip install -U scikit-image) OpenCV (i.e. cv2) 使い方 すべてのDA手法をお試しするならgenerate_example_ima…

keras 学習済モデルの取り扱い全般まとめ

keras公式の学習済モデル読み込み方法 from keras.applications.inception_v3 import InceptionV3 InceptionV3 = InceptionV3(include_top=False, weights='imagenet', input_tensor=input_tensor) kerasで利用可能なモデル ImageNetで学習した重みをもつ画…

ubuntu16.04でのTensorFlow環境構築でのメモ

TensorFlowのインストール 「libcupti-dev」を入れます。 sudo apt-get install libcupti-dev 「これはNVIDIA CUDAプロファイルツールインタフェースです。このライブラリは高度なプロファイリングのサポートを提供します。」だそうです。(TensorFlowより)…