Pythonで再帰的に全てのファイルやディレクトリのリストを作るときは、os.walk()とジェネレーター(yield)を組み合わせた関数を作っとくと楽。 $ tree /tmp/test /tmp/test ├── 1 │ ├── a │ │ ├── A │ │ ├── B │ │ └── hoge │ └── b │ ├── A │ ├── B │ └── hoge └── 2 ├── bar ├── c │ ├── buzz │ └── fizz └── foo 9 directories, 6 files import os def find_all_files(directory): for root, dirs, files in os.walk(directory): yield root for file in files
最近、Nexus6を買って、これはすげーなと思って感動しているわけです。 iPhone 3Gを発売日に徹夜で並んで買ってから、なんだかんだいってずーとメイン機はiPhoneでした。Androidは、初代Xperiaから触ってはいましたが、ずっとiOSのほうがいいと思ってメインにはならなかった状態から、4.4あたりから完成度が劇的にあがり、5.0になって完全にAndroidのほうがいいと思うようになってしまったのです。 そんなAndroid5.0(lollipop)を触ってみて、「もしかしたらこんなことをGoogleは考えているのではないか?」というのがいくつかあったので、妄想レベルで書いています。 一言でいうと「アプリ時代の終わり」です。 ちなみにこんな感じのホーム画面にしています。 アプリを立ち上げる時代の終わり? まず、Googleは、アプリを立ち上げさせるという行為自体を減らそうとし
最近 pylearn2 や theano を使って Deep Learning を少しずつ勉強しているのだが、いろいろと試す場合には処理時間が結構ネックになる。とくに画像処理をしたい場合には GPU 計算ができないとちょっと現実的でない。 とはいえ、そこそこの PC + GPU を買おうと思うとけっこういいお値段するし、PC を自分で維持・メンテするのもめんどくさい。少し考えた結果、EC2 上に環境を構築することにした。何度かやってみてうまくいくようになったので、手順をまとめておく。 補足 善意の方がつくった pylearn2 プリインストール済みの AMI もいくつか公開されているので、 気にならない方はそっち使ったほうが早い。 Amazon EC2 インスタンスの作成 以下のリンクに スクリーンショット付きでインスタンス作成 / theano のインストール方法が記載されている。前提知
(This is a guest post by Ilya Sutskever on the intuition behind deep learning as well as some very useful practical advice. Many thanks to Ilya for such a heroic effort!) Deep Learning is really popular these days. Big and small companies are getting into it and making money off it. It’s hot. There is some substance to the hype, too: large deep neural networks achieve the best results on speech re
How to build and run your first deep learning network Step-by-step instruction on training your own neural network. When I first became interested in using deep learning for computer vision I found it hard to get started. There were only a couple of open source projects available, they had little documentation, were very experimental, and relied on a lot of tricky-to-install dependencies. A lot of
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く