Deep Learning for NLP学习翻译笔记(2)
Deep Learning for NLP
Deep Learning for NLP
Lecture 2:Introduction to Teano
Neural Networks can be expressed as one long function of vector and matrix operations.
(神经网络可以表示为一个向量和矩阵运算的长函数。)
Common Frameworks(常用框架)
- C/C++
if you need maximum performance,start from scratch(如果你需要最高性能,那么就从头开始编程吧:) - Matlab
- Caffe
Ported Matlab’s implementation nets to C.(Caffe是纯粹的C++/CUDA架构,支持命令行、Python和MATLAB接口)
Mainly used for machine-vision(主要用于机器视觉。) - Torch:
Based on Lua,(基于Lua,)
Used by a lot of companies(Google Deep Mind,Facebook,IBM)(被很多公司所使用,包括google深度大脑,facebook,IBM等等) - Theano
Python based framework(python基本的框架)
Main framework used in the research community(主要框架被用于研究团队)
For comparison: http://fastml.com/torch-vs-theano/
Introduction to Theano
Advantage(优点)
- Python library with tight integration of Numpy(python库Numpy的紧密集成)
Easy syntax for matrix operations(简单的矩阵运算语法) - Transparent use of GPU(speed-up of up to 140x)(透明的GPU使用(加速140x))
- Efficient symbolic differentiation(Theano computes the gradient)(有效的符号微分(Theano计算梯度))
- Speed and stability optimizations(速度和稳定性优化)
- Calculations are dynamically mapped to C code(计算动态映射到C代码)
We do our computations as fast as we would have written it in C (我们有跟我们用C代码写出来的程序一样快的运算速度)
Great performance(>10 faster than Java in my experiments)(伟大的性能(比在我的实验中用Java还要快10倍))
Disadvantages(缺点)
- Debugging is really hard(调试很困难)
Some note on the installation of Theano(Theano安装的一些注意事项)
- Theano utilizes BLAS (Basic Linear Algebra Subprograms)(Theano利用BLAS(基本线性代数的子程序))
Building blocks for fast vector and matrix operations(速度向量和矩阵运算的构建块)
Often written in Fortran, sometimes in Assembler(经常用Fortran编写,但有时候用Assembler) - For performance optimization install a BLAS package(为优化性能安装一个BLAS包)
- Benchmark different BLAS packages(不同BLAS包的基准不同)
- I use a manually compiled OpenBlas implementation(我使用一个手动编译OpenBlas来实现)
Installation notes: http://deeplearning.net/software/theano/install_ubuntu.html
Theano – Flow(Theano流程图)
The execution of a Theano script is a bit different(Theano脚本的执行略有不同)
Theano-Computation Graph(Theano计算图)
import theano
import theano.tensor as T
a=T.fvector()
b=T.fvector()
c=T.fmatrix()
res1=a+b
res2=T.dot(res1,c)
Deep Learning for NLP学习翻译笔记(2)的更多相关文章
- (Stanford CS224d) Deep Learning and NLP课程笔记(一):Deep NLP
Stanford大学在2015年开设了一门Deep Learning for Natural Language Processing的课程,广受好评.并在2016年春季再次开课.我将开始这门课程的学习 ...
- 【转】Deep Learning(深度学习)学习笔记整理系列之(一)
Deep Learning(深度学习)学习笔记整理系列 zouxy09@qq.com http://blog.csdn.net/zouxy09 作者:Zouxy version 1.0 2013-0 ...
- Deep Learning(深度学习)学习笔记整理系列之(五)
Deep Learning(深度学习)学习笔记整理系列 zouxy09@qq.com http://blog.csdn.net/zouxy09 作者:Zouxy version 1.0 2013-04 ...
- Deep Learning(深度学习)学习笔记整理系列之(八)
Deep Learning(深度学习)学习笔记整理系列 zouxy09@qq.com http://blog.csdn.net/zouxy09 作者:Zouxy version 1.0 2013-04 ...
- Deep Learning(深度学习)学习笔记整理系列之(七)
Deep Learning(深度学习)学习笔记整理系列 zouxy09@qq.com http://blog.csdn.net/zouxy09 作者:Zouxy version 1.0 2013-04 ...
- Deep Learning(深度学习)学习笔记整理系列之(六)
Deep Learning(深度学习)学习笔记整理系列 zouxy09@qq.com http://blog.csdn.net/zouxy09 作者:Zouxy version 1.0 2013-04 ...
- Deep Learning(深度学习)学习笔记整理系列之(四)
Deep Learning(深度学习)学习笔记整理系列 zouxy09@qq.com http://blog.csdn.net/zouxy09 作者:Zouxy version 1.0 2013-04 ...
- Deep Learning(深度学习)学习笔记整理系列之(三)
Deep Learning(深度学习)学习笔记整理系列 zouxy09@qq.com http://blog.csdn.net/zouxy09 作者:Zouxy version 1.0 2013-04 ...
- Deep Learning(深度学习)学习笔记整理系列之(二)
Deep Learning(深度学习)学习笔记整理系列 zouxy09@qq.com http://blog.csdn.net/zouxy09 作者:Zouxy version 1.0 2013-04 ...
随机推荐
- Android——采用SQLiteDatabase操作SQLite数据库
除了能够使用文件或SharedPreferences存储数据.还能够选择使用SQLite数据库存储数据. 在Android平台上,集成了一个嵌入式关系型数据库-SQLite,SQLite3支持 NUL ...
- Linux下patch打补丁命令
此命令用于为特定软件包打补丁,他使用diff命令对源文件进行操作. 基本命令语法: patch [-R] {-p(n)} [--dry-run] < patch_file_name p:为pat ...
- ssh框架用JUnit测试
public class testAuxDict { //读spring配置文件 public static BeanFactory factory = new ClassPathXmlApplica ...
- SqlServer查询数据库所有表
//SqlServer查询数据库所有表SELECT * FROM SYSOBJECTS WHERE TYPE='U' and name like '%dict%'
- 使用PowerDesigner创建数据库表图文并茂版
使用PowerDesigner创建数据库表图文并茂版 使用PowerDesigner 建数据库表. 一直很忙,没有时间写东西.这次搞点会声会色的,嘿嘿 此技能为项目经理必备技能. 本次主角: 1.在w ...
- 游戏基础元素之精灵——Cocos2d-x学习历程(九)
1.创建精灵 在实际使用中,精灵是由一个纹理创建的.在不加任何设置的情况下,精灵就是一张显示在屏幕上的图片.通常精灵置于层下,因此我们首选在层的初始化方法中创建精灵,设置属性,并添加到层中. 有多种方 ...
- cocos2dx中包含svn
因为不想从svn上载下整个工程,就只把Classes和Resources载下来了,在打安卓包时出现WindowsError: [Error 5] : 'D:\\CocosProject\\(Proje ...
- Ubuntu12.04 配置Java开发环境:JDK1.7+Eclipse+Tomcat7.0
软硬件环境 Ubuntu12.04+JDK1.7+Eclipse+Tomcat7.0 内容列表 1.安装JDK1.7,配置JAVA环境 2.安装Eclipse 3.安装Tomcat7.0 1.安装JD ...
- hadoop笔记之Hive入门(Hive的体系结构)
Hive入门(二) Hive入门(二) Hive的体系结构 ○ Hive的元数据 Hive将元数据存储在数据库中(metastore),支持mysql.derby.oracle等数据库,Hive默认是 ...
- 通过SocketLog快速分析php程序
转载自http://www.thinkphp.cn/topic/10846.html 正在运行的API有bug,不能var_dump进行调试,因为会影响client的调用.这时候用SocketLog最 ...