LFD Book Forum Solutions to exercises
 User Name Remember Me? Password
 Register FAQ Calendar Mark Forums Read

 Thread Tools Display Modes
#1
04-01-2019, 08:08 PM
 napoca-ai Junior Member Join Date: Apr 2019 Posts: 1
Solutions to exercises

Hello,

The course and book are great! I've been going through a number of ML courses and books but this is definitely the best. Thank you Prof Yaser!

Can I find somewhere the solutions for the exercises in the book? It'd be super useful to check my answers against them as I go through the book.

Thanks again for all this, Prof Yaser!

LR
#2
04-04-2019, 03:02 AM
 htlin NTU Join Date: Aug 2009 Location: Taipei, Taiwan Posts: 610
Re: Solutions to exercises

There is no solution manual pdf for distribution. But you are very welcomed to discuss about your answers with the community here.
__________________
When one teaches, two learn.
#3
04-17-2019, 06:16 AM
 ppaquay Junior Member Join Date: Apr 2018 Location: Liège (Belgium) Posts: 9
Re: Solutions to exercises

Hi,

You could also check out my solutions to the book problems on GitHub :

https://github.com/ppaquay/Learning-from-Data-Solutions

Best regards !
#4
02-23-2021, 07:35 AM
 Roelof Junior Member Join Date: Feb 2021 Posts: 4
Re: Solutions to exercises

In problem 1.1 the bags and the suggested use of Bayes Theorem is a bit of a red Herring. You have 4 balls 3 of which are black. You pick one ball which is black. There are now 3 balls 2 of which are black. The chance that you pick a black one is 2 out of 3. It doesn't matter how many bags there are (as long as there is at least one ball in each bag) or from which bag you choose the second ball (as long as there is a ball in it).

So for example if I have 10 balls spread over 3 bags (e.g. 4,4,2) and one is white and the first ball I pick is black. Then the chance I pick another black ball from any particular bag is 8/9. Try solving this using the Bayesian Theorem :^).

You can think of the bags as groupings on the balls on a table in the dark. If you select a ball from one group it doesn't matter which group you select the second ball from.
#5
02-23-2021, 09:09 AM
 Roelof Junior Member Join Date: Feb 2021 Posts: 4
Re: Solutions to exercises

Quote:
 Originally Posted by ppaquay Hi, You could also check out my solutions to the book problems on GitHub : https://github.com/ppaquay/Learning-from-Data-Solutions Best regards !
In problem 1.3(c)
you make the step:

||w(t-1) + y(t-1)x(t-1)||^2 = ||w(t-1)||^2 + ||x(t-1)||^2 +2 y(t-1)w^T(t-1)x(t-1)

What lemma are you basing this step on?

You can prove by simple algebraic manipulation (so no need for use of a lemma) by using w(t)=w(t-1)+y(t-1) and the definition of ||w||^2 namely, w^T w

 Thread Tools Display Modes Linear Mode

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is Off Forum Rules
 Forum Jump User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home General     General Discussion of Machine Learning     Free Additional Material         Dynamic e-Chapters         Dynamic e-Appendices Course Discussions     Online LFD course         General comments on the course         Homework 1         Homework 2         Homework 3         Homework 4         Homework 5         Homework 6         Homework 7         Homework 8         The Final         Create New Homework Problems Book Feedback - Learning From Data     General comments on the book     Chapter 1 - The Learning Problem     Chapter 2 - Training versus Testing     Chapter 3 - The Linear Model     Chapter 4 - Overfitting     Chapter 5 - Three Learning Principles     e-Chapter 6 - Similarity Based Methods     e-Chapter 7 - Neural Networks     e-Chapter 8 - Support Vector Machines     e-Chapter 9 - Learning Aides     Appendix and Notation     e-Appendices

All times are GMT -7. The time now is 02:24 PM.

 Contact Us - LFD Book - Top