Python實現最簡單的線性迴歸算法

#coding:utf-8 from math import sqrt import matplotlib.pyplot as plt dataset = [[1.2,1.1],[2.4,3.5],[4.1,3.2],[3.4,2.8],[5,5.4]] x = [row[0] for row in dataset] y = [row[1] for row in dataset] pre_y =
相關文章
相關標籤/搜索