-
Notifications
You must be signed in to change notification settings - Fork 25
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
Updated tuner #323
Updated tuner #323
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good, just some style feedback
cpmpy/tools/tune_solver.py
Outdated
i = 0 | ||
if max_tries is None: | ||
max_tries = len(combos) | ||
while len(combos) and i < max_tries: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i dont really like the config_idx below and this 'while', it should just be a simple for? If you want randomized order, maybe something like for i, param_dict in rand.shuffle(param_combinations(self.all_params)):
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah yes, this tuner is indeed much simpler to code, updated
Nice, thanks! |
Update our hyperparameter tuner and added some more documentation.
Also implemented a more naive grid search so we can easily compare the implementations.
The new hyperparameters for OR-tools are chosen according to issue #138. However, for some parameters no upper bound is given by the sat_parameters.proto file... (i.e., for example
cp_model_probing_level
).