Skip to content

Error loading pickle file with best hyperparameters #1021

@sujoyrc

Description

@sujoyrc

Describe the bug

I have a few pickle files created last year / earlier this year which have a hyperparameters pickle file. I am getting an error with this

Failed for  results_splitwise_PVA_WristElbow_GR_SSR_4_1_singers_run_1.pkl  with  No module named 'keras_tuner.engine.hyperparameters.hyperparameters'

To Reproduce
Load a pickle file with keras hyperparameters. Some other pickle files generated later work

In [26]: [type(v) for k,v in temp['split1'].items()]
Out[26]: 
[keras_tuner.src.engine.hyperparameters.hyperparameters.HyperParameters,
 numpy.ndarray,
 numpy.float64,
 numpy.ndarray,
 numpy.float64,
 numpy.ndarray,
 numpy.float64,
 numpy.ndarray,
 numpy.float64]


Expected behavior
Load the model

Additional context

Would you like to help us fix it?
Is it a version issue. If so what is the version

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions