aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornunzip <np.scarh@gmail.com>2019-03-08 11:43:11 +0000
committernunzip <np.scarh@gmail.com>2019-03-08 11:43:11 +0000
commit4a0b1bd9b6a622007e9e5b5e99f49c3a5249d16b (patch)
tree834ad5dc476b37e2fa269630c4c26c3bd29d9e54
parent54e248d0d28bb6faeaefa8b25195af236ec70150 (diff)
downloade4-gan-4a0b1bd9b6a622007e9e5b5e99f49c3a5249d16b.tar.gz
e4-gan-4a0b1bd9b6a622007e9e5b5e99f49c3a5249d16b.tar.bz2
e4-gan-4a0b1bd9b6a622007e9e5b5e99f49c3a5249d16b.zip
Change PCA color
-rw-r--r--lenet.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lenet.py b/lenet.py
index 7c4c48c..39a5cd7 100644
--- a/lenet.py
+++ b/lenet.py
@@ -176,7 +176,7 @@ def test_classifier(model, x_test, y_true, conf_mat=False, pca=False):
pca_rep = set_pca.fit_transform(pca_rep)
print(pca_rep.shape)
pca_rep, y_tmp = shuffle(pca_rep, y_true, random_state=0)
- plt.scatter(pca_rep[:100, 0], pca_rep[:100, 1], c=y_true[:100], edgecolor='none', alpha=0.5, cmap=plt.cm.get_cmap('Spectral', 10))
+ plt.scatter(pca_rep[:100, 0], pca_rep[:100, 1], c=y_true[:100], edgecolor='none', alpha=0.5, cmap=plt.cm.get_cmap('Paired', 10))
plt.xlabel('component 1')
plt.ylabel('component 2')
plt.colorbar();