Skip to Content
Statistics for Machine Learning
book

Statistics for Machine Learning

by Pratap Dangeti
July 2017
Beginner to intermediate
442 pages
10h 8m
English
Packt Publishing
Content preview from Statistics for Machine Learning

Deep neural network classifier applied on handwritten digits using Keras

We are using the same data as we trained the model on previously using scikit-learn in order to perform apple-to-apple comparison between scikit-learn and the deep learning software Keras. Hence, the data loading steps remain the same:

>>> import numpy as np>> import pandas as pd>>> import matplotlib.pyplot as plt>>> from sklearn.datasets import load_digits>>> from sklearn.model_selection import train_test_split>>> from sklearn.preprocessing import StandardScaler>>> from sklearn.metrics import accuracy_score,classification_report

From here onward, we will be using the Keras library modules. Various optimizers are selected though; we will be using Adam in our model. ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Probability and Statistics for Machine Learning

Probability and Statistics for Machine Learning

Jon Krohn

Publisher Resources

ISBN: 9781788295758Supplemental Content