Skip to content
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

Question: How to visualize the tree that the way get? #3

Open
littlehacker26 opened this issue Mar 19, 2018 · 2 comments
Open

Question: How to visualize the tree that the way get? #3

littlehacker26 opened this issue Mar 19, 2018 · 2 comments

Comments

@littlehacker26
Copy link

I want to visualize the tree to look how it stimulate the NN , just like the picture in img folder. But the source code seems to do not have this function ? what should I do?

@kimhc6028
Copy link
Owner

Yes, image is from the paper. I forgot most of the code, but I think each node class outputs computational results after computing forward(). So, get the results, and reshape them and you can get the processed image. Then you can visualize them with other python packages for visualization.

@lmartak
Copy link

lmartak commented Sep 10, 2018

hey @LittleBoyHack if it's still relevant, here's a piece of code that does exactly what you're discussing on my tf.keras implementation of the tree, so you can at least get inspiration for how to visualize the tree model filters: https://github.com/lmartak/distill-nn-tree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants