2022年9月14日

摘要: autograd实现线性回归 In [1]: import torch as t from torch.autograd import Variable as V from matplotlib import pyplot as plt from IPython import display In  阅读全文

posted @ 2022-09-14 14:56 cc小张 阅读(18) 评论(0) 推荐(0) 编辑

摘要: 线性回归 In [1]: import torch as t %matplotlib inline from matplotlib import pyplot as plt from IPython import display In [2]: # 设置随机种子,保证在不同计算机上运行时下面的输出一 阅读全文

posted @ 2022-09-14 13:44 cc小张 阅读(18) 评论(0) 推荐(0) 编辑


Copyright © 2024 cc小张
Powered by .NET 8.0 on Kubernetes