1 Star 0 Fork 0

解孔明/Somiao-Pinyin

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
hyperparams.py 619 Bytes
一键复制 编辑 原始数据 按行查看 历史
crownpku 提交于 2017-09-09 14:18 . update encoding
class Hyperparams:
'''Hyper parameters'''
isqwerty = True # If False, 10 keyboard layout is assumed.
# model
embed_size = 300 # alias = E
encoder_num_banks = 16
num_highwaynet_blocks = 4
maxlen = 50 # maximum number of a pinyin sentence
minlen = 10 # minimum number of a pinyin sentence
norm_type = "bn" # Either "bn", "ln", "ins", or None
dropout_rate = 0.5
# training scheme
lr = 0.0001
logdir = "log/qwerty" if isqwerty is True else "log/nine"
#batch_size = 64
#num_epochs = 20
batch_size = 200
num_epochs = 30
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ojiejieo/Somiao-Pinyin.git
git@gitee.com:ojiejieo/Somiao-Pinyin.git
ojiejieo
Somiao-Pinyin
Somiao-Pinyin
master

搜索帮助