emel/lazy/ml/k_means

Functions

pub fn centroids_with_clusters(
  points: ZList(ZList(Float)),
  k: Int,
  seed: Int,
) -> ZList(#(ZList(Float), ZList(ZList(Float))))
pub fn classifier(
  dataset: ZList(ZList(Float)),
  k: Int,
  seed: Int,
) -> fn(ZList(Float)) -> Int
pub fn clusters(
  points: ZList(ZList(Float)),
  k: Int,
  seed: Int,
) -> ZList(ZList(ZList(Float)))
Search Document