-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor repository: sub-crates under crates directory (#226)
* Move sub-crates under crates directory * Move python binding under python * Adjust Python tools: use uv, ruff * Adjust gitignore and remove poetry.lock * Add uv lock * Adjust pyproject, gitignore, pytest * Adjust python action * Adjust pytest action * ruff format * Adjust pytest action * Fix ubuntu os name * Adjust toml * Use maturin action * Adjust toml * Import all rust symbols * Add pre-commit * Fix format * DRY dependencies
- Loading branch information
Showing
95 changed files
with
678 additions
and
336 deletions.
There are no files selected for viewing
This file contains 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 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 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 |
---|---|---|
|
@@ -31,3 +31,5 @@ mopta08_elf64.bin | |
joss/paper.jats | ||
joss/paper.pdf | ||
|
||
# Run history | ||
history* |
This file contains 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,9 @@ | ||
repos: | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
# Ruff version. | ||
rev: v0.8.5 | ||
hooks: | ||
# Run the linter. | ||
- id: ruff | ||
# Run the formatter. | ||
- id: ruff-format |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains 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 |
---|---|---|
@@ -1,67 +1,58 @@ | ||
[package] | ||
name = "egobox" | ||
[workspace] | ||
members = ["crates/*", "python"] | ||
resolver = "2" | ||
|
||
[workspace.package] | ||
license = "Apache-2.0" | ||
edition = "2021" | ||
readme = "README.md" | ||
version = "0.25.0" | ||
authors = ["Rémi Lafage <[email protected]>"] | ||
edition = "2021" | ||
homepage = "https://github.com/relf/egobox" | ||
documentation = "https://pypi.org/project/egobox" | ||
description = "A toolbox for efficient global optimization" | ||
license = "Apache-2.0" | ||
repository = "https://github.com/relf/egobox" | ||
keywords = [ | ||
"machine-learning", | ||
"doe", | ||
"gaussian-process", | ||
"mixture-of-experts", | ||
"optimization", | ||
"machine-learning", | ||
"doe", | ||
"gaussian-process", | ||
"mixture-of-experts", | ||
"optimization", | ||
] | ||
categories = ["algorithms", "mathematics", "science"] | ||
rust-version = "1.74" # MSVR | ||
|
||
exclude = [".github/"] | ||
|
||
[lib] | ||
name = "egobox" | ||
crate-type = ["cdylib"] | ||
|
||
[features] | ||
default = [] | ||
|
||
nlopt = ["egobox-ego/nlopt", "egobox-gp/nlopt"] | ||
serializable-gp = ["egobox-gp/serializable"] | ||
persistent-moe = ["egobox-moe/persistent"] | ||
blas = ["ndarray/blas", "egobox-gp/blas", "egobox-moe/blas", "egobox-ego/blas"] | ||
|
||
[dependencies] | ||
egobox-doe = { version = "0.25.0", path = "./doe" } | ||
egobox-gp = { version = "0.25.0", path = "./gp" } | ||
egobox-moe = { version = "0.25.0", path = "./moe", features = ["persistent"] } | ||
egobox-ego = { version = "0.25.0", path = "./ego", features = ["persistent"] } | ||
[workspace.metadata.release] | ||
shared-version = true | ||
tag-name = "{{version}}" | ||
|
||
[workspace.dependencies] | ||
linfa = { version = "0.7", default-features = false } | ||
|
||
ndarray = { version = "0.15", features = ["rayon", "approx"] } | ||
ndarray-rand = "0.14" | ||
ndarray-stats = "0.5" | ||
ndarray-npy = "0.8" | ||
|
||
num-traits = "0.2" | ||
|
||
thiserror = "1" | ||
anyhow = "1" | ||
rayon = "1" | ||
|
||
rand_xoshiro = "0.6" | ||
libm = "0.2" | ||
finitediff = { version = "0.1.4", features = ["ndarray"] } | ||
env_logger = "0.11" | ||
log = "0.4" | ||
|
||
pyo3 = { version = "0.22", features = ["extension-module"] } | ||
pyo3-log = "0.11" | ||
numpy = "0.22.1" | ||
|
||
serde = "1" | ||
serde_json = "1" | ||
|
||
ctrlc = "3.4" | ||
|
||
[dev-dependencies] | ||
# dev dependencies | ||
criterion = "0.5" | ||
approx = "0.4" | ||
argmin_testfunctions = "0.2" | ||
|
||
[workspace] | ||
members = ["doe", "gp", "moe", "ego"] |
This file contains 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,44 @@ | ||
[package] | ||
name = "egobox-doe" | ||
authors.workspace = true | ||
version.workspace = true | ||
license.workspace = true | ||
edition.workspace = true | ||
homepage.workspace = true | ||
description = "A library for design of experiments" | ||
repository = "https://github.com/relf/egobox/crates/doe" | ||
keywords = [ | ||
"machine-learning", | ||
"design", | ||
"experiments", | ||
"lhs", | ||
"full-factorial", | ||
] | ||
readme = "README.md" | ||
|
||
[features] | ||
default = [] | ||
|
||
serializable = ["serde", "rand_xoshiro/serde1"] | ||
|
||
[dependencies] | ||
linfa.workspace = true | ||
ndarray.workspace = true | ||
ndarray-rand.workspace = true | ||
ndarray-stats.workspace = true | ||
num-traits.workspace = true | ||
rand_xoshiro.workspace = true | ||
serde = { version = "1", optional = true } | ||
|
||
[dev-dependencies] | ||
criterion.workspace = true | ||
serde_json.workspace = true | ||
approx.workspace = true | ||
|
||
[[bench]] | ||
name = "lhs" | ||
harness = false | ||
|
||
[[bench]] | ||
name = "lhs_classics" | ||
harness = false |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains 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 |
---|---|---|
@@ -1,11 +1,12 @@ | ||
[package] | ||
name = "egobox-ego" | ||
version = "0.25.0" | ||
authors = ["Rémi Lafage <[email protected]>"] | ||
edition = "2021" | ||
authors.workspace = true | ||
version.workspace = true | ||
license.workspace = true | ||
edition.workspace = true | ||
homepage.workspace = true | ||
description = "A library for efficient global optimization" | ||
license = "Apache-2.0" | ||
repository = "https://github.com/relf/egobox" | ||
repository = "https://github.com/relf/egobox/crates/ego" | ||
keywords = ["machine-learning", "bayesian", "optimization"] | ||
categories = ["algorithms", "mathematics", "science"] | ||
|
||
|
@@ -24,16 +25,16 @@ egobox-moe = { version = "0.25.0", path = "../moe", features = [ | |
"serializable", | ||
] } | ||
|
||
linfa = { version = "0.7", default-features = false } | ||
linfa.workspace = true | ||
linfa-pls = { version = "0.7", default-features = false } | ||
linfa-linalg = { version = "0.1", default-features = false } | ||
|
||
ndarray = { version = "0.15", features = ["rayon", "approx"] } | ||
ndarray.workspace = true | ||
ndarray-linalg = { version = "0.15", optional = true } | ||
ndarray-stats = "0.5" | ||
ndarray-rand = "0.14" | ||
ndarray-npy = "0.8" | ||
rayon = "1" | ||
ndarray-stats.workspace = true | ||
ndarray-rand.workspace = true | ||
ndarray-npy.workspace = true | ||
rayon.workspace = true | ||
|
||
cobyla = { version = "0.6" } | ||
slsqp = { version = "0.1" } | ||
|
@@ -44,25 +45,24 @@ argmin = { version = "0.10.0", features = ["serde1", "ctrlc"] } | |
bincode = { version = "1.3.0" } | ||
web-time = "1.1.0" | ||
libm = "0.2.6" | ||
finitediff = { version = "0.1", features = ["ndarray"] } | ||
finitediff.workspace = true | ||
# sort-axis | ||
rawpointer = { version = "0.2" } | ||
log = "0.4" | ||
env_logger = "0.11.3" | ||
thiserror = "1" | ||
anyhow = "1" | ||
log.workspace = true | ||
env_logger.workspace = true | ||
thiserror.workspace = true | ||
anyhow.workspace = true | ||
clap = { version = "4", features = ["derive"] } | ||
|
||
serde = { version = "1", features = ["derive", "rc"] } | ||
serde_json = "1" | ||
serde_json.workspace = true | ||
typetag = { version = "0.2" } | ||
dyn-clonable = { version = "0.9" } | ||
|
||
|
||
[dev-dependencies] | ||
criterion = "0.5" | ||
approx = "0.4" | ||
argmin_testfunctions = "0.2" | ||
criterion.workspace = true | ||
approx.workspace = true | ||
argmin_testfunctions.workspace = true | ||
serial_test = "3.1.0" | ||
|
||
[[bench]] | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.