Bag of ML Words

ML = Machine Learning, Music Love, and Miscellaneous things in daily Livings

2019-04-01から1ヶ月間の記事一覧

ディレクトリ数、ファイル数を再帰的に数える

ファイル数 find <directory> -type f | wc -l ディレクトリ数 find <directory> -type d | wc -l</directory></directory>

Chainerでlearning rateを任意に操作

qiita.com これに書いてあるとおりですが、やり方わかって実際動いたので貼ってみる。 class LrScheduler(extension.Extension): trigger = (1, 'epoch') def __init__(self, base_lr, epochs, optimizer_name='main', lr_name='lr'): self._base_lr = base_…