没有合适的资源?快使用搜索试试~ 我知道了~
首页Natural Language Processing with PyTorch 2018
Natural Language Processing with PyTorch 2018
需积分: 14 92 浏览量
更新于2023-05-30
评论
收藏 155KB PDF 举报
Natural Language Processing with PyTorch 2018 Brian McMahan and Delip Rao
资源详情
资源评论
资源推荐

pytorch-nlp-tutorial Documentation
Brian McMahan and Delip Rao
Oct 09, 2018


Extra Resources
1 Getting the Data 1
1.1 Option 1: Download and Setup things on your laptop . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 Option 2: Use O’Reilly’s online resource through your browser . . . . . . . . . . . . . . . . . . . . 1
2 Environment Setup 3
2.1 0. Get Anaconda . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2.2 1. Create a new environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
2.3 2. Install Dependencies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
3 Frequency Asked Questions 7
3.1 Do I Need to have a NVIDIA GPU enabled laptop? . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
4 Migrating to PyTorch 0.4.0 9
5 Take-Home Exercises 11
5.1 Exercise 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
5.2 Exercise 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
6 Solutions 13
6.1 Problem 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
6.2 Problem 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
7 Warm Up Exercise 15
8 Fail Fast Prototype Mode 17
8.1 Prototyping an embedding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
9 Tensor-Fu-1 19
9.1 Exercise 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
9.2 Exercise 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
9.3 Exercise 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
10 Tensor-Fu-2 21
10.1 Exercise 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
10.2 Exercise 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
11 Small Tidbits 23
11.1 Set Seed Everywhere . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
i

12 Exercise: Fast Lookups for Encoded Sequences 25
13 Exercise: Interpolating Between Vectors 27
14 Exercise: Sampling from an RNN 29
15 General Information 31
15.1 Prerequisites: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
15.2 Hardware and/or installation requirements: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
ii

CHAPTER 1
Getting the Data
In this training, there are two options of participating.
1.1 Option 1: Download and Setup things on your laptop
The first option is to download the data below, setup the environment, and download the notebooks when we make
them available. If you choose this options but do not download the data before the first day, we will have several flash
drives with the data on it.
Please visit this link to download the data.
1.2 Option 2: Use O’Reilly’s online resource through your browser
The second option is to use an online resource provided by O’Reilly. On the first day of this training, you will be
provided with a link to a JupyterHub instance where the environment will be pre-made and ready to go! If you choose
this option, you do not have to do anything until you arrive on Sunday. You are still required to bring your laptop.
1
剩余34页未读,继续阅读




















u010652219
- 粉丝: 2
- 资源: 65
上传资源 快速赚钱
我的内容管理 收起
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助

会员权益专享
最新资源
- ARM Cortex-A(armV7)编程手册V4.0.pdf
- ABB机器人保养总结解析.ppt
- 【超详细图解】菜鸡如何理解双向链表的python代码实现
- 常用网络命令的使用 ipconfig ping ARP FTP Netstat Route Tftp Tracert Telnet nslookup
- 基于单片机控制的DC-DC变换电路
- RS-232接口电路的ESD保护.pdf
- linux下用time(NULL)函数和localtime()获取当前时间的方法
- Openstack用户使用手册.docx
- KUKA KR 30 hA,KR 60 hA机器人产品手册.pdf
- Java programming with JNI
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



安全验证
文档复制为VIP权益,开通VIP直接复制

评论0