
pytorch
HanWang~
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
python读写excel
目的,去除指定行列的¥符号。原创 2022-11-17 16:48:18 · 254 阅读 · 0 评论 -
python内置函数的时间复杂度
https://wiki.python.org/moin/TimeComplexity转载 2020-01-28 17:41:38 · 501 阅读 · 0 评论 -
莫烦pytorch学习01:pytorch与numpy之间的转换
import torchimport numpy as np#abs 绝对值转换data = [-1,-2,-3,4]tensor = torch.FloatTensor(data) #32bit浮点数print( '\nabs', '\nnumpy',np.abs(data), '\ntorch',torch.abs(tensor),)print( ...原创 2019-03-25 15:17:41 · 540 阅读 · 0 评论 -
莫烦pytorch学习02:Variable变量
import torchfrom torch.autograd import Variabletensor = torch.FloatTensor([[1, 2], [3, 4]])variable = Variable(tensor, requires_grad=True) #numpy张量变为Variable, requires_grad用来指定是否需要计算梯度t_out = t...原创 2019-03-26 15:03:22 · 270 阅读 · 0 评论 -
莫烦pytorch学习03:激励函数及matplot展示
来源https://github.com/MorvanZhou/PyTorch-Tutorial/blob/master/tutorial-contents/203_activation.py#线性方程linear和非线性方程nonlinear#非线性任务达成#y=Wx(神经网络) (y预测值W所需参数x输入值)--> y = AF(Wx)#AF()为非线性方程,激励函数,可自建可微...转载 2019-03-26 15:38:09 · 215 阅读 · 0 评论 -
莫烦pytorch学习04:神经网络之回归(Regression)
来源https://github.com/MorvanZhou/PyTorch-Tutorial/blob/master/tutorial-contents/301_regression.pyimport torchimport torch.nn.functional as Fimport matplotlib.pyplot as plt# torch.manual_seed(1) ...转载 2019-03-26 16:38:49 · 1719 阅读 · 2 评论 -
莫烦pytorch学习05:神经网络之分类(Classification)
来源https://github.com/MorvanZhou/PyTorch-Tutorial/blob/master/tutorial-contents/302_classification.pyimport torchimport torch.nn.functional as Fimport matplotlib.pyplot as plt# torch.manual_seed(1...转载 2019-03-26 18:47:41 · 567 阅读 · 0 评论