-
Notifications
You must be signed in to change notification settings - Fork 383
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
Unify responsibleai constants #1925
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1925 +/- ##
===========================================
- Coverage 92.44% 63.92% -28.53%
===========================================
Files 103 13 -90
Lines 4871 158 -4713
===========================================
- Hits 4503 101 -4402
+ Misses 368 57 -311
Flags with carried forward coverage won't be shown. Click here to find out more. Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
1 similar comment
94b14db
to
a9614e1
Compare
responsibleai/tests/counterfactual/test_counterfactual_advanced_features.py
Outdated
Show resolved
Hide resolved
1 similar comment
@@ -198,7 +199,8 @@ def test_loading_rai_insights_without_model_file(self): | |||
|
|||
# Remove the model.pkl file to cause an exception to occur | |||
# while loading the model. | |||
model_pkl_path = Path(tmpdir) / "rai_insights" / "model.pkl" | |||
model_pkl_path = Path(tmpdir) / \ | |||
"rai_insights" / SerializationAttributes.MODEL_PKL |
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.
should this also be a const?
explainer_pkl_path = \ | ||
directory_manager.get_generators_directory() / "explainer.pkl" | ||
explainer_pkl_path = ( | ||
directory_manager.get_generators_directory() / |
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.
and this one
@@ -60,7 +61,7 @@ def test_causal_save_and_load(self, housing_data, tmpdir): | |||
dm = DirectoryManager(parent_directory_path=save_dir, | |||
sub_directory_name=causal_dir) | |||
causal_analysis_pkl_file_path = \ | |||
dm.get_data_directory() / "causal_analysis.pkl" | |||
dm.get_data_directory() / ("causal_analysis" + FileFormats.PKL) |
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.
Oh I see, you are moving common ones in a file. These could be a const in their own file. May be not for this PR.
* use META_JSON directly instead of declaring a variable * move constants to common files and reuse * lowercase f * isort * use parentheses instead of backslashes * flake8 * isort Signed-off-by: RubyZ10 <zhenzhu@microsoft.com>
Description
This is a prerequisite to adding
RAIForecastingInsights
in the next PR. Having everything on a per-file basis was not very clean, so I decided to unify themChecklist