摘要:
# 先构造正弦函数 + 噪音 import numpy as np rng = np.random.RandomState(1) X = np.sort(5 * rng.rand(80, 1), axis=0) # 生成 0~5之间随机数据,并排序,因为 sklearn用二维特征数据,所以定义数据时 阅读全文
posted @ 2021-01-01 08:39
jaysonteng
阅读(801)
评论(0)
推荐(0)
浙公网安备 33010602011771号