说明: #线性方程z=a∗x+b∗y+c表示空间一平面 xx, yy = np.meshgrid(np.linspace(0,10,10), np.linspace(0,100,10)) zz = 1.0 * xx + 3.5 * yy + np.random.randint(0,100,(10,10)) #随机生成空间上的x,y,z坐标 print(yy) # 构建成特征值的形式 X, Z = np.column_stack((xx.flatten(),yy.flatten())), zz.flat
<qq_33912144> 上传 | 大小:1kb