Skip to content

add default optimization direction for 'fitness' and 'cost' #323

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

Merged
merged 1 commit into from
Jul 16, 2025

Conversation

benvanwerkhoven
Copy link
Collaborator

As we extend to more optimization objectives and explore constrained optimization it happens more often that we have a user-defined metric that defines the optimization objective. This pull makes it easy to specify the optimization direction, without the need to explicitly specify the direction using the objective_higher_is_better= option of tune_kernel(). Now, if your objective is named "fitness" Kernel Tuner assumes maximization and for objectives named "cost" or "loss" minimization is assumed.

As we extend to more optimization objectives and explore constrained optimization it happens more often that we have a user-defined metric that defines the optimization objective. This pull makes it easy to specify the optimization direction, without the need to explicitly specify the direction using the  ``objective_higher_is_better=`` option of ``tune_kernel()``. Now, if your objective is named ``"fitness"`` Kernel Tuner assumes maximization and for objectives named ``"cost"`` or ``"loss"`` minimization is assumed.
Copy link

sonarqubecloud bot commented Jul 9, 2025

@stijnh stijnh assigned stijnh and unassigned stijnh Jul 16, 2025
@stijnh
Copy link
Member

stijnh commented Jul 16, 2025

Looks good to me!

@stijnh stijnh merged commit b78d909 into master Jul 16, 2025
4 checks passed
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

Successfully merging this pull request may close these issues.

2 participants