7.10 kmeans visualise


Common usage:

ml visualise kmeans iris_pr.csv

General usage:

$ ml visualise kmeans --help

Usage: visualise [OPTIONS] [DATAFILE]

  The DATAFILE is a csv format of named numeric columns and a label
  A visualisation of the cluster membership for each observation is
  --help  Show this message and exit.

A complete pipeline to cluster, predict and then visualise the clusters.

ml train kmeans 3 iris.csv |
  ml predict kmeans iris.csv |
  mlr --csv cut -f sepal_length,sepal_width,label |
  ml visualise kmeans

Your donation will support ongoing availability and give you access to the PDF version of this book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2022 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0