最新回答 / qq_不忘初心_206
import numpy as np from numpy.linalg import invfrom numpy import dotfrom numpy import matimport pandas as pd dataset = pd.read_csv('data.csv')print(dataset)temp = dataset.iloc[:,2:5] #iloc :对数组进行切片# X = mat([1,2,3]).reshape(3,1)# Y = 2*X# # theta = (X'X)^...
2018-04-08