The Elements of Statistical Learning 第六章figure6-6 python绘图

#生成0-1均匀分布的随机数 import numpy as np#调用numpy库,目的是使用矩阵,对数据矩阵进行操作 import matplotlib.pyplot as plt#调用matplotlib中的函数pyplot,为画图做准备 np.random.seed(12345) uni_data=np.random.uniform(0,1,size=(100,1)) #在已知functi
相关文章
相关标签/搜索