-
-
Notifications
You must be signed in to change notification settings - Fork 254
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Bump version 0.4.0, add release notes * Add t-SNE example to release notes * Add example for t-SNE and start writing preprocessing example * Fix typo * Add example for TF-IDF text preprocessing * Explain that target construction is omitted and traits changes * Add contribute section on the new lapack traits * Link to crates.io in the base crate documentation * Link to crates.io in the base crate documentation * Add mnist example * Run rustfmt * Fix mnist example
- Loading branch information
Showing
25 changed files
with
349 additions
and
53 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "linfa" | ||
version = "0.3.1" | ||
version = "0.4.0" | ||
authors = [ | ||
"Luca Palmieri <[email protected]>", | ||
"Lorenz Schmidt <[email protected]>", | ||
|
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,6 +1,6 @@ | ||
[package] | ||
name = "linfa-bayes" | ||
version = "0.3.1" | ||
version = "0.4.0" | ||
authors = ["VasanthakumarV <[email protected]>"] | ||
description = "Collection of Naive Bayes Algorithms" | ||
edition = "2018" | ||
|
@@ -15,8 +15,8 @@ ndarray = { version = "0.14" , features = ["blas", "approx"]} | |
ndarray-stats = "0.4" | ||
thiserror = "1" | ||
|
||
linfa = { version = "0.3.1", path = "../.." } | ||
linfa = { version = "0.4.0", path = "../.." } | ||
|
||
[dev-dependencies] | ||
approx = "0.4" | ||
linfa-datasets = { version = "0.3.1", path = "../../datasets", features = ["winequality"] } | ||
linfa-datasets = { version = "0.4.0", path = "../../datasets", features = ["winequality"] } |
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,6 +1,6 @@ | ||
[package] | ||
name = "linfa-clustering" | ||
version = "0.3.1" | ||
version = "0.4.0" | ||
edition = "2018" | ||
authors = [ | ||
"Luca Palmieri <[email protected]>", | ||
|
@@ -36,7 +36,8 @@ num-traits = "0.2" | |
rand_isaac = "0.3" | ||
thiserror = "1" | ||
partitions = "0.2.4" | ||
linfa = { version = "0.3.1", path = "../..", features = ["ndarray-linalg"] } | ||
|
||
linfa = { version = "0.4.0", path = "../..", features = ["ndarray-linalg"] } | ||
|
||
[dev-dependencies] | ||
ndarray-npy = { version = "0.7", default-features = false } | ||
|
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[package] | ||
name = "linfa-elasticnet" | ||
version = "0.3.1" | ||
version = "0.4.0" | ||
authors = [ | ||
"Paul Körbitz / Google <[email protected]>", | ||
"Lorenz Schmidt <[email protected]>" | ||
|
@@ -35,9 +35,9 @@ num-traits = "0.2" | |
approx = "0.4" | ||
thiserror = "1" | ||
|
||
linfa = { version = "0.3.1", path = "../.." } | ||
linfa = { version = "0.4.0", path = "../.." } | ||
|
||
[dev-dependencies] | ||
linfa-datasets = { version = "0.3.1", path = "../../datasets", features = ["diabetes"] } | ||
linfa-datasets = { version = "0.4.0", path = "../../datasets", features = ["diabetes"] } | ||
ndarray-rand = "0.13" | ||
rand_isaac = "0.3" |
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,6 +1,6 @@ | ||
[package] | ||
name = "linfa-hierarchical" | ||
version = "0.3.1" | ||
version = "0.4.0" | ||
authors = ["Lorenz Schmidt <[email protected]>"] | ||
edition = "2018" | ||
|
||
|
@@ -17,10 +17,10 @@ categories = ["algorithms", "mathematics", "science"] | |
ndarray = { version = "0.14", default-features = false } | ||
kodama = "0.2" | ||
|
||
linfa = { version = "0.3.1", path = "../.." } | ||
linfa-kernel = { version = "0.3.1", path = "../linfa-kernel" } | ||
linfa = { version = "0.4.0", path = "../.." } | ||
linfa-kernel = { version = "0.4.0", path = "../linfa-kernel" } | ||
|
||
[dev-dependencies] | ||
rand = "0.8" | ||
ndarray-rand = "0.13" | ||
linfa-datasets = { version = "0.3.1", path = "../../datasets", features = ["iris"] } | ||
linfa-datasets = { version = "0.4.0", path = "../../datasets", features = ["iris"] } |
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,6 +1,6 @@ | ||
[package] | ||
name = "linfa-ica" | ||
version = "0.3.1" | ||
version = "0.4.0" | ||
authors = ["VasanthakumarV <[email protected]>"] | ||
description = "A collection of Independent Component Analysis (ICA) algorithms" | ||
edition = "2018" | ||
|
@@ -32,7 +32,7 @@ num-traits = "0.2" | |
rand_isaac = "0.3" | ||
thiserror = "1" | ||
|
||
linfa = { version = "0.3.1", path = "../..", features = ["ndarray-linalg"] } | ||
linfa = { version = "0.4.0", path = "../..", features = ["ndarray-linalg"] } | ||
|
||
[dev-dependencies] | ||
ndarray-npy = { version = "0.7", default-features = false } | ||
|
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,6 +1,6 @@ | ||
[package] | ||
name = "linfa-kernel" | ||
version = "0.3.1" | ||
version = "0.4.0" | ||
authors = ["Lorenz Schmidt <[email protected]>"] | ||
description = "Kernel methods for non-linear algorithms" | ||
edition = "2018" | ||
|
@@ -30,4 +30,4 @@ sprs = { version="0.9.4", default-features = false } | |
hnsw = "0.6" | ||
space = "0.10" | ||
|
||
linfa = { version = "0.3.1", path = "../.." } | ||
linfa = { version = "0.4.0", path = "../.." } |
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,6 +1,6 @@ | ||
[package] | ||
name = "linfa-linear" | ||
version = "0.3.1" | ||
version = "0.4.0" | ||
authors = [ | ||
"Paul Körbitz / Google <[email protected]>", | ||
"VasanthakumarV <[email protected]>" | ||
|
@@ -25,8 +25,8 @@ argmin = { version = "0.4", features = ["ndarrayl"] } | |
serde = { version = "1.0", default-features = false, features = ["derive"] } | ||
thiserror = "1" | ||
|
||
linfa = { version = "0.3.1", path = "../.." } | ||
linfa = { version = "0.4.0", path = "../.." } | ||
|
||
[dev-dependencies] | ||
linfa-datasets = { version = "0.3.1", path = "../../datasets", features = ["diabetes"] } | ||
linfa-datasets = { version = "0.4.0", path = "../../datasets", features = ["diabetes"] } | ||
approx = "0.4" |
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,6 +1,6 @@ | ||
[package] | ||
name = "linfa-logistic" | ||
version = "0.3.1" | ||
version = "0.4.0" | ||
authors = ["Paul Körbitz / Google <[email protected]>"] | ||
|
||
description = "A Machine Learning framework for Rust" | ||
|
@@ -21,8 +21,8 @@ argmin = { version = "0.4", features = ["ndarrayl"] } | |
serde = "1.0" | ||
thiserror = "1" | ||
|
||
linfa = { version = "0.3.1", path = "../.." } | ||
linfa = { version = "0.4.0", path = "../.." } | ||
|
||
[dev-dependencies] | ||
approx = "0.4" | ||
linfa-datasets = { version = "0.3.1", path = "../../datasets", features = ["winequality"] } | ||
linfa-datasets = { version = "0.4.0", path = "../../datasets", features = ["winequality"] } |
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,6 +1,6 @@ | ||
[package] | ||
name = "linfa-pls" | ||
version = "0.3.1" | ||
version = "0.4.0" | ||
edition = "2018" | ||
authors = ["relf <[email protected]>"] | ||
description = "Partial Least Squares family methods" | ||
|
@@ -32,9 +32,9 @@ rand_isaac = "0.3" | |
num-traits = "0.2" | ||
paste = "1.0" | ||
thiserror = "1" | ||
linfa = { version = "0.3.1", path = "../..", features = ["ndarray-linalg"] } | ||
linfa = { version = "0.4.0", path = "../..", features = ["ndarray-linalg"] } | ||
|
||
[dev-dependencies] | ||
linfa-datasets = { version = "0.3.1", path = "../../datasets", features = ["linnerud"] } | ||
linfa-datasets = { version = "0.4.0", path = "../../datasets", features = ["linnerud"] } | ||
rand_isaac = "0.3" | ||
approx = "0.4" |
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,27 @@ | ||
# Partial Least Squares | ||
|
||
`linfa-pls` provides a pure Rust implementation of the partial least squares algorithm family. | ||
|
||
## The Big Picture | ||
|
||
`linfa-pls` is a crate in the [`linfa`](https://crates.io/crates/linfa) ecosystem, an effort to create a toolkit for classical Machine Learning implemented in pure Rust, akin to Python's `scikit-learn`. | ||
|
||
## Current state | ||
|
||
`linfa-pls` currently provides an implementation of the following methods: | ||
|
||
- Partial Least Squares | ||
|
||
## Examples | ||
|
||
There is an usage example in the `examples/` directory. The example uses a BLAS backend, to run it and use the `intel-mkl` library do: | ||
|
||
```bash | ||
$ cargo run --example pls_regression --features linfa/intel-mkl-system | ||
``` | ||
|
||
## License | ||
Dual-licensed to be compatible with the Rust project. | ||
|
||
Licensed under the Apache License, Version 2.0 <http://www.apache.org/licenses/LICENSE-2.0> or the MIT license <http://opensource.org/licenses/MIT>, at your option. This file may not be copied, modified, or distributed except according to those terms. | ||
|
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,6 +1,6 @@ | ||
[package] | ||
name = "linfa-preprocessing" | ||
version = "0.3.1" | ||
version = "0.4.0" | ||
authors = ["Sauro98 <[email protected]>"] | ||
|
||
description = "A Machine Learning framework for Rust" | ||
|
@@ -17,7 +17,7 @@ categories = ["algorithms", "mathematics", "science"] | |
|
||
[dependencies] | ||
|
||
linfa = { version = "0.3.1", path = "../..", features = ["ndarray-linalg"] } | ||
linfa = { version = "0.4.0", path = "../..", features = ["ndarray-linalg"] } | ||
ndarray = { version = "0.14", default-features = false, features = ["approx", "blas"] } | ||
ndarray-linalg = { version = "0.13" } | ||
ndarray-stats = "0.4" | ||
|
@@ -30,8 +30,8 @@ encoding = "0.2" | |
sprs = { version="0.9.4", default-features = false } | ||
|
||
[dev-dependencies] | ||
linfa-datasets = { version = "0.3.1", path = "../../datasets", features = ["diabetes", "winequality"] } | ||
linfa-bayes = { version = "0.3.1", path = "../linfa-bayes" } | ||
linfa-datasets = { version = "0.4.0", path = "../../datasets", features = ["diabetes", "winequality"] } | ||
linfa-bayes = { version = "0.4.0", path = "../linfa-bayes" } | ||
iai = "0.1" | ||
curl = "0.4.35" | ||
flate2 = "1.0.20" | ||
|
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,6 +1,6 @@ | ||
[package] | ||
name = "linfa-reduction" | ||
version = "0.3.1" | ||
version = "0.4.0" | ||
authors = ["Lorenz Schmidt <[email protected]>"] | ||
description = "A collection of dimensionality reduction techniques" | ||
edition = "2018" | ||
|
@@ -31,11 +31,11 @@ ndarray-rand = "0.13" | |
num-traits = "0.2" | ||
thiserror = "1" | ||
|
||
linfa = { version = "0.3.1", path = "../..", features = ["ndarray-linalg"] } | ||
linfa-kernel = { version = "0.3.1", path = "../linfa-kernel" } | ||
linfa = { version = "0.4.0", path = "../..", features = ["ndarray-linalg"] } | ||
linfa-kernel = { version = "0.4.0", path = "../linfa-kernel" } | ||
|
||
[dev-dependencies] | ||
rand = { version = "0.8", features = ["small_rng"] } | ||
ndarray-npy = { version = "0.7", default-features = false } | ||
linfa-datasets = { version = "0.3.1", path = "../../datasets", features = ["iris"] } | ||
linfa-datasets = { version = "0.4.0", path = "../../datasets", features = ["iris"] } | ||
approx = { version = "0.4", default-features = false, features = ["std"] } |
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,6 +1,6 @@ | ||
[package] | ||
name = "linfa-svm" | ||
version = "0.3.1" | ||
version = "0.4.0" | ||
edition = "2018" | ||
authors = ["Lorenz Schmidt <[email protected]>"] | ||
description = "Support Vector Machines" | ||
|
@@ -29,9 +29,9 @@ ndarray-rand = "0.13" | |
num-traits = "0.2" | ||
thiserror = "1" | ||
|
||
linfa = { version = "0.3.1", path = "../.." } | ||
linfa-kernel = { version = "0.3.1", path = "../linfa-kernel" } | ||
linfa = { version = "0.4.0", path = "../.." } | ||
linfa-kernel = { version = "0.4.0", path = "../linfa-kernel" } | ||
|
||
[dev-dependencies] | ||
linfa-datasets = { version = "0.3.1", path = "../../datasets", features = ["winequality", "diabetes"] } | ||
linfa-datasets = { version = "0.4.0", path = "../../datasets", features = ["winequality", "diabetes"] } | ||
rand_isaac = "0.3" |
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,6 +1,6 @@ | ||
[package] | ||
name = "linfa-trees" | ||
version = "0.3.1" | ||
version = "0.4.0" | ||
edition = "2018" | ||
authors = ["Moss Ebeling <[email protected]>"] | ||
description = "A collection of tree-based algorithms" | ||
|
@@ -27,14 +27,14 @@ features = ["std", "derive"] | |
ndarray = { version = "0.14" , features = ["rayon", "approx"]} | ||
ndarray-rand = "0.13" | ||
|
||
linfa = { version = "0.3.1", path = "../.." } | ||
linfa = { version = "0.4.0", path = "../.." } | ||
|
||
[dev-dependencies] | ||
rand = { version = "0.8", features = ["small_rng"] } | ||
criterion = "0.3" | ||
approx = "0.4" | ||
|
||
linfa-datasets = { version = "0.3.1", path = "../../datasets/", features = ["iris"] } | ||
linfa-datasets = { version = "0.4.0", path = "../../datasets/", features = ["iris"] } | ||
|
||
[[bench]] | ||
name = "decision_tree" | ||
|
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,6 +1,6 @@ | ||
[package] | ||
name = "linfa-tsne" | ||
version = "0.3.1" | ||
version = "0.4.0" | ||
authors = ["Lorenz Schmidt <[email protected]>"] | ||
edition = "2018" | ||
|
||
|
@@ -10,7 +10,7 @@ license = "MIT/Apache-2.0" | |
repository = "https://github.com/rust-ml/linfa" | ||
readme = "README.md" | ||
|
||
keywords = ["tsne", "data visualization", "clustering", "machine-learning", "linfa"] | ||
keywords = ["tsne", "visualization", "clustering", "machine-learning", "linfa"] | ||
categories = ["algorithms", "mathematics", "science"] | ||
|
||
[dependencies] | ||
|
@@ -19,11 +19,12 @@ ndarray = { version = "0.14", default-features = false } | |
ndarray-rand = "0.13" | ||
bhtsne = "0.4.0" | ||
|
||
linfa = { version = "0.3.1", path = "../.." } | ||
linfa = { version = "0.4.0", path = "../.." } | ||
|
||
[dev-dependencies] | ||
rand = "0.8" | ||
approx = "0.4" | ||
mnist = { version = "0.4", features = ["download"] } | ||
|
||
linfa-datasets = { version = "0.3.1", path = "../../datasets", features = ["iris"] } | ||
linfa-reduction = { version = "0.3.1", path = "../linfa-reduction" } | ||
linfa-datasets = { version = "0.4.0", path = "../../datasets", features = ["iris"] } | ||
linfa-reduction = { version = "0.4.0", path = "../linfa-reduction" } |
Oops, something went wrong.