xflr6 / graphviz

Simple Python interface for Graphviz
https://graphviz.readthedocs.io
MIT License
1.65k stars 213 forks source link

can I viz the node gain&cover in trees? #161

Closed riaris closed 2 years ago

riaris commented 2 years ago

I find graphviz can viz the tree. however, it is only node and leaf. when I use Booster.get_dump(fmap='',dump_format='text',with_stats=True) I can get the gain&cover. how can I viz the gain&cover on trees?

xflr6 commented 2 years ago

I am not sure if this is about this library here (or rather about xgdboost?).

Not sure what you mean by 'gain & cover': can you provide more detail or a minimal reproducible example?

riaris commented 2 years ago

sure I mean xgboost, can I draw that in the tree result?

Sebastian Bank @.***> 于2022年3月2日周三 17:55写道:

I am not sure if this is about this library here (or rather about xgdboost https://xgboost.readthedocs.io/en/stable/python/python_api.html#xgboost.Booster.get_dump ?).

Not sure what you mean by 'gain & cover': can you provide more detail or a minimal reproducible example?

— Reply to this email directly, view it on GitHub https://github.com/xflr6/graphviz/issues/161#issuecomment-1056722318, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL74EW76LBQX5COPLHMNHXTU543KRANCNFSM5PW3JIKA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

xflr6 commented 2 years ago

sure I mean xgboost

You seem to be in the wrong place (maybe you mean https://github.com/dmlc/xgboost/issues?), closing.

riaris commented 2 years ago

Got it, thank you!

riaris commented 2 years ago

Got it, Thank you!

Sebastian Bank @.***> 于2022年3月3日周四 17:24写道:

sure I mean xgboost

You seem to be in the wrong place (maybe you mean https://github.com/dmlc/xgboost/issues?), closing.

— Reply to this email directly, view it on GitHub https://github.com/xflr6/graphviz/issues/161#issuecomment-1057842735, or unsubscribe https://github.com/notifications/unsubscribe-auth/AL74EWYDXI3BKYV2P7NYHRTU6CAMHANCNFSM5PW3JIKA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>