https://github.com/larsgw/cluste-rs
Clustering algorithms in Rust
https://github.com/larsgw/cluste-rs
Last synced: 3 months ago
JSON representation
Clustering algorithms in Rust
- Host: GitHub
- URL: https://github.com/larsgw/cluste-rs
- Owner: larsgw
- License: mit
- Created: 2022-01-08T13:48:23.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-09T20:01:46.000Z (over 3 years ago)
- Last Synced: 2025-01-06T02:42:27.072Z (4 months ago)
- Language: Rust
- Size: 32.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Dependencies
- [Rust](https://www.rust-lang.org/) and [Cargo](https://doc.rust-lang.org/cargo)
- [`rand`](https://rust-random.github.io/book/) and its transitive dependencies
(will be installed by Cargo when building/running the code)## Test
Run `cargo test` to run the unit tests.
## Run
```
cargo run --release < input.csv > ouptut.csv
```- Change the constants in lines 6–10 of `src/main.rs` to match the input data.
- `input.csv` should contain only numeric columns to run k-means clustering on.
- `output.csv` will contain the center coordinates.
- Timing information will be printed to standard error.