Skip to content

ValueError: Could not interpret optimizer identifier: <keras.optimizers.optimizer_v2.adam.Adam object at 0x7fbe77391a00> #486

Description

@ChildishChange

Describe the bug(问题描述)
get a valueError when running deepfm demo

To Reproduce(复现步骤)

# fail and get ValueError: Could not interpret optimizer identifier: <keras.optimizers.optimizer_v2.adam.Adam object at 0x7fbe77391a00>
model.compile(optimizer=tf.keras.optimizers.Adam(learning_rate=learning_rate),
                loss="binary_crossentropy",
                metrics=['accuracy','binary_crossentropy', tf.keras.metrics.AUC(curve='ROC')])

# success
model.compile("adam", "binary_crossentropy",
                metrics=['accuracy','binary_crossentropy',tf.keras.metrics.AUC(curve='ROC')], )

Operating environment(运行环境):

  • python version [3.8]
  • tensorflow version [2.9.1]
  • deepctr version [0.9.1]

Additional context

solution may be: https://stackoverflow.com/questions/70658010/could-not-interpret-optimizer-identifier-formatidentifier

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions