![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
机器学习
Lixiangyang的csdn
这个作者很懒,什么都没留下…
展开
-
pytorch学习1-实现一维线性回归
(1)一维线性回归理论基础 (2)代码实现 # -*- coding: utf-8 -*- """ Created on Sat Apr 27 10:10:04 2019 @author: hp """ import torch import torch.nn as nn #引入torch.nn并指定别名 import numpy as np import matplotlib.py...原创 2019-04-27 12:39:45 · 540 阅读 · 0 评论 -
pytorch学习3-使用全连接神经网络进行MNIST数据集分类
1.模型使用 使用一层输入层,一层隐藏层,一层输出层的简单全连接神经网络,激活函数采用relu函数 2.代码如下 # -*- coding: utf-8 -*- """ Created on Mon Apr 29 10:12:03 2019 @author: hp """ import torch import torch.nn as nn import torchvision imp...原创 2019-05-04 16:25:27 · 1721 阅读 · 1 评论 -
pytorch学习2-用逻辑回归实现对MNIST数据集分类
(1)逻辑回归原理 关于逻辑回归原理课可参考这一部分 https://blog.csdn.net/weixin_39445556/article/details/83930186 (2)使用pytorch框架实现对MNIST数据集分类 """ Created on Sun Apr 28 11:41:28 2019 @author: hp """ import torch import...原创 2019-04-29 12:04:51 · 2152 阅读 · 2 评论