k-means

Simple k-means algorithm implementation

(no tags)

Algorithmia Platform License

Try the API

"[0, 0, 1, 2, 1]"

Install & Use

Use

curl -X POST -d '{
	"n": 3,
	"dataset": [
		[1, 2, 3],
		[3, 3, 3],
		[9, 9, 9],
		[9, 2, 1],
		[5, 6, 9]
	]
}' -H 'Content-Type: application/json' -H 'Authorization: Simple YOUR_API_KEY' https://api.algorithmia.com/v1/algo/pappacena/kmeans/0.2.0