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

Order Space by insertion order #1104

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions src/orion/algo/space/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1152,24 +1152,6 @@ def __repr__(self):
dims = list(self.values())
return "Space([{}])".format(",\n ".join(map(str, dims)))

def items(self):
"""Return items sorted according to keys"""
# pylint: disable=consider-using-dict-items
return [(k, self[k]) for k in self.keys()]

def values(self):
"""Return values sorted according to keys"""
# pylint: disable=consider-using-dict-items
return [self[k] for k in self.keys()]

def keys(self):
"""Return sorted keys"""
return list(iter(self))

def __iter__(self):
"""Return sorted keys"""
return iter(sorted(super().keys()))

@property
def configuration(self):
"""Return a dictionary of priors."""
Expand Down
Loading