Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
A Julia package for data clustering
Julia

This branch is 80 commits behind master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
examples/obsoleted
src
test
LICENSE.md
README.md
REQUIRE

README.md

Installation

Pkg.add("Clustering")

Functionality

  • k_means
  • dp_means

Examples

using DataFrames, RDatasets, Clustering

iris = data("datasets", "iris")

k = length(unique(iris[:, "Species"]))

clusters = k_means(matrix(iris[:, 2:5]), k)

df = DataFrame()
df["Cluster"] = clusters.assignments
df["Label"] = iris[:, "Species"]
head(df)

by(df, ["Cluster", "Label"], nrow)

clusters = dp_means(matrix(iris[:, 2:5]), 6.0)

df = DataFrame()
df["Cluster"] = clusters.assignments
df["Label"] = iris[:, "Species"]
head(df)

by(df, ["Cluster", "Label"], nrow)
Something went wrong with that request. Please try again.