This is the homework from CS5651 Machine Learning in National Tsing Hua University.
Implenment Linear Regression to predict
W is a
Next, apply normal function to derive W.
Do normalization and take logarithm
For error rate, it is the average of
Without data preprocessing, the error rate of testing part is 0.344205405993.
With data preprocessing, the error rate is 0.314443644703.