feat: adds breast cancer dataset
This commit is contained in:
@@ -65,8 +65,8 @@ use crate::linalg::Matrix;
|
|||||||
use crate::math::distance::euclidian::*;
|
use crate::math::distance::euclidian::*;
|
||||||
use crate::math::num::RealNumber;
|
use crate::math::num::RealNumber;
|
||||||
|
|
||||||
#[derive(Serialize, Deserialize, Debug)]
|
|
||||||
/// K-Means clustering algorithm
|
/// K-Means clustering algorithm
|
||||||
|
#[derive(Serialize, Deserialize, Debug)]
|
||||||
pub struct KMeans<T: RealNumber> {
|
pub struct KMeans<T: RealNumber> {
|
||||||
k: usize,
|
k: usize,
|
||||||
y: Vec<usize>,
|
y: Vec<usize>,
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
+2
-4
@@ -2,12 +2,10 @@
|
|||||||
//!
|
//!
|
||||||
//! In this module you will find small datasets that are used in SmartCore for demonstration purpose mostly.
|
//! In this module you will find small datasets that are used in SmartCore for demonstration purpose mostly.
|
||||||
|
|
||||||
/// The Boston Housing Dataset
|
|
||||||
pub mod boston;
|
pub mod boston;
|
||||||
/// Iris flower data set
|
pub mod breast_cancer;
|
||||||
pub mod iris;
|
|
||||||
|
|
||||||
pub mod diabetes;
|
pub mod diabetes;
|
||||||
|
pub mod iris;
|
||||||
|
|
||||||
/// Dataset
|
/// Dataset
|
||||||
pub struct Dataset<X, Y> {
|
pub struct Dataset<X, Y> {
|
||||||
|
|||||||
Reference in New Issue
Block a user