Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

训练参数问题 #29

Open
yuquanle opened this issue Apr 7, 2017 · 1 comment
Open

训练参数问题 #29

yuquanle opened this issue Apr 7, 2017 · 1 comment

Comments

@yuquanle
Copy link

yuquanle commented Apr 7, 2017

private int layerSize = 300;
private int window = 5;
private double sample = 1e-3;
private double alpha = 0.025;
private Boolean isCbow = false;
上面参数size,window,负采样阈值,学习率,使用skip。

麻烦解释一下下面这二个参数是代表什么?用此java实现的代码训练词向量默认只迭代一次吗,如果不是,迭代的参数在哪里设置?
public int EXP_TABLE_SIZE = 1000;
private int MAX_EXP = 6;

@CallMeJiaGu
Copy link

public int EXP_TABLE_SIZE = 1000;
private int MAX_EXP = 6;
这个只是把sigmoid函数的值提前算好而已,计算的范围为-6到6,每一个整数划分1000等份。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants