请问以下代码哪一块是计算精度的部分

import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
p = pd.read_excel('D:\zip\zip.xlsx',sheet_name='Sheet1')
data=np.array(p)
print(data.shape)
x,y = data[:,0].reshape(-1,1),data[:,1]
from sklearn import datasets, linear_model
regr = linear_model.LinearRegression().fit(x,y)
regr.score(x, y)
plt.scatter(x, y, color='red')
plt.plot(x, regr.predict(x), color='blue')
plt.xlabel('height(cm)')
plt.ylabel('weight(kg)')
plt.show()
height=int(input("输入你的身高"))
print ("%d cm的标准体重是 %.2f kg"%(height, regr.predict([[height]])))

%.2f 是这里格式化输出时只输出2位吧

聊大大数据吗0-0