Skip to content

Commit

Permalink
clean up ep 04,06 and fig
Browse files Browse the repository at this point in the history
  • Loading branch information
NidhiGowdra committed Jul 24, 2024
1 parent efc80c3 commit 3c2ad8a
Show file tree
Hide file tree
Showing 2 changed files with 106 additions and 113 deletions.
9 changes: 1 addition & 8 deletions _episodes/06-dimensionality-reduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,14 +170,7 @@ plot_clusters(x_pca, clusters)
And now we can compare how these clusters look against our actual image labels by colour coding our first scatter plot:

~~~
tx = x_pca[:, 0]
ty = x_pca[:, 1]
fig = plt.figure(1, figsize=(5, 4))
plt.scatter(tx, ty, c=labels, cmap="nipy_spectral",
edgecolor='k',label=labels)
plt.colorbar(boundaries=np.arange(11)-0.5).set_ticks(np.arange(10))
plt.show()
plot_clusters_labels(x_pca, labels)
~~~
{: .language-python}

Expand Down
Loading

0 comments on commit 3c2ad8a

Please sign in to comment.