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

Remove hyperparameter in a configuration space #332

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

herilalaina
Copy link
Contributor

Closes #267.

This PR creates a new feature that allows removing a hyperparameter in a configuration space. The implementation is built upon the initial code given by @eddiebergman in the mentioned issue, mainly also to remove the conditions and forbidden clauses referenced by the hyperparameter.

@herilalaina herilalaina changed the title Remove hyperparameter in a confiugration space Remove hyperparameter in a configuration space Jul 7, 2023
Copy link
Contributor

@eddiebergman eddiebergman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be good to have tests for this, I imagine there are possible edge cases where this fails quite drastically

ConfigSpace/conditions.pyx Show resolved Hide resolved
ConfigSpace/util.py Outdated Show resolved Hide resolved
@herilalaina
Copy link
Contributor Author

I have added a few tests to cover different cases. Let me know if you have any specific scenarios that should be included.

@simonprovost
Copy link

@herilalaina where are we with that feature?

@herilalaina
Copy link
Contributor Author

I have added the requested tests already. @eddiebergman is there anything I missed again? :)

@eddiebergman
Copy link
Contributor

Maybe, it just completely slipped my stack. I'll take a look next week when I'm back!

@eddiebergman
Copy link
Contributor

Hi @herilalaina and @simonprovost,

There is an issue in that using Cython 3 to compile ConfigSpace doesn't work anymore as it now expects more rigid typing (of which there are quite a few inconsistencies).

I will manually edit and merge this PR once the PR at #346 is done

@eddiebergman
Copy link
Contributor

Will keep this open in the time being, #346 has been merged

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.

Create easy way to remove hyperparameters
3 participants