Concepts / Accessing the Source Code

Accessing the Source Code

The book's code examples are available for download.

  • Programming

Begin with the Downloadable Examples

When you work through the book's deep learning material, you do not have to reproduce every example from the printed text yourself. The book's code examples are available for download. This gives you a direct way to obtain the examples and then work with them in the format in which they are provided.

Key point

The downloadable examples are Jupyter notebooks, and they are available from both the companion website and GitHub.

Follow the Two Download Routes

There are two locations to remember. One route begins at the companion website. The other route begins at GitHub. Both routes lead you to the book's downloadable examples. The important distinction is the starting location, not a difference in the format of the examples: the examples are provided as Jupyter notebooks in either case.

LearnerCompanion websiteJupyter notebooksdownloadable examplesGitHubgo to one locationor go to the otherlocate and downloadlocate and download
Where do you go, and what path do you follow, to locate the code examples?
Best practice

If you are looking for an example, first identify which of the two stated locations you are using: the companion website or GitHub. Then look for the downloadable Jupyter notebooks rather than expecting the examples to be available only in the printed book.

Recognize the Notebook Format

Definition

A Jupyter notebook is the format used for the book's downloadable code examples.

The format matters because it tells you what kind of downloadable material to look for. The source material does not describe the examples as a collection of unspecified files; it identifies them specifically as Jupyter notebooks. Therefore, when you access the examples through the companion website or GitHub, recognizing a Jupyter notebook is part of recognizing that you have found the intended downloadable examples.

Bookdeep learning materialCompanion websitedownload locationCode examplesJupyter notebooksGitHubdownload locationprovides downloadable examplesoffers access tooffers access to
How are the book, its two access locations, and the downloadable examples connected?

Trace a Retrieval Decision

Worked example

Choosing Where to Look

You are working through the deep learning material and want the book's code examples. How should you identify the correct resource and access location?

  1. 1
    Identify the resource

    You are looking for the book's downloadable code examples, not for a requirement to reproduce every example from the printed text.

  2. 2
    Identify the format

    The examples are provided as Jupyter notebooks. This is the format you should expect to find.

  3. 3
    Choose a location

    Use either the companion website or GitHub. Both are stated download locations for the examples.

  4. 4
    Confirm the result

    The resource you are seeking is the downloadable collection of Jupyter notebooks associated with the book's examples.

Result

Look for the book's downloadable Jupyter notebooks through either the companion website or GitHub.

This decision process prevents a common search error: treating the printed book as the only place where the examples exist. The book points you toward downloadable examples, and the companion website and GitHub provide the two stated places to find them.

Mistakes Beginners Make

  • Common mistake

    Looking only in the printed text for the complete code examples.

    What it looks like

    You try to reproduce every example from the printed material instead of checking for the downloadable examples.

    Why it fails

    The book's code examples are available for download.

    Do this instead

    Use the companion website or GitHub to locate the downloadable examples.

  • Common mistake

    Remembering only one download location.

    What it looks like

    You know about the companion website but do not check GitHub, or you know about GitHub but do not remember the companion website.

    Why it fails

    The examples are available in both locations.

    Do this instead

    Remember the pair: companion website and GitHub.

  • Common mistake

    Failing to identify the expected file format.

    What it looks like

    You search without recognizing that the downloadable examples are Jupyter notebooks.

    Why it fails

    Jupyter notebook is the stated format of the examples.

    Do this instead

    Use Jupyter notebooks as the format clue when identifying the downloaded examples.

Practice the Search Path

EASY

Imagine that you need the code examples for a section of the deep learning material. State the resource format you should look for and name both locations where the examples are available.

Hints
  • The format is a type of notebook.
  • One location is the companion website.
  • The other location is GitHub.

What do you think happens?

Before checking the answer, what should you expect the downloadable examples to be?

  • Jupyter notebooks

  • Only printed passages

  • An unspecified format

Reveal answer
Answer:

Jupyter notebooks

The source identifies Jupyter notebooks as the format of the book's downloadable examples. It also identifies the companion website and GitHub as download locations.

Remember the Access Pattern

  1. 1
    The book's code examples are available for download. The downloadable examples are provided as Jupyter notebooks. You can find them through two locations: the companion website and GitHub. When you need an example, identify the notebook format and then use either of those locations to access it.

Key Takeaways

  • The book's code examples are available for download.
  • The downloadable examples are provided as Jupyter notebooks.
  • The companion website is one location for the examples.
  • GitHub is another location for the examples.
  • You can identify the intended resources by combining the two locations with the Jupyter notebook format.

Related concepts

More concepts starting with A