Skip to content

Code example doesn`t work in Basic Concepts of Keras #39

@Taranis71

Description

@Taranis71

Code example doesn`t work in Basic Concepts of Keras

There is a code example in that exercise, that doesn't work.
If you execute the part "Changing Optimization Parameters" the event handler throws the following error:
Argument learning_rate should be float, or an instance of LearningRateSchedule, or a callable (that takes in the current iteration value and returns the corresponding learning rate value). Received instead: learning_rate=1

The problem is caused by this line of code:

Image

To solve the problem change the argument 1 in the learningrates (integer) to 1.0 (float), like this:

Image

After that correction the code examples should work.

I am using the following software components:

  • Browser: Chrome
  • Python IDE: Google Colab

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions