摘要: 1.填数据 2.构造神经网络模型 3.训练模型 4.绘图 代码如下 阅读全文
posted @ 2019-04-02 21:55 Archer-Fang 阅读(295) 评论(0) 推荐(0) 编辑
摘要: class torch.nn.Linear(in_features,out_features,bias = True )[来源] 对传入数据应用线性变换:y = A x+ b 参数: in_features - 每个输入样本的大小 out_features - 每个输出样本的大小 bias - 如果 阅读全文
posted @ 2019-04-02 21:28 Archer-Fang 阅读(48739) 评论(0) 推荐(4) 编辑
摘要: Returns a Tensor of random numbers drawn from separate normal distributions who’s mean and standard deviation are given. 这个是官网给出的解释,大意是返回一个张量,张量里面的随机数 阅读全文
posted @ 2019-04-02 20:58 Archer-Fang 阅读(2814) 评论(0) 推荐(0) 编辑
摘要: 为什么要用卷积神经网络? 传统神经网络的劣势 前面说到在图像领域,用传统的神经网络并不合适。我们知道,图像是由一个个像素点构成,每个像素点有三个通道,分别代表RGB颜色,那么,如果一个图像的尺寸是(28,28,1),即代表这个图像的是一个长宽均为28,channel为1的图像(channel也叫de 阅读全文
posted @ 2019-04-02 19:41 Archer-Fang 阅读(425) 评论(0) 推荐(0) 编辑