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

为什么没有subsample #11

Open
Kiris-tingna opened this issue Sep 24, 2018 · 2 comments
Open

为什么没有subsample #11

Kiris-tingna opened this issue Sep 24, 2018 · 2 comments

Comments

@Kiris-tingna
Copy link

我记得GBDT里有shrinkage和subsample的过程啊 代码里只有列采样

@zhaochangming
Copy link

zhaochangming commented Dec 10, 2018

代码里有shrinkage与subsample这个啊,如下:
shrinkage:
for node in leaf_nodes:
for id in node.get_idset():
f[id][label] += learn_rate*node.get_predict_value()
subsample:
subset = sample(subset, int(len(subset)*self.sample_rate))
还是说我理解错了?

@liudragonfly
Copy link
Owner

@zhaochangming 你是对的

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

3 participants