Concepts / Deep-Learning Frameworks

Deep-Learning Frameworks

The framework check has a direct answer: the course examples use Keras.

  • Programming

Two Checks Before the Examples

Before working through the deep-learning examples, check two parts of your software environment. First, identify the framework used by the course code. Second, confirm that you have access to the expected operating-system environment. The course uses Keras and expects access to a UNIX machine.

What do you think happens?

Which pair correctly describes the course environment?

  • Keras and a UNIX machine

  • Keras and Windows as the recommended environment

  • An unspecified framework and a UNIX machine

Reveal answer
Answer:

Keras and a UNIX machine

The course examples use Keras, and the course requires access to a UNIX machine. Windows is possible, but it is not recommended.

Keras in the Course Examples

Definition

Keras is the open-source, free-to-download deep-learning framework used by the course examples.

For this course, identifying Keras is an environment check rather than a programming task by itself. When the course refers to its deep-learning code examples, Keras is the framework those examples use. This tells you which framework the course expects you to work with before you begin the examples.

Key point

The framework check has a direct answer: the course examples use Keras.

UNIX and Windows Compared

The course requires access to a UNIX machine. This is the recommended operating-system environment for working through the course. Windows can also be used, so it is a possible option, but the source material explicitly says that Windows is not recommended.

UNIXRequired accessRecommendedWindowsPossible optionNot recommendedcourse preferencecourse guidance
What is the difference between the operating-system environments supported by the course, and which one is recommended?
EnvironmentCan it be used?Course recommendation
UNIXYesRequired access and recommended
WindowsYesPossible, but not recommended

The course distinguishes between the expected UNIX environment and the possible but not recommended Windows option.

A Readiness Decision

Worked example

Checking a Learner's Environment

A learner wants to begin the deep-learning examples. They need to identify the course framework and check whether their operating-system environment matches the course recommendation.

  1. 1
    Check the framework

    The course examples use Keras, so Keras is the framework to identify for the course.

  2. 2
    Check operating-system access

    The course requires access to a UNIX machine.

  3. 3
    Interpret a Windows setup

    Windows is possible, but it is not the recommended environment for the course.

  4. 4
    Find setup instructions

    Appendix A contains the complete setup instructions.

Result

The clearest match for the course environment is Keras with access to a UNIX machine. A Windows setup is possible but not recommended.

Notice the order of the decision. The framework question and the operating-system question are separate: Keras identifies the deep-learning framework, while UNIX or Windows identifies the available operating-system environment. A learner should not treat Windows being possible as meaning that it is the recommended choice.

Setup Guidance and Limits

Best practice

Before beginning the deep-learning examples, record two answers: Keras is the framework, and UNIX is the recommended operating-system environment. If your environment is Windows, remember that the course describes it as possible but not recommended.

Mistakes in Environment Checks

  • Common mistake

    Assuming the course uses an unspecified or interchangeable deep-learning framework.

    What it looks like

    A learner begins the examples without identifying which framework the course code uses.

    Why it fails

    The course examples specifically use Keras.

    Do this instead

    Identify Keras as the open-source, free-to-download framework used by the course examples.

  • Common mistake

    Treating Windows as the recommended environment because it is possible to use.

    What it looks like

    A learner concludes that Windows and UNIX have the same recommendation status.

    Why it fails

    The course requires access to a UNIX machine and states that Windows is possible but not recommended.

    Do this instead

    Distinguish possibility from recommendation: UNIX is recommended, while Windows is possible but not recommended.

  • Common mistake

    Looking for setup instructions only in the framework description.

    What it looks like

    A learner expects this topic alone to provide the complete setup procedure.

    Why it fails

    The complete setup instructions are located in Appendix A.

    Do this instead

    Use Appendix A when you need the complete setup instructions.

Environment Check Practice

EASY

Write a two-line environment check for yourself. On the first line, name the deep-learning framework used by the course examples. On the second line, state whether your operating-system environment is UNIX or Windows and classify it as recommended or possible but not recommended.

Hints
  • The framework name is given directly in the course description.
  • Do not confuse an option being possible with that option being recommended.
  1. 1
    A correct check should identify Keras as the framework. It should also state that UNIX is the required and recommended environment for the course, while Windows is possible but not recommended.

Key Takeaways

  • The course code examples use Keras.
  • Keras is described as open-source and free to download.
  • The course requires access to a UNIX machine.
  • Windows is possible, but it is not recommended.
  • Appendix A contains the complete setup instructions.

More concepts starting with D