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

Reduced Captum Insights package size #562

Closed
wants to merge 1 commit into from
Closed

Conversation

Reubend
Copy link
Contributor

@Reubend Reubend commented Dec 18, 2020

This commit reduces the size of Captum Insights by

  • Replacing the old graphing library with a more lightweight one
  • In the standalone app, using compression in the Flask server
  • In the notebook extension, excluding unused dependencies-of-dependencies

Graph screenshot

For the standalone app, it reduces the size significantly:

size comparison

For the notebook extension, there's a similar size reduction of index.js from 1090 KB to 449 KB.

Testing: I used titanic.py to test this change, making sure that the graphs are working as before and that the other functionality is unnafected.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Reubend has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Reubend has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Reubend has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@Reubend merged this pull request in 42548f4.

vivekmig pushed a commit that referenced this pull request Jan 21, 2021
Summary:
This commit reduces the size of Captum Insights by

- Replacing the old graphing library with a more lightweight one
- In the standalone app, using compression in the Flask server
- In the notebook extension, excluding unused dependencies-of-dependencies

![Graph screenshot](https://user-images.githubusercontent.com/13208038/102558400-31c74080-4082-11eb-93b2-9b5c474fa0ae.png)

For the standalone app, it reduces the size significantly:

![size comparison](https://user-images.githubusercontent.com/13208038/102558239-de54f280-4081-11eb-9718-24b9174d408b.png)

For the notebook extension, there's a similar size reduction of `index.js` from 1090 KB to 449 KB.

Testing: I used `titanic.py` to test this change, making sure that the graphs are working as before and that the other functionality is unnafected.

Pull Request resolved: #562

Reviewed By: edward-io

Differential Revision: D25628623

Pulled By: Reubend

fbshipit-source-id: ef8a0d9ec8c7e0df6955b69dd7a96656defc37e8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants