Supervised Learning: Exercise

Supervised Learning: Exercise#

import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline

1. Implement an online version of linear regression.

2. Implement linear regression using Gaussian basis fuctions. Test that with the nonlinear pendulum data in ‘data/pend2.txt’.

3. Implement a batch version of logistic regression by iterative least squares.