-
Notifications
You must be signed in to change notification settings - Fork 1
DiBB Overhaul #1
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
Open
rolshoven
wants to merge
17
commits into
giuse:master
Choose a base branch
from
rolshoven:feature/overhaul
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
062fb2a
Changed exception type to valid exception
rolshoven 2f57303
minor bugfixes
rolshoven 78e9bd8
Switched to setup with uv
rolshoven 48d1db8
Added pre-commit hooks
rolshoven 4d7f89f
Ran automated ruff fixes
rolshoven 69f1526
Ran pre-commit hooks and fixed some ruff errors
rolshoven 30cd114
Fixed remaining ruff errors
rolshoven fd9fe39
Fixed sphere function in README
rolshoven 23bbb72
Updated neuroevolution example
rolshoven 7a31ada
Fixed missing rseed during reset in block worker
rolshoven 18928d3
Local DiBB mode now also works with correctly pre-initialized ray
rolshoven f68e5de
Improved support of different fitness functions when parallelizing in…
rolshoven 8a96aed
Moved `ray.get` to `eval_pop_on_bws`
rolshoven 311b077
Automatic deactivation of parallel evaluation if number of FEs > 0
rolshoven 97533e8
Added stopping conditions to fmin interface
rolshoven a68e40a
Formatting
rolshoven 79f0acf
Removed pyproject.toml from gitignore
rolshoven File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| repos: | ||
| - repo: https://github.com/pre-commit/pre-commit-hooks | ||
| rev: v6.0.0 | ||
| hooks: | ||
| - id: check-case-conflict | ||
| - id: end-of-file-fixer | ||
| - id: trailing-whitespace | ||
|
|
||
| - repo: https://github.com/astral-sh/ruff-pre-commit | ||
| rev: v0.14.0 | ||
| hooks: | ||
| - id: ruff | ||
| args: ['--fix'] | ||
| - id: ruff-format |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 3.11 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,91 @@ | ||
| [build-system] | ||
| requires = ["hatchling>=1.25", "hatch-vcs"] | ||
| build-backend = "hatchling.build" | ||
|
|
||
| [project] | ||
| name = "dibb" | ||
| dynamic = ["version"] | ||
| description = "Distributed Black Box Optimization Framework" | ||
| readme = "README.md" | ||
| requires-python = ">=3.11" | ||
| license = { text = "MIT" } | ||
| authors = [ | ||
| { name = "Giuseppe Cuccu", email = "[email protected]" }, | ||
| { name = "Luca Rolshoven", email = "[email protected]" }, | ||
| ] | ||
| keywords = ["black-box optimization", "distributed computation"] | ||
| urls = { "Homepage" = "https://github.com/giuse/dibb" } | ||
|
|
||
| dependencies = [ | ||
| "numpy", | ||
| "ray[default]", | ||
| ] | ||
|
|
||
| [project.optional-dependencies] | ||
| lmmaes = ["lmmaes"] | ||
| cma = ["cma"] | ||
| all = ["lmmaes", "cma"] | ||
| quality = ["ruff>=0.14.0", "pre-commit>=4.3.0"] | ||
| tests = ["pytest>=7.4.0", "deepdiff", "pip>=25.2"] | ||
| dev = ["dibb[quality,tests]"] | ||
| neuroevolution-example = [ | ||
| "dibb[cma]", | ||
| "tinynet", | ||
| "gymnasium[classic_control]", | ||
| ] | ||
|
|
||
| [tool.hatch.version] | ||
| source = "vcs" | ||
|
|
||
| [tool.hatch.build.hooks.vcs] | ||
| version-file = "src/dibb/_version.py" | ||
|
|
||
| [tool.hatch.build.targets.wheel] | ||
| packages = ["src/dibb"] | ||
| include = [ | ||
| "README.md", | ||
| "LICENSE.txt", | ||
| "ray_cluster_config.yaml", | ||
| ] | ||
|
|
||
| [tool.hatch.build.targets.sdist] | ||
| include = [ | ||
| "README.md", | ||
| "LICENSE.txt", | ||
| "ray_cluster_config.yaml", | ||
| ] | ||
|
|
||
| [tool.uv] | ||
| package = true | ||
| dev-dependencies = [ | ||
| "ptpython", | ||
| "brutelogger", | ||
| ] | ||
|
|
||
| [tool.ruff] | ||
| line-length = 100 | ||
|
|
||
| [tool.ruff.lint] | ||
| select = ["E", "F", "I", "UP", "W"] | ||
| ignore = ["E501"] | ||
| preview = true | ||
|
|
||
| [tool.ruff.lint.isort] | ||
| known-first-party = ["dibb"] | ||
| lines-after-imports = 2 | ||
|
|
||
| [tool.ruff.lint.per-file-ignores] | ||
| "src/dibb/_version.py" = ["UP007"] | ||
|
|
||
| [tool.ruff.format] | ||
| quote-style = "double" | ||
| indent-style = "space" | ||
| skip-magic-trailing-comma = false | ||
| line-ending = "auto" | ||
|
|
||
| [tool.ruff.lint.pydocstyle] | ||
| convention = "google" | ||
|
|
||
| [tool.pytest.ini_options] | ||
| pythonpath = ["src"] | ||
| testpaths = ["tests"] |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also add
_version.py