Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ex7/ex7_pca.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@
# Draw the eigenvectors centered at mean of data. These lines show the
# directions of maximum variations in the dataset.
mu2 = mu + 1.5 * S.dot(U.T)
plt.plot([mu[0], mu2[0, 0]], [mu[1], mu2[0, 1]], '-k', lw=2)
plt.plot([mu[0], mu2[1, 0]], [mu[1], mu2[1, 1]], '-k', lw=2)
plt.plot([[mu[0], mu2[0, 0]], [[mu[1], mu2[0, 1]], '-k', lw=2)
plt.plot([[mu[0], mu2[1, 0]], [[mu[1], mu2[1, 1]], '-k', lw=2)
show()

print 'Top eigenvector: '
Expand Down