摘要:
grad_desc 简单线性回归(梯度下降法)¶ 0.引入依赖¶ In [1]: import numpy as np import matplotlib.pyplot as plt 1.导入数据¶ In [34]: points = np.genfromtxt("data.csv",delimit 阅读全文
摘要:
简单线性回归(最小二乘法)¶ 0.引入依赖¶ In [7]: import numpy as np import matplotlib.pyplot as plt 1.导入数据¶ In [15]: points = np.genfromtxt("data.csv",delimiter=",") #p 阅读全文