摘要: import random import torch import matplotlib as pl #生成样本,特征和标签 def synthetic_data(w,b,num_examples): x=torch.normal(0,1,(num_examples,len(w))) #均值为0方差 阅读全文
posted @ 2022-04-21 10:09 Protect_Winter 阅读(9) 评论(0) 推荐(0) 编辑