* Add benches for GNB * use [black_box](https://github.com/bheisler/criterion.rs/blob/master/book/src/faq.md#when-should-i-use-criterionblack_box)
44 lines
1.0 KiB
TOML
44 lines
1.0 KiB
TOML
[package]
|
|
name = "smartcore"
|
|
description = "The most advanced machine learning library in rust."
|
|
homepage = "https://smartcorelib.org"
|
|
version = "0.1.0"
|
|
authors = ["SmartCore Developers"]
|
|
edition = "2018"
|
|
license = "Apache-2.0"
|
|
documentation = "https://docs.rs/smartcore"
|
|
repository = "https://github.com/smartcorelib/smartcore"
|
|
readme = "README.md"
|
|
keywords = ["machine-learning", "statistical", "ai", "optimization", "linear-algebra"]
|
|
categories = ["science"]
|
|
|
|
[features]
|
|
default = ["datasets"]
|
|
ndarray-bindings = ["ndarray"]
|
|
nalgebra-bindings = ["nalgebra"]
|
|
datasets = []
|
|
|
|
[dependencies]
|
|
ndarray = { version = "0.13", optional = true }
|
|
nalgebra = { version = "0.23.0", optional = true }
|
|
num-traits = "0.2.12"
|
|
num = "0.3.0"
|
|
rand = "0.7.3"
|
|
rand_distr = "0.3.0"
|
|
serde = { version = "1.0.115", features = ["derive"] }
|
|
serde_derive = "1.0.115"
|
|
|
|
[dev-dependencies]
|
|
criterion = "0.3"
|
|
serde_json = "1.0"
|
|
bincode = "1.3.1"
|
|
|
|
[[bench]]
|
|
name = "distance"
|
|
harness = false
|
|
|
|
[[bench]]
|
|
name = "naive_bayes"
|
|
harness = false
|
|
required-features = ["ndarray-bindings", "nalgebra-bindings"]
|