meanX=sum(x)/len(x) ... sumXY=np.sum((x-meanX)*(y-meanY)) ... y_pred = (w*x_test+b).numpy()#将张量类型转化为numpy数组类型.
確定! 回上一頁