Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

WARNING Trial Runner checkpointing failed: cannot pickle 'dict_values' object #204

Open
einarG-1qbit opened this issue Apr 26, 2021 · 3 comments

Comments

@einarG-1qbit
Copy link

einarG-1qbit commented Apr 26, 2021

Hi,
I'm training a custom sklearn model with tune-sklearn and skopt Bayesian.
All works fine, except that in my logs I get the warning:
WARNING Trial Runner checkpointing failed: cannot pickle 'dict_values' object
No other info is provided, just the warning. How do I fix this issue?

I use:
tune-sklearn 0.2.1
ray 1.2.0
sklearn 0.0

I had few session crashes on GCP and I tried to restore the state from ray, however no checkpoints were found.
I guess this pertains to the warning above.

@Yard1
Copy link
Member

Yard1 commented Apr 26, 2021

Does it happen with a different search algo?

@richardliaw
Copy link
Collaborator

I think checkpoint/restore may not work directly with tune-sklearn. However, I would try:

tune-sklearn (latest master, so clone off of github)
pip install ray ==1.3

@einarG-1qbit
Copy link
Author

thanks for the quick reply.
I just tried TuneSearchCV without the parameter search_optimization (default random search)
And there weren't any warnings.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants