-
Notifications
You must be signed in to change notification settings - Fork 75
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
Parameter optimization improve documentation #569
Comments
I'm currently playing with optimization, it works nice but it does have its space for improvement.
|
I'd rather keep it here since the experiments here use it.
I think it would take too long to run anything interesting.
The parameter optimization framework does not have this bug, the program being optimized has this bug. The optimization framework gives the experiment it's parameters, and accepts in return a score. It assumes that the experiment is splitting the dataset into train/eval/test.
Totally doable. The framework has an interface for adding new methods.
I found NNI to be complicated. Its tailored for large & long running deep learning networks. We can use it if you can figure out how to make the HTM-based experiments interface with it. |
Hi all,
|
the current way is to optimize parameters in python (all code has a py wrapper/equivalent). Find the best params, then apply them to your c++ only code. If you have a custom c++ code, you're out of luck and need to do one of:
|
@breznak writing a python wrapper for such codes, which have to be optimized, is not an intelligent way. I think, the optimization procedure, independent on which programming languages it is written, should work like that:
I think, we can do it well in c++. |
I think python is a pretty good choice for the optimization framework. This repo does C++ & Python, and we have a Py wrapper for all of the c++ code; py is a good prototyping language; param optimization is not a main goal of this repo, so the code is "just" a helper/side project; and the code is rather lean&clean written in py and is flexible to change. And most of all, in the parameter optimization, we don't (primarily) care about speed, but results (which can then be used for a c++ implementation). So the problem is really just for 3rd party code that is written in c++ only.
you're right that a generic method for setting up classes and theirs params and evaluating would be nice. Your description is correct but on a very high-level. The devil is in the details:
I'm not sure it's worth it given the existing solutions, but I'll be happy to review PRs or advise in the process. |
@breznak thank for your explain! I am sure that python is good for automation. But I really do not understand why we need it for optimizing because writing python wrapper is unnecessary double works for c++ user! |
it would be the same the other way around. If we had optimization in c++, someone would have to write a wrapper/bindings for python. The explanation why is simple, someone (David) wrote it in Py, and it was imho the better language to choose for a prototyping task. |
The text was updated successfully, but these errors were encountered: