Path: blob/master/chapter04_classification-and-regression.ipynb
709 views
Kernel: Python 3
This is a companion notebook for the book Deep Learning with Python, Third Edition. For readability, it only contains runnable code blocks and section titles, and omits everything else in the book: text paragraphs, figures, and pseudocode.
If you want to be able to follow what's going on, I recommend reading the notebook side by side with your copy of the book.
The book's contents are available online at deeplearningwithpython.io.
In [0]:
In [0]:
In [0]:
Classification and regression
Classifying movie reviews: A binary classification example
The IMDb dataset
In [0]:
In [0]:
In [0]:
In [0]:
In [0]:
In [0]:
Preparing the data
In [0]:
In [0]:
In [0]:
Building your model
In [0]:
In [0]:
Validating your approach
In [0]:
In [0]:
In [0]:
In [0]:
In [0]:
In [0]:
In [0]:
In [0]:
Using a trained model to generate predictions on new data
In [0]:
Further experiments
Wrapping up
Classifying newswires: A multiclass classification example
The Reuters dataset
In [0]:
In [0]:
In [0]:
In [0]:
In [0]:
In [0]:
Preparing the data
In [0]:
In [0]:
In [0]:
Building your model
In [0]:
In [0]:
Validating your approach
In [0]:
In [0]:
In [0]:
In [0]:
In [0]:
In [0]:
In [0]:
In [0]:
Generating predictions on new data
In [0]:
In [0]:
In [0]:
In [0]:
A different way to handle the labels and the loss
In [0]:
In [0]:
The importance of having sufficiently large intermediate layers
In [0]:
Further experiments
Wrapping up
Predicting house prices: a regression example
The California Housing Price dataset
In [0]:
In [0]:
In [0]:
In [0]:
Preparing the data
In [0]:
In [0]:
Building your model
In [0]:
Validating your approach using K-fold validation
In [0]:
In [0]:
In [0]:
In [0]:
In [0]:
In [0]:
In [0]:
In [0]:
In [0]:
Generating predictions on new data
In [0]: