week4 Wed# Implement linear regression as a class. Our implementation is similar to the one in sklearn.