摘要:
本次学习实现线性回归。 采用两种方法实现,第一种为手动方法,第二种为pytorch的autograd方法。 一、手动实现线性回归 导入对应包 import torch as t %matplotlib inline from matplotlib import pyplot as plt from 阅读全文
摘要:
最近在学习Pytorch,先照着别人的代码过一遍,加油!!! 加载数据集 # 加载数据集及预处理 import torchvision as tv import torchvision.transforms as transforms from torchvision.transforms impo 阅读全文