Share E-Book
Scan to open this page

Scan with your phone to open this page

Author: 侯宜军

Rating No ratings yet

No description

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

Brief outline
【One-Line Pitch】 PyTorch深度学习实战 (侯宜军) (Z-Library) (侯宜军): a quick map of the book's arc and key takeaways for busy readers. 【Book Arc】 - **Opening (~0%–12%)**: 本书的 标 群主要定位为具有 定Python编程基础,对机器学习和神 经 络有 定了解的程序员们。; import numpy as np np.array([1,2,3]) array([1, 2, 3]) 成功安装 numpy。 - **Early (~12%–35%)**: beta_1/beta_2:浮点数, 0 beta 1,通常很接近 1。; npy ") 9 卷积层 卷积层是 个固定 的矩形区去席卷原始数据,将原始数据分成 个个和卷积核 相同的 块,然后将这些 块和卷积核相乘输出 个卷积值(注意:这 是 个单独的值,不再是矩阵了)。 - **Middle (~35%–65%)**: els X_train, y_train load_mnist('./data', kind 'train') print('Rows: %d, columns: %d' % (X_train.…; 11.3 开始训练 数据准备好,模型建 好,下 根据神经 络的三部曲,就是选择损 失函数和梯度算法对模型进 训练了。 - **Late (~65%–88%)**: 与右图对应的结构元素如下。通过它可以找到“下 三个像素为 、 左上像素为 的 像素”。; 将要输 在当前位置时忘记。我们仅仅输 新的值到那些我 们已经忘记旧的信息的那些状态 。 - **Ending (~88%–100%)**: __init__(self): super(LSTMNet, self).__init__() self.hidden_dim HIDDEN_DIM self.embedding_dim EMB…; ity correct pred.eq(target.data).cpu().sum() test_loss test_loss test_loss / len(x_test) # loss f… 【Key Takeaways】 - **本书的 标 群主要定位为具有 定Python编程基础** (Opening): 本书的 标 群主要定位为具有 定Python编程基础,对机器学习和神 经 络有 定了解的程序员们。 - **import numpy as np np.…** (Opening): import numpy as np np.array([1,2,3]) array([1, 2, 3]) 成功安装 numpy。 - **F sample Variable(torc…** (Opening): F sample Variable(torch.ones(2,2)) a torch.Tensor(2,2) a[0,0] 0 a[0,1] 1 a[1,0] 2 a[1,1] 3 target Variable (a) sample 的值为:[[1,1],[1,1]]。 - **beta_1/beta_2** (Early): beta_1/beta_2:浮点数, 0 beta 1,通常很接近 1。 - **npy ") 9 卷积层 卷积层是 个固定…** (Early): npy ") 9 卷积层 卷积层是 个固定 的矩形区去席卷原始数据,将原始数据分成 个个和卷积核 相同的 块,然后将这些 块和卷积核相乘输出 个卷积值(注意:这 是 个单独的值,不再是矩阵了)。 - **较容易理解,就是将多个元素 个统计值来表 。…** (Early): 较容易理解,就是将多个元素 个统计值来表 。为什么 要池化? 【Reading Tips】 - Use Passage locations below to jump into the text and set reading anchors - If this is a brief outline, click Regenerate (top right) for a synthesized guide 【Coverage Limits】 Compressed outline without the model (~18 index chunks). Full structured guide needs AI available.
Page 12
tup.py install 然后安装 pip,和 setuptools 过程类似: wget --no-check-certificate https://github.com/pypa/pip/archive/1.5.5.tar.gz 解压之后进⼊⽬录pip-1.5.5 安装python setup.py i...
View in text
Excerpt 2
的问题的⽅案中,分⺟已经是 ∂f/∂x 的⼀ 个近似了。这⾥我们可以构造 Δx 的近似,来模拟得到 H-1 的近似,从 ⽽得到近似的⽜顿迭代法。具体做法如下: keras.optimizers.Adam(lr=0.001, beta_1=0.9, beta_2=0.999, epsilon=1e-08) 该优化器...
View in text
Excerpt 3
els X_train, y_train = load_mnist('./data', kind='train') print('Rows: %d, columns: %d' % (X_train.shape[0], X_train.shape[1])) X_test, y_test = load_mnist('...
View in text
Excerpt 4
loss = F.nll_loss(output, target) loss.backward() optimizer.step() if k % 10 == 0: print('Train Epoch: {} [{}/{} ({:.0f}%)]\tLoss: {:.6f}'.format( epoch, k *...
View in text
Excerpt 5
张张的图⽚,利⽤ opencv 库可以很容易的从视频⽂件 中抽离出图像⽂件来,下⾯我们就看⼀段⽰例代码是如何从视频⽂件 中抽取出多张图⽚的。 例⼦: import cv2 cap = cv2.VideoCapture("F:/ai/a_002.mp4") success, frame = cap.read() i...
View in text
Excerpt 6
将要输⼊在当前位置时忘记。我们仅仅输⼊新的值到那些我 们已经忘记旧的信息的那些状态 。 coupled 忘记门和输⼊门 另⼀个改动较⼤的变体是 Gated Recurrent Unit (GRU),这是由 Cho, et al. (2014) 提出。它将忘记门和输⼊门合成了⼀个单⼀的更新门 。同样 还混合了细胞状...
View in text
Excerpt 7
ity correct += pred.eq(target.data).cpu().sum() test_loss = test_loss test_loss /= len(x_test) # loss function already averages over batch size if i % 10 ==...
View in text
Excerpt 8
=False)) #,requires_grad=False) #data, target = Variable(x_train[start:end],requires_grad=False), Variable(y_train[start:end],requires_grad=False) #data, tar...
View in text
Tags
AI categories
Shown after the reading guide is generated (max 3)
Publish Year: 2017
Language: Chinese
File Format: PDF
File Size: 2.5 MB
Text Preview (First 20 pages)
Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

Generating text preview…