-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
WIP: Unify dump_model output (fixes #5962) #5964
Conversation
@microsoft-github-policy-service agree |
c7999bc
to
59ae704
Compare
Hi @jameslamb , I gave it a shot with the changes in this PR, but after re-installing and running pytest
I was still getting segmentation fault's, and I'm not quite sure how to debug. Swapping out For a stump tree, is |
I'm traveling this week and it may be a while until I'm able to look into this and help you, sorry. Maybe try tracing through the code with something like |
59ae704
to
28b5f5f
Compare
UpdateAn update: I've fixed the segmentation fault, but the Will try to look into this. Notes for myselfCode tracing for the
|
I just merged the latest changes from |
@jameslamb Yep I'm interested still to follow up on this, but havent' had much progress since the last update. TBH it might take a couple of weekends for me to get around to this -- I'll need to re-review where I got stuck and ask more specific questions here (haven't managed to find the few hours needed to sit down and concentrate on this ; been quite busy lately). |
c70b94e
to
7ba9aaa
Compare
This was fixed by #6569, so closing this PR. @thatlittleboy I did tag you there... if you look at those changes (or the current state of LightGBM in general) and find that it does not fix the information for stumps in the way you'd wanted, please open a new GItHub issue and let us know. |
Closes #5962.
Note: PR is not ready for review yet. Still iterating on this, but I'm open to suggestions at this stage if any. Thank you!
Changes
leaf_count
to the string output ofTree::ToJSON()
whennum_leaves=1
.