Open
Conversation
|
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
benwtrent
reviewed
Sep 30, 2021
| right_child=self.extract_node_id(row["No"], curr_tree), | ||
| threshold=float(row["Split"]), | ||
| split_feature=self.get_feature_id(row["Feature"]), | ||
| number_samples=int(row["Cover"]), |
Member
There was a problem hiding this comment.
I don't think this is gonna work.
cover is a float. I don't know how they calculate cover related to the total number of samples that hit the tree. The docs indicate its the average of the total number of samples effected by the split.
I wonder if cover * number of features ~= The total number of docs? Can you investigate and confirm?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Work on #243
TreeNode of
xgboosthas the following information:So, based on
importance_typeparameter of https://xgboost.readthedocs.io/en/latest/python/python_api.html#xgboost.XGBRegressorI am thinking
Covergives us the number of training samples that is being covered by the node or leaf since "Gain" is already used asleaf_value. I might be wrong though!@benwtrent Please give a review :)