r/MachineLearning • u/xepo3abp • Sep 24 '20
Project [P] Mathematics for Machine Learning - Sharing my solutions
Just finished studying Mathematics for Machine Learning (MML). Amazing resource for anyone teaching themselves ML.
Sharing my exercise solutions in case anyone else finds helpful (I really wish I had them when I started).
22
Sep 24 '20
Thank you
0
Sep 25 '20
[deleted]
1
u/Nyquiiist Sep 26 '20
What was ur background before FrontEnd ? and what is it you were struggling with ?
4
Sep 24 '20
I don't like the book very much tbh, it glances over the developments of some examples where as a building blocks it's really important to do so.
There are too few examples imo as well
5
u/sj90 Sep 24 '20
It's not at all meant to be learnt from as per me. It's meant to be a reference for topics you are already reasonably familiar with and going beyond here and there so that you understand the relation to ML.
I had some topics in math that I wasn't good at all. Going through that book made things worse for me to try and learn them. Had to leave the book and study those topics separately from courses and books focused on just those topics.
Won't recommend most people to learn from this book unless they have a good foundation in most of those topics already.
I found the course to be even more shallow.
1
u/samketa Researcher Sep 24 '20
Can you please share where are you learning ML from? What's your next step in learning it, i.e. what's the next book you are going to read or the next course you are going to take?
9
u/xepo3abp Sep 24 '20
Depends what's your goal.
Firstly, if it's a phd / something theoretical then this book should be a starting point before diving into things like Elements of Statistical Learning / https://www.deeplearningbook.org/ / Pattern Recognition and Machine Learning. All those are what I would class as "hard".
If it's anything remotely practical then honestly looking back there is 1 resource I would recommend over everything I've tried - https://www.fast.ai/
Read their (new) book, do their tuts. Then either:
- Learn some pandas / do something like https://www.dataquest.io/ and go down the data science / ML path, or
- Go deeper into a specific part of ML you're interested in (eg GANs, RL, NLP) and become a specialist, or
- Learn data eng and go down the ML eng path
If you want to "build" stuff I strongly recommend the last one. You don't need that much math/ml to build a product - 90% is building APIs and boilerplate.
2
u/samketa Researcher Sep 24 '20 edited Sep 24 '20
I have learned pandas, matplotlib, seaborn, scipy, etc. I am comfortable with sklearn, I already finished the 1st part of fast.ai of 2019 and 2020, and I agree that it's the best resource for practical DL out there. I am also going through the book (currently in the 9th chapter).
Actually, despite being from a Physics background, I spent a lot of time learning math I already knew and more. I have done the IBM DS Professional Certificate, Stanford ML Course (Coursera), etc. and *I am yet to use the math*. I have gone over a significant portion of ISLR, and the math wasn't any trouble. I have also finished some chapters from Hands-on Machine Learning. I have done one week or two from the first course in DL Specialization (Coursera).
I asked you the question because honestly, the math I have encountered in these resources was really basic. When am I going to see some complicated math that I encountered while studying Math for ML (not the particular book)? Do I ever get to see some use of it?
I am interested in the last two paths you mentioned- NLP and CV, and ML Engineering.
*I am not seeing complicated math, and that makes me think if I am going down the wrong path.* Could you please comment on these issues?
ML/DL is not anywhere in my curricula and I am studying on my own. So, please be gentle.
3
u/ricetoseeyu Sep 25 '20
In my experience the āharderā maths are from reading papers, where itās less āhand holdingā compared to textbooks.
2
u/kennysong Sep 25 '20 edited Nov 14 '20
All the resources you mentioned are practically oriented and heavily de-emphasize the math. For most practical applications, that's all you need. If you want to explore the theory side, I suggest Stanford's CS229 (much, much harder than the Coursera course) for self learners. Lectures, notes, psets are all online from Autumn 2018.
You might also want to explore some of the classic ML textbooks like Murphy, Hastie, or Bishop.
3
u/samketa Researcher Sep 25 '20
Thanks for replying.
I intend to go through Hastie and Bishop. And I will look at CS229.
Although I want to focus on practical concrete applications, I would like to publish papers someday.
That's why I am worried. Focusing on one aspect of DL might make me not on the edge of the other.
1
u/TWDestiny Sep 24 '20
Thatās super cool! I started reading shortly half a year ago or smth but without any solutions I didnāt have the will to pull trough
1
u/berzerker_x Sep 24 '20
I saw the contents of the book from the site given, I think that if you are considering basic "mathematical" foundations of Machine Learning then we will have to take 2 sides:
linear algebra and optimizations
Learning Theory ( It can be statistical or computational )
I would think that the second part should also be given importance in the same way as the first part, of course this goes only if we are considering Machine Learning a whole new field entirely and we want to introduce to the kids, who want to pursue this field, the introduction to the tools with which they can start.
1
u/SonLe28 Sep 24 '20
This book is really good, thanks for sharing. I usually use it a reference for my works
1
u/seraschka Writer Sep 24 '20
Awesome! It looks like good companion book for teaching ML & DL classes (and for self study :) ). Next to your solutions (thanks for sharing!) do you know if the authors provide solutions (inside the book or as separate instructor copies) along with the textbook?
1
1
1
1
u/JaxSerling Sep 25 '20
Thank you. I've been trying to learn more about machine learning and I just heard about fast.ai and now this. I will be busy for a while.
1
u/StudntofLifesVersion Sep 25 '20
I've been in this game along time, and I only started to grasp math four months ago when I finally figured out I could hire a math tutor online...dow...now I'm up to my neck in Ito Calculus...lol.
1
u/igrek-code Sep 30 '20
Hey, i've just noticed a mistake on question 6, it's ā tr[AXB]/ āX = (A)t . (B)t, not (B)t . (A)t.
Where (A)t denotes the transpose of A and A . B is the matrix multipltication.
1
1
Dec 21 '20
Just found this now and I owe you my greatest thanks. The fact that official solutions are not allowed, even in the paid book, is outrageous. Learning for everyone!
1
u/aristizabal95 Student Dec 29 '20
I spent two days trying to solve the exercise 2.5.a never finding a solution. Guess I must reread the rank section because I didn't know you could determine no solution by checking the rank. Thanks!
1
u/Quarantain Jun 18 '24
I'm trying to self learn and this book sounds like an excelkent resource.Does anybidy gave the solution book(examination copy)? I looked into ordering it from Cabridge Press but it's only available to verified lecturers and instructors. Without it there is little feeback for correction.
1
1
1
0
0
1
Sep 24 '20
[removed] ā view removed comment
18
u/xepo3abp Sep 24 '20
2
u/redd_pratik Sep 24 '20
I'd recommend Strang's Lin Alg course on mit ocw :)
1
u/xepo3abp Sep 24 '20
It's great but I would argue the Imperial Coursera course is actually easier
1
u/redd_pratik Sep 24 '20
Honestly, I didn't like the Coursera one. I found it a bit abstract including the Multivariate Calculus course. But the exercises were really nice.
2
Sep 24 '20 edited Sep 24 '20
[removed] ā view removed comment
5
u/xepo3abp Sep 24 '20
If you've never touched any of those topics, then yes you should do something on each one before starting the book. Find something simpler for probability / optimization though, the ones I linked will set you back months at at ime.
The book is more of a refresher than a "from ground 0" course.
Sequential is fine.
11
u/[deleted] Sep 24 '20
Can you give me your thoughts on the course? I am strongly considering it.
Edit: Sorry I thought you were talking about the Coursera course with the same/similar name.
What are your thoughts on the book?