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

Updated tuner #323

Merged
merged 11 commits into from
Jun 26, 2023
Merged

Updated tuner #323

merged 11 commits into from
Jun 26, 2023

Conversation

IgnaceBleukx
Copy link
Collaborator

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).

@IgnaceBleukx IgnaceBleukx requested a review from tias May 30, 2023 16:40
@JoD JoD added the next release Needed for next release label Jun 19, 2023
Copy link
Collaborator

@tias tias left a 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/solvers/ortools.py Outdated Show resolved Hide resolved
i = 0
if max_tries is None:
max_tries = len(combos)
while len(combos) and i < max_tries:
Copy link
Collaborator

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)):?

Copy link
Collaborator Author

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

docs/solver_parameters.md Outdated Show resolved Hide resolved
@tias
Copy link
Collaborator

tias commented Jun 26, 2023

Nice, thanks!

@tias tias merged commit c886eec into master Jun 26, 2023
@tias tias deleted the updated_tuner branch June 26, 2023 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
next release Needed for next release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants