深度学习Task3
多项式函数拟合实验 %matplotlib inline import torch import numpy as np import sys sys.path.append(“/home/kesci/input”) import d2lzh1981 as d2l print(torch.version) 1.3.0 初始化模型参数 n_train, n_test, true_w, true_b = 100, 100, [1.2, -3.4, 5.6], 5 features = torch.randn((n_train + n_test, 1)) poly_features = torch.
用户评论