|
63 | 63 | # ============
|
64 | 64 | # Set up cluster parameters
|
65 | 65 | # ============
|
66 |
| -plt.figure(figsize=(9 * 2 + 3, 12.5)) |
67 |
| -plt.subplots_adjust(left=.02, right=.98, bottom=.001, top=.96, wspace=.05, |
| 66 | +plt.figure(figsize=(9 * 2 + 3, 13)) |
| 67 | +plt.subplots_adjust(left=.02, right=.98, bottom=.001, top=.95, wspace=.05, |
68 | 68 | hspace=.01)
|
69 | 69 |
|
70 | 70 | plot_num = 1
|
|
135 | 135 | n_components=params['n_clusters'], covariance_type='full')
|
136 | 136 |
|
137 | 137 | clustering_algorithms = (
|
138 |
| - ('MiniBatchKMeans', two_means), |
139 |
| - ('AffinityPropagation', affinity_propagation), |
| 138 | + ('MiniBatch\nKMeans', two_means), |
| 139 | + ('Affinity\nPropagation', affinity_propagation), |
140 | 140 | ('MeanShift', ms),
|
141 |
| - ('SpectralClustering', spectral), |
| 141 | + ('Spectral\nClustering', spectral), |
142 | 142 | ('Ward', ward),
|
143 |
| - ('AgglomerativeClustering', average_linkage), |
| 143 | + ('Agglomerative\nClustering', average_linkage), |
144 | 144 | ('DBSCAN', dbscan),
|
145 | 145 | ('OPTICS', optics),
|
146 | 146 | ('BIRCH', birch),
|
147 |
| - ('GaussianMixture', gmm) |
| 147 | + ('Gaussian\nMixture', gmm) |
148 | 148 | )
|
149 | 149 |
|
150 | 150 | for name, algorithm in clustering_algorithms:
|
|
0 commit comments