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

Test algo can handle broken trials #813

Merged
merged 1 commit into from
Mar 12, 2022

Conversation

bouthilx
Copy link
Member

When the trial is broken it should be considered as such by the
algorithm, it is not pending anymore.

algo.has_observed(broken_trial) should return True.

When the trial is broken it should be considered as such by the
algorithm, it is not pending anymore.

algo.has_observed(broken_trial) should return True.
@bouthilx bouthilx added the ci label Feb 24, 2022
@bouthilx bouthilx added this to the v0.2.3 milestone Feb 24, 2022
and self._trials_info[self.get_id(trial)][1] is not None
if not self.has_suggested(trial):
return False
return self._trials_info[self.get_id(trial)][0].status in (
Copy link
Collaborator

Choose a reason for hiding this comment

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

Why does this check only the first index? Is it always a len(1) sequence? If there were to be duplicates, should this do anything different?

Copy link
Member Author

Choose a reason for hiding this comment

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

It's a bad design. I'd like to address this with a more formal in-memory storage for algorithms are shortly described here: #802.

The format is

self._trials_info[some_trial_id] = (trial_object, trial_objective)

Previously we only looked at the objective at index 1, now we only look at the trial at index 0.

@bouthilx bouthilx merged commit 8a13137 into Epistimio:develop Mar 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants