Code Monkey home page Code Monkey logo

python-machine-learning-book-3rd-edition's Introduction

Python Machine Learning (3rd Ed.) Code Repository

Python 3.6 License

Code repositories for the 1st and 2nd edition are available at

Python Machine Learning, 3rd Ed.

to be published December 12th, 2019

Paperback: 770 pages
Publisher: Packt Publishing
Language: English

ISBN-10: 1789955750
ISBN-13: 978-1789955750
Kindle ASIN: B07VBLX2W7

Links

Table of Contents and Code Notebooks

Helpful installation and setup instructions can be found in the README.md file of Chapter 1

Please note that these are just the code examples accompanying the book, which we uploaded for your convenience; be aware that these notebooks may not be useful without the formulae and descriptive text.

  1. Machine Learning - Giving Computers the Ability to Learn from Data [open dir]
  2. Training Machine Learning Algorithms for Classification [open dir]
  3. A Tour of Machine Learning Classifiers Using Scikit-Learn [open dir]
  4. Building Good Training Sets – Data Pre-Processing [open dir]
  5. Compressing Data via Dimensionality Reduction [open dir]
  6. Learning Best Practices for Model Evaluation and Hyperparameter Optimization [open dir]
  7. Combining Different Models for Ensemble Learning [open dir]
  8. Applying Machine Learning to Sentiment Analysis [open dir]
  9. Embedding a Machine Learning Model into a Web Application [open dir]
  10. Predicting Continuous Target Variables with Regression Analysis [open dir]
  11. Working with Unlabeled Data – Clustering Analysis [open dir]
  12. Implementing a Multi-layer Artificial Neural Network from Scratch [open dir]
  13. Parallelizing Neural Network Training with TensorFlow [open dir]
  14. Going Deeper: The Mechanics of TensorFlow [open dir]
  15. Classifying Images with Deep Convolutional Neural Networks [open dir]
  16. Modeling Sequential Data Using Recurrent Neural Networks [open dir]
  17. Generative Adversarial Networks for Synthesizing New Data [open dir]
  18. Reinforcement Learning for Decision Making in Complex Environments [open dir]



Raschka, Sebastian, and Vahid Mirjalili. Python Machine Learning, 3rd Ed. Packt Publishing, 2019.

@book{RaschkaMirjalili2019,  
address = {Birmingham, UK},  
author = {Raschka, Sebastian and Mirjalili, Vahid},  
edition = {3},  
isbn = {978-1789955750},   
publisher = {Packt Publishing},  
title = {{Python Machine Learning, 3rd Ed.}},  
year = {2019}  
}

python-machine-learning-book-3rd-edition's People

Contributors

4may avatar elfelround avatar mrtnbrst avatar natowi avatar rasbt avatar vmirly avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

python-machine-learning-book-3rd-edition's Issues

Book summary: update chapter titles

Chapter 17: Synthesizing New Data with Generative Adversarial Networks
Chapter 18: Using Reinforcement Learning for Decision Making in Complex Environments

Ch 17 & 18 new chapter titles

  1. Generative Adversarial Networks for Synthesizing New Data
  2. Reinforcement Learning for Decision Making in Complex Environments

chxx.ipynb vs chxx-notebook.ipynb

Hey @vmirly I noticed that your notebooks are named ch14-notebook.ipynb etc. In contrast, all the previous chapters are named ch12.ipynb etc. Which convention should we adopt? I don't have a strong preference, but we should be consistent.

Ch07: fix the position of the title in the decision-region plot

Original:

plt.text(10.2, -0.5,
         s='OD280/OD315 of diluted wines',
         ha='center', va='center', fontsize=12)

plt.tight_layout()
#plt.savefig('images/07_11.png', dpi=300, bbox_inches='tight')
plt.show()

image

Change:

plt.tight_layout()

plt.text(0, -0.2,
         s='OD280/OD315 of diluted wines',
         ha='center', va='center', fontsize=12,
         transform=axarr[1].transAxes)

image

Ch 12: Filepath fix

Change

zipped_mnist = [f for f in os.listdir('./') if f.endswith('ubyte.gz')]

to

zipped_mnist = [f for f in os.listdir() if f.endswith('ubyte.gz')]

for windows compatibility

Ch18 error

In gridworld.py, line 181, we have. Please fix that.

Screen Shot 2019-11-03 at 3 52 45 PM

Ch 4 New Chapter Title

  1. Building Good Training Sets – Data Preprocessing -> 4. Building Good Training Datasets – Data Preprocessing

range error chapter 15 part 1

hiya,

on chapter 15 part 1

page 526 on book
function conv1d:

