Computational Thinking, Python, Linear Algebra, Math, Mathematics.
We can now look for PCs. We saw that they correspond to values taken by d that maximize the following function: To find d we can calculate the eigenvectors of X^T X eigVals, eigVecs = np.linalg.eig(X_centered.T.dot(X_centered)/100) eigVecs array([[-0.91116273, -0.41204669], [ 0.41204669,