Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to run Spearmint in some "manual" mode #82

Closed
cuihenggang opened this issue Sep 13, 2016 · 5 comments
Closed

Is it possible to run Spearmint in some "manual" mode #82

cuihenggang opened this issue Sep 13, 2016 · 5 comments

Comments

@cuihenggang
Copy link

cuihenggang commented Sep 13, 2016

Hello,

I have been using the Spearmint tool from another codebase (JasperSnoek/spearmint), and I usually use the spearmint-lite interface there. With that interface, I just need to run spearmint-lite.py and it will write the proposed hyperparam choice to a result file. I will then manually run my machine learning application with that proposed hyperparam choice and report back the loss to the result file, and run spearmint-lite.py again to get another proposed hyperparam choice.

If I understand correctly, in this codebase, I can only talk with Spearmint with a callback python script (something like branin.py), and Spearmint will call branin.py to evaluate each hyperparam choice. Since it's very hard for me to launch my machine learning platform with a python script, and I would rather manually run each experiment, I'm wondering is there any way that I can manually run my experiments?

Thank you very much!

@cuihenggang
Copy link
Author

Another way of asking this question:
How can I call Spearmint, instead of having Spearmint call me?

Thank you very much!

@cuihenggang
Copy link
Author

I have figured out how to do that. Thank you!

@mgelbart
Copy link
Member

@cuihenggang: I was just in the middle of writing that we don't currently have this functionality. How did you approach it?

@cuihenggang
Copy link
Author

I actually modified the main.py script to have it read the previous function values and call "chooser.suggest()" to get a new suggestion:
https://github.com/cuihenggang/Spearmint-hips/blob/master/spearmint/mymain.py

I have got rid off all the task and task group stuffs though.

@mgelbart
Copy link
Member

Makes sense. Thanks for sharing the link, others may find it useful.

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

No branches or pull requests

2 participants