Relative Content

Tag Archive for machine-learninglinear-regression

why is my model not making good predictions?

import numpy as np import matplotlib.pyplot as plt x = np.array([[16.46440512, 6.77816537, 4.67693823], [21.45568099, 2.70007973, 10.44515233], [18.08290128, 7.35194022, 5.66627759], [16.34649549, 9.62188545, 2.69405516], [12.70964398, 2.48753144, 0.37018093], [19.37682339, 5.76157334, 1.00874447], [13.12761634, 5.92041931, 10.1908916 ], [26.75319002, 5.72251906, 6.80545267], [28.90988282, 2.23081633, 8.04868817], [11.50324556, 9.52749012, 13.4500694 ], [23.75175114, 4.47125379, 14.85508421], [15.86684759, 8.46408672, 3.25345477], [17.04133683, 6.99479275, 9.94617305], [27.76789915, 2.97436951, 3.94983565], [ […]

Linear reggresion of matrix

Let ( mathbf{X} in mathbb{R}^{n times d} ) be the matrix of regressors, and let ( mathbf{Y} in mathbb{R}^n ) be the response vector. Consider the linear regression model with parameter vector ( mathbf{b} in mathbb{R}^d ). Find the gradient and Hessian of the least squares (LS) functional with respect to the parameter vector ( […]