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

Hotfix to add VEM as soft dependency to erroranalysis #2290

Merged
merged 15 commits into from
Aug 31, 2023

Conversation

Advitya17
Copy link
Collaborator

Hotfix to add VEM as soft dependency to erroranalysis to not require users to have torch for tabular scenarios.

Description

VEM (and hence torch) was becoming a hard dependency for erroranalysis and hence tabular RAI dashboard:

from responsibleai import RAIInsights
/usr/share/miniconda/envs/test/lib/python3.9/site-packages/responsibleai/init.py:8: in
from responsibleai.modelanalysis import ModelAnalysis
/usr/share/miniconda/envs/test/lib/python3.9/site-packages/responsibleai/modelanalysis/init.py:8: in
from responsibleai.modelanalysis.model_analysis import ModelAnalysis
/usr/share/miniconda/envs/test/lib/python3.9/site-packages/responsibleai/modelanalysis/model_analysis.py:15: in
from responsibleai.managers.error_analysis_manager import ErrorAnalysisManager
/usr/share/miniconda/envs/test/lib/python3.9/site-packages/responsibleai/managers/error_analysis_manager.py:15: in
from erroranalysis._internal.error_analyzer import ModelAnalyzer
/usr/share/miniconda/envs/test/lib/python3.9/site-packages/erroranalysis/_internal/error_analyzer/init.py:5: in
from erroranalysis.analyzer import ModelAnalyzer, PredictionsAnalyzer
/usr/share/miniconda/envs/test/lib/python3.9/site-packages/erroranalysis/analyzer/init.py:5: in
from .error_analyzer import ModelAnalyzer, PredictionsAnalyzer
/usr/share/miniconda/envs/test/lib/python3.9/site-packages/erroranalysis/analyzer/error_analyzer.py:12: in
from vision_explanation_methods.error_labeling.error_labeling import
/usr/share/miniconda/envs/test/lib/python3.9/site-packages/vision_explanation_methods/error_labeling/error_labeling.py:10: in
import torchvision
E ModuleNotFoundError: No module named 'torchvision'

Checklist

  • I have added screenshots above for all UI changes.
  • I have added e2e tests for all UI changes.
  • Documentation was updated if it was needed.

@codecov-commenter
Copy link

codecov-commenter commented Aug 29, 2023

Codecov Report

Merging #2290 (7ea9649) into main (225bbf1) will increase coverage by 3.86%.
The diff coverage is 72.72%.

@@            Coverage Diff             @@
##             main    #2290      +/-   ##
==========================================
+ Coverage   88.84%   92.71%   +3.86%     
==========================================
  Files         133      107      -26     
  Lines        7550     5381    -2169     
==========================================
- Hits         6708     4989    -1719     
+ Misses        842      392     -450     
Flag Coverage Δ
unittests 92.71% <72.72%> (+3.86%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed Coverage Δ
...ranalysis/erroranalysis/_internal/matrix_filter.py 95.71% <72.72%> (-0.67%) ⬇️
...is/erroranalysis/_internal/surrogate_error_tree.py 88.76% <72.72%> (-0.56%) ⬇️
...ranalysis/erroranalysis/analyzer/error_analyzer.py 93.00% <72.72%> (-1.22%) ⬇️

... and 26 files with indirect coverage changes

Copy link
Contributor

@gaugup gaugup left a comment

Choose a reason for hiding this comment

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

How are you planning to test the vision error analysis flow?

@Advitya17
Copy link
Collaborator Author

How are you planning to test the vision error analysis flow?

Some test cases were already added in https://github.com/microsoft/responsible-ai-toolbox/pull/2225/files#diff-db619f3fdbc5b12b9ebb0d194ced62df8b1de699428f71e9be372f73f419d7e6. Plan to try adding more.

1 similar comment
1 similar comment
1 similar comment
2 similar comments
@Advitya17 Advitya17 enabled auto-merge (squash) August 31, 2023 13:45
1 similar comment
1 similar comment
@Advitya17 Advitya17 merged commit ffa1acb into main Aug 31, 2023
95 of 97 checks passed
@Advitya17 Advitya17 deleted the agemawat/ea_torch_hotfix branch August 31, 2023 17:20
Advitya17 added a commit that referenced this pull request Aug 31, 2023
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

Successfully merging this pull request may close these issues.

5 participants