keras-tuner icon indicating copy to clipboard operation
keras-tuner copied to clipboard

Error loading pickle file with best hyperparameters

Open sujoyrc opened this issue 6 months ago • 0 comments

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

sujoyrc avatar Aug 02 '24 18:08 sujoyrc