Handy Orchard

K-means data clustering

Cluster numeric rows with the pinned ML.js K-means implementation, reproducible seeds and optional column standardization.

Your input

One point per line; separate coordinates with commas, tabs or spaces. 1–10 columns and 5,000 rows maximum; every value must be finite and at most 1e100 in magnitude.

Outputs are cleared when the input changes.

Result

Enter your data or use the example, then run the tool.

Worked example

The sample forms two groups around (1.33, 1.33) and (8.33, 8.33). Reusing the seed and inputs reproduces the assignments, up to the fixed upstream implementation.

Use the sample button to load the stated inputs, then change one option to compare results.

Method

The actual pinned ML.js facade exports ml-kmeans 6.0.0, locked with its transitive dependencies. K-means++ initialization and squared Euclidean distance are used. Optional standardization subtracts each column mean and divides by its population standard deviation; output centroids are restored to original units.

The fixed-source README and complete third-party license notices are available through the source and notices links.

Limits

At most 20 clusters / 500 iterations / 200,000 characters. Constant columns cannot be standardized; k cannot exceed distinct points. Convergence is reported explicitly, and a different seed may reach a different local optimum. Six-second Worker deadline with hard cancellation. Exploratory grouping only; not evidence for eligibility, causation or sensitive personal decisions.

Inputs stay in this browser; the tool does not upload data. Engine assets are downloaded from this site only when needed.

Sources

Actual pinned upstream sourceThird-party notices

Related tools

Dataset distribution summaryLinear regression worksheetBinomial probability calculator

Your inputs stay on this device. Only optional, consented page visits are measured. Input values, files, filenames and processing logs are not sent to Analytics.

When switching languages, text, settings and selected files are temporarily kept on this device. Transfers are removed after restoring; interrupted transfers are cleaned up on a later visit. Inputs and files are never uploaded.