responsible-ai-widgets/erroranalysis/tests
Advitya Gemawat 095b2abb44
Data Imputation Fix in `erroranalysis` (#2436)
* data imputation fix

* data imputation fix

* python lint fix

* refactor

* nan test case

* import fix

* python lint fix

* isort fix

* test fix

* test fix
2023-12-13 10:52:04 -05:00
..
README.md Create README.md for python tests (#1984) 2023-02-25 04:25:41 +00:00
common_utils.py Update erroranalysis tests to use new rai_test_utils package (#1800) 2022-11-08 06:51:56 -08:00
session.py add pyspark support to tree surrogate model in error analysis (#1251) 2022-04-29 13:16:45 -04:00
test_cohort_filter.py Release erroranalysis 0.5.1 (#2304) 2023-09-05 14:34:29 -04:00
test_error_report.py Use `is_valid_uuid` from `rai_test_utils` (#2069) 2023-05-19 07:14:46 +00:00
test_importances.py Data Imputation Fix in `erroranalysis` (#2436) 2023-12-13 10:52:04 -05:00
test_matrix_filter.py Usecohort filter constatns from erroranalysis in tests (#2047) 2023-04-27 17:50:37 +00:00
test_metrics.py Hotfix to add VEM as soft dependency to `erroranalysis` (#2290) 2023-08-31 17:20:10 +00:00
test_pyspark_surrogate_error_tree.py add pyspark support to tree surrogate model in error analysis (#1251) 2022-04-29 13:16:45 -04:00
test_root_stats.py Update erroranalysis tests to use new rai_test_utils package (#1800) 2022-11-08 06:51:56 -08:00
test_surrogate_error_tree.py change erroranalysis valueerror caused by invalid model prediction shape to user error (#2254) 2023-08-16 16:01:24 -04:00

README.md

For running unit tests for erroranalysis locally with your changes, you would need an editable install of erroranalysis. From the top level directory you can install an editable version of erroranalysis using the following command:-

pip install -e erroranalysis

If you are in the erroranalysis directory, then the folllowing command will install an editable version of erroranalysis:-

pip install -e .

You would also need to install the test dependencies defined in file erroranalysis/requirements-dev.txt.

pip install -r requirements-dev.txt

For running the unit tests, you may do the following:-

cd tests
pytest .

Some of the utilities used in erroranalysis tests are hosted under the pypi package rai_test_utils. This source code for rai_test_utils is available at https://github.com/microsoft/responsible-ai-toolbox/tree/main/rai_test_utils.