Alibi server is an implementation for providing black box model explanation for KFServer models.
To start the server locally for development needs, run the following command under this folder in your github repository.
This server uses Poetry to manage its environment. Please make sure you install poetry before continuing.
- If you have
asdf-vm
installed the.tool-versions
will specify required version of Python - Otherwise create and activate conda environment with appropriate Python version
To install dependencies run
poetry install
Alternativey use the Makefile target:
make dev_install
To run tests run
poetry run pytest -v .
Alternatively use the Makefile target:
make test
The Makefile also has tests for full worked examples.
- Pythin 3.8 ubi can not be presently used because this would require all explainer models to be saved as python 3.8 in examples otherwise dill load issues happen.
- KernelShap has issues for models not saved in matching python to Docker container - e.g., py36