The Linaer Regression with the properties:
the decision boundary is linear
it is a regression moedl to predict the value respect to the input data
1. visualize the input feature with the related prediction data
2. how to choose the best linear model for the data set?|
define the lost function to measure the predict value between the actual values
Optimization for Linear regression model y = wx + b
Least square method
Linear_Regression.py
# 创建数据集,把数据写入到numpy数组
import numpy as np # 引用