Skip to content

improve time complexity of IntersectionSearchSpace #5949#5981

Closed
GittyHarsha wants to merge 1 commit intooptuna:masterfrom
GittyHarsha:master
Closed

improve time complexity of IntersectionSearchSpace #5949#5981
GittyHarsha wants to merge 1 commit intooptuna:masterfrom
GittyHarsha:master

Conversation

@GittyHarsha
Copy link
Copy Markdown
Contributor

Motivation

Fix issue #5949

Description of the changes

Removed this line

trials_of_interest = [trial for trial in trials if trial.state in states_of_interest]

and adding filtering logic inside the for-loop

@GittyHarsha
Copy link
Copy Markdown
Contributor Author

GittyHarsha commented Feb 17, 2025

Hi @not522, would you mind reviewing this PR?
I am seeing failed tests which are may not be related to optuna/search_space
image

@nzw0301
Copy link
Copy Markdown
Member

nzw0301 commented Feb 17, 2025

I think this PR change causes the test errors. Could you check if your change only improves the speed?

@nzw0301 nzw0301 added the code-fix Change that does not change the behavior, such as code refactoring. label Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code-fix Change that does not change the behavior, such as code refactoring.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants