linfa-clustering 0.8.1

A collection of clustering algorithms
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import matplotlib.pyplot as plt
import numpy as np

# This script assumes you're running from the linfa-clustering root after
# running the example so the dataset and reachability npy files are in the 
# linfa-clustering root as well.

dataset = np.load("../dataset.npy")
reachability = np.load("../reachability.npy")

plot1 = plt.figure(1)
plt.scatter(dataset[:, 0], dataset[:, 1])

plot2 = plt.figure(2)
plt.plot(reachability)

plt.show()