[package] name = "linfa" version = "0.7.0" authors = [ "Luca Palmieri ", "Lorenz Schmidt ", "Paul Körbitz ", "Yuhan Lin " ] description = "A Machine Learning framework for Rust" edition = "2018" license = "MIT OR Apache-2.0" repository = "https://github.com/rust-ml/linfa" readme = "README.md" keywords = ["machine-learning", "linfa", "ai", "ml"] categories = ["algorithms", "mathematics", "science"] exclude = [".github/"] [features] default = [] benchmarks = ["criterion", "pprof"] netlib-static = ["blas", "ndarray-linalg/netlib-static"] netlib-system = ["blas", "ndarray-linalg/netlib-system"] openblas-static = ["blas", "ndarray-linalg/openblas-static"] openblas-system = ["blas", "ndarray-linalg/openblas-system"] intel-mkl-static = ["blas", "ndarray-linalg/intel-mkl-static"] intel-mkl-system = ["blas", "ndarray-linalg/intel-mkl-system"] blas = ["ndarray/blas"] serde = ["serde_crate", "ndarray/serde"] [dependencies] num-traits = "0.2" rand = { version = "0.8", features = ["small_rng"] } approx = "0.4" ndarray = { version = "0.15", features = ["approx"] } ndarray-linalg = { version = "0.15", optional = true } sprs = { version = "0.11", default-features = false } thiserror = "1.0" criterion = { version = "0.4.0", optional = true} [dependencies.serde_crate] package = "serde" optional = true version = "1.0" default-features = false features = ["std", "derive"] [dev-dependencies] ndarray-rand = "0.14" linfa-datasets = { path = "datasets", features = ["winequality", "iris", "diabetes", "generate"] } statrs = "0.16.0" [target.'cfg(not(windows))'.dependencies] pprof = { version = "0.11.0", features = ["flamegraph", "criterion"], optional = true} [workspace] members = [ "algorithms/*", "datasets", ] [profile.release] opt-level = 3