Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pull request for code updation #177

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
274 changes: 224 additions & 50 deletions code/chapter-2/1-predict-class.ipynb

Large diffs are not rendered by default.

583 changes: 266 additions & 317 deletions code/chapter-2/2-colab-what-does-my-neural-network-think.ipynb

Large diffs are not rendered by default.

This file was deleted.

6 changes: 3 additions & 3 deletions code/chapter-2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ We also hear the motivating personal journey of **François Chollet**, the creat

Run the following commands prior to running the scripts in this directory:

`$ pip install tensorflow==2.0.0`
`$ pip install tensorflow==2.12.0`

`$ pip install keras -U`

`$ pip install numpy -U`

`$ pip install matplotlib -U`

`$ pip install tf-explain==0.1.0`
`$ pip install tf-explain==0.3.1`

`$ pip install pillow -U`

Expand All @@ -27,7 +27,7 @@ Run the following commands prior to running the scripts in this directory:
The following Jupyter Notebooks are provided. Please go through the code in the given order:

1. [1-predict-class.ipynb](https://github.com/practicaldl/Practical-Deep-Learning-Book/blob/master/code/chapter-2/1-predict-class.ipynb): We examine the image classification task, to answer the question “Does the image contain X” where X can be a cat, dog or any other category/class of objects.
2. [2-what-does-my-neural-network-think.ipynb](https://github.com/practicaldl/Practical-Deep-Learning-Book/blob/master/code/chapter-2/2-what-does-my-neural-network-think.ipynb): We try to understand why the neural network made a particular prediction. We use visualization (a heatmap) to understand the decision-making that is going on within the network. Using color, we visually identify the areas within an image that prompted a decision. “Hot” spots, represented by warmer colors (red, orange, and yellow) highlight the areas with the maximum signal, whereas cooler colors (blue, purple) indicate low signal. (To run on Colab, use [2-colab-what-does-my-neural-network-think.ipynb](https://github.com/practicaldl/Practical-Deep-Learning-Book/blob/master/code/chapter-2/2-colab-what-does-my-neural-network-think.ipynb)) instead. For the Colab version you will be prompted to restart the runtime and rerun the code after `TensorFlow 2.0.0` is installed through `pip install tensorflow==2.0.0`.)
2. [2-what-does-my-neural-network-think.ipynb](https://github.com/practicaldl/Practical-Deep-Learning-Book/blob/master/code/chapter-2/2-what-does-my-neural-network-think.ipynb): We try to understand why the neural network made a particular prediction. We use visualization (a heatmap) to understand the decision-making that is going on within the network. Using color, we visually identify the areas within an image that prompted a decision. “Hot” spots, represented by warmer colors (red, orange, and yellow) highlight the areas with the maximum signal, whereas cooler colors (blue, purple) indicate low signal. (To run on Colab, use [2-colab-what-does-my-neural-network-think.ipynb](https://github.com/practicaldl/Practical-Deep-Learning-Book/blob/master/code/chapter-2/2-colab-what-does-my-neural-network-think.ipynb)) instead. For the Colab version you will be prompted to restart the runtime and rerun the code after `TensorFlow 2.12.0` is installed through `pip install tensorflow==2.12.0`.)

### Scripts

Expand Down
Loading