Skip to content

Commit

Permalink
Add ArrayStore data structure (#395)
Browse files Browse the repository at this point in the history
## Description

<!-- Provide a brief description of the PR's purpose here. -->

The ArrayStore will be part of an upcoming archive refactor in pyribs.

## TODO

<!-- Notable points that this PR has either accomplished or will
accomplish. -->

## Questions

<!-- Any concerns or points of confusion? -->

## Status

- [x] I have read the guidelines in

[CONTRIBUTING.md](https://github.com/icaros-usc/pyribs/blob/master/CONTRIBUTING.md)
- [x] I have formatted my code using `yapf`
- [x] I have tested my code by running `pytest`
- [x] I have linted my code with `pylint`
- [x] I have added a one-line description of my change to the changelog
in
      `HISTORY.md`
- [x] This PR is ready to go
  • Loading branch information
btjanaka authored Nov 1, 2023
1 parent ecd75cc commit e9cbecd
Show file tree
Hide file tree
Showing 4 changed files with 1,048 additions and 0 deletions.
1 change: 1 addition & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#### API

- Add GradientOperatorEmitter to support OMG-MEGA and OG-MAP-Elites ({pr}`348`)
- Add ArrayStore data structure ({pr}`395`)

#### Improvements

Expand Down
3 changes: 3 additions & 0 deletions ribs/archives/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
ribs.archives.CVTArchive
ribs.archives.SlidingBoundariesArchive
ribs.archives.ArchiveBase
ribs.archives.ArrayStore
ribs.archives.AddStatus
ribs.archives.Elite
ribs.archives.EliteBatch
Expand All @@ -28,6 +29,7 @@
from ribs.archives._archive_base import ArchiveBase
from ribs.archives._archive_data_frame import ArchiveDataFrame
from ribs.archives._archive_stats import ArchiveStats
from ribs.archives._array_store import ArrayStore
from ribs.archives._cqd_score_result import CQDScoreResult
from ribs.archives._cvt_archive import CVTArchive
from ribs.archives._elite import Elite, EliteBatch
Expand All @@ -39,6 +41,7 @@
"CVTArchive",
"SlidingBoundariesArchive",
"ArchiveBase",
"ArrayStore",
"AddStatus",
"Elite",
"ArchiveDataFrame",
Expand Down
Loading

0 comments on commit e9cbecd

Please sign in to comment.