diff options
author | nunzip <np.scarh@gmail.com> | 2019-03-08 11:43:11 +0000 |
---|---|---|
committer | nunzip <np.scarh@gmail.com> | 2019-03-08 11:43:11 +0000 |
commit | 4a0b1bd9b6a622007e9e5b5e99f49c3a5249d16b (patch) | |
tree | 834ad5dc476b37e2fa269630c4c26c3bd29d9e54 | |
parent | 54e248d0d28bb6faeaefa8b25195af236ec70150 (diff) | |
download | e4-gan-4a0b1bd9b6a622007e9e5b5e99f49c3a5249d16b.tar.gz e4-gan-4a0b1bd9b6a622007e9e5b5e99f49c3a5249d16b.tar.bz2 e4-gan-4a0b1bd9b6a622007e9e5b5e99f49c3a5249d16b.zip |
Change PCA color
-rw-r--r-- | lenet.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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(); |