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

objective function #16

Open
visez opened this issue Dec 27, 2017 · 0 comments
Open

objective function #16

visez opened this issue Dec 27, 2017 · 0 comments

Comments

@visez
Copy link

visez commented Dec 27, 2017

I have the impression that the objective function implemented in the code might be incorrect.

The returned value of objective_function is var - (left_val + right_val), which is the reduction in variance. According to the paper, the split to be chosen has the LARGEST reduction in variance.

Therefore, in train_recurse it should be (objective >= maximum_objective) instead of (objective < minimum_objective) I think, with maximum_objective initialized to 0.

Otherwise, you are rewarding nodes that divide the parent set into one empty set and a child set with the same elements as the parent set.

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

1 participant