numpy 是一个Python库,主要进行矩阵计算等,是一个重要的数据分析库。
np.linspace(start, stop, num=50, endpoint=True, retstep=False,
dtype=None, axis=0)函数说明:返回介于start和stop之间均匀间隔的num个数据的一维矩阵
参数说明:
start:返回样本数据开始点
stop:返回样本数据结束点
num:生成的样本数量,默认为50
endpoint:True则包含stop;False则不包含stop
retstep:如果为True则结果会给出数据间隔
dtype:输出数组类型
axis:0(默认)或-1



