Skip to content

Commit 2e2fb65

Browse files
[K-means] Upgrade dependencies in Cargo.toml, add README.md (rust-ndarray#3)
* Add README to k-means example * Update dependencies in Cargo.toml for k-means example
1 parent 2355eef commit 2e2fb65

File tree

2 files changed

+12
-3
lines changed

2 files changed

+12
-3
lines changed

k_means/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ edition = "2018"
66
workspace = ".."
77

88
[dependencies]
9-
ndarray = {version = "0.12"}
10-
ndarray-stats = {git = "https://github.com/LukeMathWalker/ndarray-stats", branch = "master"}
11-
ndarray-rand = "0.10"
9+
ndarray = {version = "0.13"}
10+
ndarray-stats = "0.3"
11+
ndarray-rand = "0.11"
1212
rand = "0.7"

k_means/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
K-Means
2+
=======
3+
4+
An implementation of K-Means clustering using the [standard algorithm](https://en.wikipedia.org/wiki/K-means_clustering).
5+
6+
You can run the example using
7+
```sh
8+
cargo run
9+
```

0 commit comments

Comments
 (0)