Technical requirements
We will run all the experiments and code in this chapter using Python 3.8. You can download it from the official website at https://www.python.org/downloads/ and choose version 3.8.
The examples described in this chapter use the following Python packages:
comet-ml 3.23.0
matplotlib 3.4.3
numpy 1.19.5
pandas 1.3.4
scikit-learn 1.0
shap 0.40.0
We have already described the first five packages and how to install them in Chapter 1, An Overview of Comet. So please refer back to that for further details on installation.
shap
shap is a Python package that permits you to calculate the Shapley value and plot some related graphs. To install the shap
package, you can run the following command in a terminal:
pip install shap
For more details on the shap
package, you can refer to its official documentation, available at the following link: https://shap-lrjball.readthedocs.io/en/latest/index.html.
Now that you have installed...