e359392a00
Add a `visualization` feature flag that generates self-contained HTML reports with interactive Plotly.js charts for offline visualization of optimization results. Charts include optimization history, slice plots, parallel coordinates, parameter importance, trial timeline, and intermediate values (learning curves).
72 lines
2.0 KiB
TOML
72 lines
2.0 KiB
TOML
[workspace]
|
|
members = ["optimizer-derive"]
|
|
|
|
[package]
|
|
name = "optimizer"
|
|
version = "0.7.2"
|
|
edition = "2024"
|
|
rust-version = "1.88"
|
|
license = "MIT"
|
|
authors = ["Manuel Raimann <raimannma@outlook.de"]
|
|
description = "A Rust library for optimization algorithms."
|
|
repository = "https://github.com/raimannma/rust-optimizer"
|
|
documentation = "https://docs.rs/optimizer"
|
|
keywords = ["optimization", "hyperparameter", "tpe", "grid-search", "bayesian"]
|
|
categories = ["algorithm", "science", "data-structures"]
|
|
readme = "README.md"
|
|
|
|
[dependencies]
|
|
rand = "0.10"
|
|
thiserror = "2"
|
|
parking_lot = "0.12"
|
|
tokio = { version = "1", features = ["sync", "rt-multi-thread"], optional = true }
|
|
optimizer-derive = { version = "0.1.0", path = "optimizer-derive", optional = true }
|
|
serde = { version = "1", features = ["derive"], optional = true }
|
|
serde_json = { version = "1", optional = true }
|
|
tracing = { version = "0.1.29", optional = true }
|
|
sobol_burley = { version = "0.5", optional = true }
|
|
nalgebra = { version = "0.34", optional = true }
|
|
|
|
[features]
|
|
default = []
|
|
async = ["dep:tokio"]
|
|
derive = ["dep:optimizer-derive"]
|
|
serde = ["dep:serde", "dep:serde_json"]
|
|
tracing = ["dep:tracing"]
|
|
sobol = ["dep:sobol_burley"]
|
|
cma-es = ["dep:nalgebra"]
|
|
visualization = []
|
|
|
|
[dev-dependencies]
|
|
tokio = { version = "1", features = ["rt-multi-thread", "macros", "time"] }
|
|
optimizer-derive = { version = "0.1.0", path = "optimizer-derive" }
|
|
serde_json = "1"
|
|
criterion = { version = "0.8", features = ["html_reports"] }
|
|
|
|
[[bench]]
|
|
name = "samplers"
|
|
harness = false
|
|
|
|
[[bench]]
|
|
name = "optimization"
|
|
harness = false
|
|
|
|
[[example]]
|
|
name = "async_api_optimization"
|
|
path = "examples/async_api_optimization.rs"
|
|
required-features = ["async"]
|
|
|
|
[[example]]
|
|
name = "ml_hyperparameter_tuning"
|
|
path = "examples/ml_hyperparameter_tuning.rs"
|
|
|
|
[[example]]
|
|
name = "parameter_api"
|
|
path = "examples/parameter_api.rs"
|
|
required-features = ["derive"]
|
|
|
|
[[example]]
|
|
name = "visualization_demo"
|
|
path = "examples/visualization_demo.rs"
|
|
required-features = ["visualization"]
|