Repository navigation
Implement tree model dump with code generator. - #4602
Conversation
|
Looks like a nice reorganisation of code. We don't need any changes to the C API right, because it already accepts a string specifying format? |
|
@KOLANICH I remember sometimes ago you mentioned allowing saving model in other formats, could this be one of the building blocks for your purpose? |
|
Will try to write the production rules for text file later. |
* Split up builders. * Implement graphviz generator. * Use pattern matching.
|
@hcho3 Now Can you think of some use cases for modifying returned graph? If so I will close this PR to avoid the change. |
|
Thanks for mentioning me. |
|
Will add detailed user document in another PR alone with specification of output text mentioned above. But I won't go over other language bindings for now. Let me fix some piled up issues first. |
chyunsu3
left a comment
There was a problem hiding this comment.
LGTM. Nice work combining code generators for text dump, JSON dump, and Graphviz dump. We no longer have a hodgepodge of string operations scattered around for different dump types.
Co-Authored-By: Philip Hyunsu Cho <[email protected]>
Co-Authored-By: Philip Hyunsu Cho <[email protected]>
|
@hcho3 Thanks for the review. |
Closes #4228, Closes #4561
There are few benefits of this PR:
But there's one downside:
@CodingCat @RAMitchell @hcho3 Could you please take a quick look? See if the added complication is worthy for fixing above issues?