mikexcohen / linalg4datascience Goto Github PK
View Code? Open in Web Editor NEWCode that accompanies the book "Linear Algebra for Data Science"
Code that accompanies the book "Linear Algebra for Data Science"
Hi, I can't find the file when I download the zip folder. There's only a READM.md. Is that what I should be able to use?
Wrong iterating variable in the nested for loop. y
is used as an iterator as well as an iterated sequence. So after this loop, y is just a scalar(the last element of the initial array y) and not a vector. After that, SSE is computed by subtracting a scalar from a vector:
np.sum((pred_happiness-y)**2
. After changing the iterating variable name SSE is computed correctly, so the original y
vector is subtracted from the pred_happiness
vector.
On page 91 you enumerate matrix spaces, mentioning that the fourth one is right null space, but in the Resume on page 106 you again enumerate them, but this time mentioning left-null space. Which one is correct?
Where can I find errata?
Hello
Noticed that you wrote two textbooks about linear algebra:
i. Linear Algebra: Theory, Intuition, Code
ii. Practical Linear Algebra for Data Science
Based on their descriptions, I would assume that book i. has more content than book ii. and that everything that is book ii. is also in book i.
Is this correct?
With kind regards
Tim
Page 232 shows the incorrect formula:
So
Also, I tested this in the notebook for Chapter 13 by adding some code in the section "Generalized eigendecomposition":
...
C1 = np.linalg.inv(B) @ A
C2 = A @ np.linalg.inv(B)
print(np.round(C1 @ evecs - evals * evecs,6))
print(np.round(C2 @ evecs - evals * evecs,6))
Output:
[[-0. -0. -0. 0.]
[-0. 0. 0. 0.]
[ 0. 0. 0. 0.]
[-0. -0. 0. 0.]]
[[ 0.595699 0.643987 0.379455 0.922702]
[ 0.704559 0.913965 0.558771 -4.758518]
[-0.578492 -0.805236 -0.496454 5.629797]
[ 1.53264 1.720669 1.008171 -0.076947]]
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.