Skip to content

[BUG] testing deep learning base class fails due to optimizer type #3816

@TonyBagnall

Description

@TonyBagnall

Describe the bug

test_deep_estimator_full[keras-adamax] is failing due to a type check in keras. See, for example

https://github.com/sktime/sktime/actions/runs/3495913658/jobs/5855642783

"ValueError: optimizer of type <class 'keras.optimizers.optimizer_v2.adamax.Adamax'> cannot be serialized, it should either be absent/None/str/tf.keras.optimizers.Optimizer object"

it could be that the wrong type of Optimizer is being used, output states

Optimizer = <class 'keras.optimizers.optimizer_experimental.optimizer.Optimizer'>
whereas it is expecting
tf.keras.optimizers.Optimizer

image

I don't want to hack around in the testing suite, I'll let someone who understands it better do that,

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingmodule:teststest framework functionality - only framework, excl specific tests

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions