Giter Club home page Giter Club logo

fundamentals-of-deep-learning-ja's Introduction

実践 Deep Learning


表紙


本リポジトリはオライリー・ジャパン発行書籍『実践 Deep Learning』(原書名『Fundamentals of Deep Learning』)のサポートサイトです。

サンプルコード

サンプルコードの解説は本書籍をご覧ください。

使用方法

サンプルを実行する前に、必要なライブラリをインストールする必要があります。

$ pip install -r requirements.txt

サンプルコードはfdl_exampleの親ディレクトリから実行することを想定しています。 また、fdl_exampleをパッケージとして認識するためにPYTHONPATHを指定する必要があります。

実行例

$ export PYTHONPATH=$PYTHONPATH:.
$ python fdl_example/chapter6/autoencoder_mnist.py 2

第6章の補足

第6章では、matplotlibを使って埋め込みの可視化をしています。 matplotlibを使った可視化をするにはtkライブラリが必要となります。

$ sudo apt-get install python3-tk tk-dev

pyenvなどを使って環境を構築している場合は、上記のコマンドでtkライブラリをインストールした後でpythonをインストールし直す必要があります。

第7章の補足

第7章のサンプルコードを実行するには、 以下のデータが必要となります。

  1. Google News を使って構築した単語の埋め込み表現データ
    • ダウンロードしたファイルを展開後、fdl_exampleの親ディレクトリに配置してください。
  2. CoNLL-2000の品詞データ
    • 上記のリンクからダウンロードできない場合はKaggleのページからダウンロードできます。
      • ダウンロードしたファイルを展開後、conll2000/train.txtconll2000/test.txtをそれぞれdata/pos_data/pos.train.txtdata/pos_data/pos.test.txtに配置してください。

第8章の補足

第8章のサンプルコードを実行するには、bAbiデータセットが必要となります。bAbiプロジェクトページからbAbI Tasks Data 1-20 (v1.2)をダウンロードして展開後、tasks_1-20_v1-2/en-10kdata/babi-en-10kにコピーしてください。

実行環境

日本語版で検証に使用した各ソフトウェアのバージョンは以下のとおりです。

  • OS
    • Ubuntu 16.04 LTS
  • ライブラリ
    • tensorflow 1.4.0
    • scikit-learn 0.19.1
    • scipy 1.0.0
    • matplotlib 2.1.2
    • gensim 3.3.0
    • leveldb 0.194
    • tflearn 0.3.2
    • h5py 2.8.0rc1

正誤表

まだありません。誤植など間違いを見つけた方は、[email protected]までお知らせください。

fundamentals-of-deep-learning-ja's People

Contributors

miyagawa-orj avatar ohtaman avatar sfujiwara avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.