Not only the two data, a label? Why do you want to have X0??
CodePudding user response:
Linear regression function is actually z=w_0 + x_1 + w_2 w_1 * * x_2W_1 said to solve the first regression coefficient
X_1 said textSet. TXT first data
We finally make sure the three regression coefficient: w_0, w_1, w_2
Why to add x_0=1, in order to z=w_0 + x_1 + w_2 w_1 * * x_2 this form as the form of matrix multiplication, so fill in additional a data x_0=1