Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PCA Week 1: Mean/Covariance of a data set and effect of a linear transformation #2

Open
yonikremer opened this issue Aug 31, 2021 · 0 comments

Comments

@yonikremer
Copy link

(shapes (2, 1), (3,) mismatch)
x: array([[0.666667],
[1.333333]])
y: array([0.5, 1.5, 1. ])

def mean(X):
D, N = X.shape
mean = np.zeros((D,1))
mean = np.mean(X, axis=1, keepdims=True)
return mean

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant