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

improve subfeature_bynode #3384

Merged
merged 3 commits into from
Sep 20, 2020
Merged

improve subfeature_bynode #3384

merged 3 commits into from
Sep 20, 2020

Conversation

guolinke
Copy link
Collaborator

this is useful to filter the histogram that cannot split.

@@ -702,9 +702,6 @@ void SerialTreeLearner::ComputeBestSplitForFeature(
FeatureHistogram* histogram_array_, int feature_index, int real_fidx,
bool is_feature_used, int num_data, const LeafSplits* leaf_splits,
SplitInfo* best_split) {
if (!is_feature_used) {
return;
}
SplitInfo new_split;
double parent_output;
if (leaf_splits->leaf_index() == 0) {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@btrotta it seems the parent output is calculated repeatedly here for root node. I think this cost could be reduced.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I'll take a look

@guolinke
Copy link
Collaborator Author

This seems can partial fix #3372 .
Just track the commit, #2717 is the root to break the feature_fraction_by_node.

@guolinke guolinke added the fix label Sep 12, 2020
@guolinke guolinke merged commit 1fddabb into master Sep 20, 2020
@StrikerRUS StrikerRUS deleted the fix-sub-feature-bynode branch September 21, 2020 13:43
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity since it was closed. To start a new related discussion, open a new issue at https://github.com/microsoft/LightGBM/issues including a reference to this.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants