-
Notifications
You must be signed in to change notification settings - Fork 220
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
Add random forest in VFL #523
Conversation
return np.sum(left_child_indicator) / total_num * left_gini + sum( | ||
right_child_indicator) / total_num * right_gini | ||
|
||
def cal_sse(self, split_idx, y, indicator): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, "sse" means "Sum of Square Error of two subtrees", should we rename it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sse
-> sum_of_square_mean_err
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work!
This pr is adapted from #501 , and many thanks for contributions from @qbc2016 !
The modifications in this pr includes:
vertical.data_size_for_debug
: only use a subset for running vfl when debuggingmean
andsum
operations when calculating loss/accHow to apply random forest:
vertical.algo='rf'
andmodel.type = 'random_forest'
@rayrayraykkTodo: