喀戎

导航

2021年4月8日 #

手写神经网络(MNIST手写数字识别)

摘要: 1 # 手写神经网络——mnist手写数字数据集 2 import numpy as np 3 # import torch 4 import torchvision 5 import torchvision.transforms as transforms 6 # from torch.utils 阅读全文

posted @ 2021-04-08 11:01 Estrellay 阅读(264) 评论(0) 推荐(0) 编辑

np.dot()

摘要: 1. 向量点积 2. 矩阵乘法 阅读全文

posted @ 2021-04-08 10:12 Estrellay 阅读(54) 评论(0) 推荐(0) 编辑

np.random.random()

摘要: 阅读全文

posted @ 2021-04-08 09:57 Estrellay 阅读(43) 评论(0) 推荐(0) 编辑

np.zeros()

摘要: 阅读全文

posted @ 2021-04-08 09:56 Estrellay 阅读(42) 评论(0) 推荐(0) 编辑

2021年3月12日 #

3.3 线性回归的简洁实现

摘要: 1 3.3 线性回归的简洁实现 2 import torch 3 from torch import nn 4 import numpy as np 5 torch.manual_seed(1) 6 7 print(torch.__version__) 8 torch.set_default_ten 阅读全文

posted @ 2021-03-12 17:13 Estrellay 阅读(54) 评论(0) 推荐(0) 编辑