for i in range(0, int(len(x)/s),s)

this is a quick fix, only works with current example, if you augment padding by one it wont work,

id recommend this

for i in range(0, int((len(x_padded) - len(w_rot) / s)) + 1, s):

Ch14 diff for Word/PDF files

1

Screen Shot 2019-10-29 at 9 34 30 PM

2

Screen Shot 2019-10-29 at 9 34 54 PM

3

Screen Shot 2019-10-29 at 9 35 17 PM

4

Screen Shot 2019-10-29 at 9 35 29 PM

5

Screen Shot 2019-10-29 at 9 35 44 PM

6

Did you comment out the random seed by accident? Note that the results change.

Screen Shot 2019-10-29 at 9 36 15 PM

7

Screen Shot 2019-10-29 at 9 36 41 PM

8

Screen Shot 2019-10-29 at 9 37 10 PM

9

Screen Shot 2019-10-29 at 9 36 55 PM

10

Screen Shot 2019-10-29 at 9 37 46 PM

11

Screen Shot 2019-10-29 at 9 38 03 PM

#12

Screen Shot 2019-10-29 at 9 38 19 PM

13

Screen Shot 2019-10-29 at 9 38 34 PM

Part 2/3

14

Screen Shot 2019-10-29 at 9 48 50 PM

Part 3/3

15

Screen Shot 2019-10-29 at 9 41 40 PM

16

Screen Shot 2019-10-29 at 9 42 10 PM

Ch 2: Filepath fix

Change

import pandas as pd

df = pd.read_csv('https://archive.ics.uci.edu/ml/'
        'machine-learning-databases/iris/iris.data',
                 header=None,
                 encoding='utf-8')
df.tail()

to

import os
import pandas as pd


s = os.path.join('https://archive.ics.uci.edu', 'ml',
                 'machine-learning-databases', 'iris','iris.data')
print('URL:', s)

df = pd.read_csv(s,
                 header=None,
                 encoding='utf-8')

df.tail()

Ch13 diff for Word/PDF files

Red = old, green = new

Note that the cell with the code output is always shown above the cell with the code for some reason.

1

Screen Shot 2019-10-26 at 11 57 19 AM

2

Screen Shot 2019-10-26 at 11 58 04 AM

3

Screen Shot 2019-10-26 at 11 58 26 AM

4

Screen Shot 2019-10-26 at 11 59 01 AM

5

Screen Shot 2019-10-26 at 11 59 26 AM

6

Screen Shot 2019-10-26 at 11 59 54 AM

7

Screen Shot 2019-10-26 at 12 00 08 PM

8

Screen Shot 2019-10-26 at 12 00 38 PM

9

Screen Shot 2019-10-26 at 12 00 56 PM

10

Screen Shot 2019-10-26 at 12 02 03 PM

PART 2

11

Screen Shot 2019-10-26 at 12 22 49 PM

12

Screen Shot 2019-10-26 at 12 23 28 PM

13

Screen Shot 2019-10-26 at 12 23 42 PM

(also change the figure here)

14

For some reason i got different results, pls double check

Screen Shot 2019-10-26 at 12 24 19 PM

Possible Typo in page 44

however, it does not make the original data set normally distributed

standardization does make the data set normally distributed.

Ch06: correct the ylim in the Accuracy plot

plt.ylim([0.8, 1.0])
plt.tight_layout()
# plt.savefig('images/06_06.png', dpi=300)
plt.show()

change to

plt.ylim([0.8, 1.03])
plt.tight_layout()
# plt.savefig('images/06_06.png', dpi=300)
plt.show()

Ch07: another fix for decision-region plots

Original:

plt.text(-3.5, -5., 
         s='Sepal width [standardized]', 
         ha='center', va='center', fontsize=12)
plt.text(-12.5, 4.5, 
         s='Petal length [standardized]', 
         ha='center', va='center', 
         fontsize=12, rotation=90)

#plt.savefig('images/07_05', dpi=300)
plt.show()

image

Change:

plt.tight_layout()

plt.text(1, -0.2,
         s='Sepal width [standardized]',
         ha='center', va='center', fontsize=12,
         transform=axarr[1, 0].transAxes)

plt.text(-0.12, 0,
         s='Petal length [standardized]',
         ha='center', va='center',
         fontsize=12, rotation=90,
         transform=axarr[0, 0].transAxes)

image

ch3,p56,“niter” parameter missed

with the initialized of the Perceptron class , the book mentioned the parameter "n_iter", the i cannot found in the code, and the code of 2nd has it. so i think it should be a issue
QQ20200217-112213
QQ20200217-112200

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.