Load the data stored in the file synthdata.mat. Fit a fourth-order polynomial function (-f(x ; mathbf{w})=w_{0}+w_{1} x+w_{2}

Question:

Load the data stored in the file synthdata.mat. Fit a fourth-order polynomial function \(-f(x ; \mathbf{w})=w_{0}+w_{1} x+w_{2} x^{2}+w_{3} x^{3}+w_{4} x^{4}-\) to this data. What do you notice about \(w_{2}\) and \(w_{4}\) ? Use 10 -fold cross-validation to choose the polynomial order (between 1 and 4).

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

A First Course In Machine Learning

ISBN: 9781498738484

2nd Edition

Authors: Simon Rogers , Mark Girolam

Question Posted: