当前位置:网站首页>Pytorch's LSTM parameters explained
Pytorch's LSTM parameters explained
2022-08-02 09:33:00 【A little cute c】
LSTM has a total of 7 parameters:
1: input_size - the size of the input data
2: hidden_size – the size of the hidden layer (ie the number of hidden layer nodes), the dimension of the output vector is equal to the number of hidden nodes
3: num_layers – the number of layers of LSTM stack, the default value is 1 layer, if set to 2, the second LSTM receives the calculation result of the first LSTM.That is, the first layer inputs [ X0 X1 X2 ... Xt ], calculates [ h0 h1 h2 ... ht ], and the second layer takes [ h0 h1 h2 ... ht ] as [ X0 X1 X2 ... Xt ]] The input is calculated again, outputting the final [ h0 h1 h2 ... ht ].
4: bias – whether the hidden layer state has bias, the default is true.bias is the bias value, or offset value
5: batch_first – whether the first dimension of input and output is batch_size, the default value is False
6: dropout – default value 0.Whether to add dropout layers after other RNN layers except the last RNN layer.The input value is a decimal between 0-1 and represents a probability.0 means 0 probability dropout, i.e. no dropout
7: bidirectional – whether it is a bidirectional RNN, the default is: false, if it is true, then: num_directions=2, otherwise it is 1.
边栏推荐
- 小程序云开发(十):渐变与动画
- 四字节的float比八字结的long范围大???
- 日元疲软令游戏机在日本变身“理财产品”:黄牛大赚
- Fiddler(七) - Composer(组合器)克隆或者修改请求
- 【打新必读】麦澜德估值分析,骨盆及产后康复电刺激产品
- Qt读取文件中内容(通过判断GBK UTF-8格式进行读取显示)
- 大厂外包,值得拥有吗?
- [Must read] Mylander valuation analysis, electrical stimulation products for pelvic and postpartum rehabilitation
- AlterNET Studio用户界面设计功能扩展
- EdrawMax Crack,多合一的图表应用程序
猜你喜欢
随机推荐
自定义View实现波浪荡漾效果
MySQL安装与卸载详细教程
使用scrapy 把爬到的数据保存到mysql 防止重复
AutoJs学习-实现科赫雪花
js引擎运行中的预解析(变量提升和函数提升)及相关实操案例
Facebook自动化数据分析方案,广告投放省心省力
稳定币:对冲基金做空 Tether 的结局会是什么?
百数应用中心——选择一款适合企业的标准应用
Fiddler(七) - Composer(组合器)克隆或者修改请求
破解wifi密码 暴力破解 保姆式教学
Nodejs3day(express简介,express创建基本Web服务器,托管静态资源,nodemon下载及出现的问题,中间件,编写GET,POST,JSONP接口)
day1-机器学习-回归问题
spark:热门品类中每个品类活跃的SessionID统计TOP10(案例)
js函数防抖和函数节流及其使用场景
理解JS的三座大山
日元疲软令游戏机在日本变身“理财产品”:黄牛大赚
被报表需求逼疯的银行数据人,是时候放弃用Excel做报表了
小程序云开发(十):渐变与动画
mysql进阶(二十一)删除表数据与数据库四大特性
system_error错误处理库学习









