-
Notifications
You must be signed in to change notification settings - Fork 54
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
FIX: Decision Tree Visualization #386
Merged
adrinjalali
merged 12 commits into
skops-dev:main
from
reidjohnson:fix-decisiontree-visualize
Aug 1, 2023
Merged
Changes from 2 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
4b87c84
Fix DecisionTree Visualization
reidjohnson 1b0a86a
Update visualization tests
reidjohnson 52e5efa
Visualize type object
reidjohnson 1aec5e9
Add visualize tests for decision trees
reidjohnson 3cbf6e5
Revert changes
reidjohnson a16bc7c
Pass trust info to child
reidjohnson 369c206
Pass as explicit kwargs and update docstring
reidjohnson 797bf1a
Add changelog
reidjohnson 316da5c
Wrap constructor in TypeNode
reidjohnson 328cd52
Update DT unit test names
reidjohnson 5d55e61
Use get_module
reidjohnson aa52598
Fix DT unit test for sklearn 1.4
reidjohnson File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
here we should defer to the information in the Node instead of assuming it to be unsafe all the time. the
Tree
constructor for instance, is safe.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, I agree. However the challenge I'm running into is that it's not a valid Node object, so it does not have the necessary attributes:
If I understand correctly, it's because the constructor class is directly set as a child node here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so probably the parent when doing the
walk_tree
should send this info to the child.