Giter VIP home page Giter VIP logo

haodong1228 / book-ml Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kokensha/book-ml

1.0 0.0 0.0 125.27 MB

書籍「今すぐ試したい!機械学習・深層学習(ディープラーニング)画像認識プログラミングレシピ」のソースコードを配布するレポジトリです。

License: MIT License

Jupyter Notebook 99.86% Dockerfile 0.01% Python 0.07% CSS 0.01% JavaScript 0.02% HTML 0.04% Shell 0.01%

book-ml's Introduction

book-ml

このレポジトリは、書籍「今すぐ試したい!機械学習・深層学習(ディープラーニング)画像認識プログラミングレシピ」のソースコードを配布するレポジトリです。

アマゾンのリンクはこちらです:https://www.amazon.co.jp/dp/4798056839

book-ml

book-ml

フォルダーの説明

  • Colaboratory:本書で使うJupyter NoteBookです。Google Colaboratoryにインポートして実行してください。インポートする方法は本書の96ページをご参照ください。
  • docker-python3-flask-ml-app:04-05 節、04-06 節、05-01節、05-03 節のサンプルコードと関連するウェブアプリケーションプログラムソースコード。PCの場合はdocker-compose upで起動させることができます(Dockerが必要です)。詳しくは本書の267ページの「Column」の説明をご参照ください。
  • python:04-02 節と05-04 節と05-08 節と07-02 節のPythonプログラムのソースコード
  • scripts:04-02 節のコマンドなどをまとめたファイル

詳しくは、それぞれのフォルダの中身をご確認ください。

Pull Request歓迎!

著者のTwitter:https://twitter.com/kokensha_tech

注意事項

ページ259

python3 app.pyをそのまま実行すると、学習済モデルファイルが見つからずに、正常に実行でできません。これはデータの権利の考慮のため、04-06の学習済モデルファイルをGitHubに配布していないのが原因です。

対応方法:270ページからの04-06節のレシピの手順を沿って、まず猫犬の認識用の学習済モデルファイルを作成して、手動で配置してください。

配置場所は book-ml/docker-python3-flask-ml-app/app/chainer_dogscats/ の配下です。

04-06で学習のために使用するデータは、下記のURL(Kaggle)から取得することが可能です(ユーザー登録が必要)。

訂正

ページ108

一番下のOutputの日本語

誤:「False 花は薔薇ですね」

正:「False 花は薔薇ではないですね」

ページ147、ページ148、ページ231

Pythonプログラムのimportのセクションに下記の一行が追記します(配布しているプログラムの方ではすでに含まれていますので、配布プログラムを利用する場合は、追加不要)。

from mpl_toolkits.mplot3d import Axes3D

ページ175

Pythonプログラム (配布しているプログラムの方は正しいプログラムになっております、配布プログラムを利用する場合は、修正不要)。

誤:x.shape[:2]

正:image.shape[:2]

ページ226

誤:図1 scikit-learn MNIST手書きデータ

正:図1 scikit-learn 手書きデータ

誤:左側データのタイトル iris.data/データ

正:左側データのタイトル digits.data/データ

第5章 第3節(ページ:366)、第4節(ページ:379) 転移学習のColabについて

当時執筆時(2018年12月)、ColabのデフォルトのTensorFlowは当時の最新版1.xを使っていましたが、今はColabのデフォルトのTensorFlowのバージョンは2.xになっています。

当該転移学習のプログラムは、TensorFlow1.xのバージョンを使用する必要があります。 そのため、Colabの一番先頭で、TensorFlow1.xを利用すると宣言する必要があります。 Colabのプログラムの先頭に、下記を追加、実行する必要があります。

%tensorflow_version 1.x

本書の姉妹プロジェクト

機械学習・深層学習レッスン

https://github.com/Kokensha/machine_learning_deep_learning_lessons

川島のITスキルサロンのRepo

https://github.com/kawashimaken/salon

book-ml's People

Contributors

kawashimaken avatar

Stargazers

haodong1228 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.