Struct rusty_machine::learning::k_means::RandomPartition [] [src]

pub struct RandomPartition;

The Random Partition initialization scheme.

Trait Implementations

impl Debug for RandomPartition
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Initializer for RandomPartition
[src]

fn init_centroids(&self, k: usize, inputs: &Matrix<f64>) -> Result<Matrix<f64>, Error>

Initialize the centroids for the initial state of the K-Means model. Read more