1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
//! # rusty_science
//!
//! An easy to learn and use ML toolkit for rust
//!
//! ## Installation
//!
//!
//! ```toml
//! [dependencies]
//! rusty_science = "0.1.1"
//! ```
//! ## Usage Example
//!
//! ```rust
//! use rusty_science::classification::knn::KNNClassifier;
//! let mut knn = KNNClassifier::new(3);
//! let data = vec![vec![1.0, 2.0], vec![2.0, 3.0], vec![3.0, 4.0]];
//! let labels = vec![0, 1, 0];
//! knn.fit(data, labels);
//! let prediction = knn.predict(vec![2.5, 3.5]);
//! println!("Predicted label: {}", prediction);
//! ```
//!
//! ## Modules
//!
//! - `classification`: A set of classification models
//! - `clustering`: A set of clustering models
//! - `data`: A set of tools for the manipulation or importing of data
//! - `linear_models`: A set of linear models
//! - `metrics`: Tools to test the output of models
//! - `regression`: A set of regression models
//!
//! ## License
//!
//! Licensed under MIT.
//!
//! ## Contribution
//!
//! Contributions are welcome! Please feel free to submit a pull request or file an issue.
//!
//! ## Acknowledgements
//!
//! If applicable, acknowledge other libraries or individuals that helped in developing this crate.
//!
//! ## Contributors
//! Cooper Brown, Jack Welsh