2017-03-31から1日間の記事一覧
追記でテキストファイルに書き込み f = open("test.txt","a") f.write("hoge\n") f.close() qiita.com
import os.path os.path.exists(path)#True or False ファイルやディレクトリの有無を調べる - Python Tips
>>>from collections import * >>> # Basic example >>> Point = namedtuple('Point', ['x', 'y']) >>> p = Point(11, y=22) # instantiate with positional or keyword arguments >>> p[0] + p[1] # indexable like the plain tuple (11, 22) 33 >>> x, y =…
判定処理を行う入力画像の前処理 1.画像の周囲を切り落とす(Cropping) 2.画像のダイナミックレンジを平準化する(Whitening)トレーニングデータとして入力する画像にする前処理 1.画像の周囲をランダムに切り落とす(Random Cropping) 2.画像をランダムに左右…