python , How to install SHAP , pip install shap

Опубликовано: 15 Март 2021
на канале: gocha's learning space
1,490
3

How to install shap.



(base) demo@ubuntu:~/SelfStudy/python/python2/python2$ pip install shap
Collecting shap
Downloading shap-0.37.0.tar.gz (326 kB)
|████████████████████████████████| 326 kB 916 kB/s
Requirement already satisfied: numpy in /home/demo/miniconda3/lib/python3.7/site-packages (from shap) (1.19.0)
Requirement already satisfied: scipy in /home/demo/miniconda3/lib/python3.7/site-packages (from shap) (1.5.1)
Collecting scikit-learn
Downloading scikit_learn-0.24.0-cp37-cp37m-manylinux2010_x86_64.whl (22.3 MB)
|████████████████████████████████| 22.3 MB 57 kB/s
Requirement already satisfied: pandas in /home/demo/miniconda3/lib/python3.7/site-packages (from shap) (1.0.5)
Requirement already satisfied: tqdm 4.25.0 in /home/demo/miniconda3/lib/python3.7/site-packages (from shap) (4.46.1)
Collecting slicer==0.0.3
Downloading slicer-0.0.3-py3-none-any.whl (11 kB)
Collecting numba
Downloading numba-0.52.0-cp37-cp37m-manylinux2014_x86_64.whl (3.2 MB)
|████████████████████████████████| 3.2 MB 3.2 MB/s
Collecting joblib=0.11
Downloading joblib-1.0.0-py3-none-any.whl (302 kB)
|████████████████████████████████| 302 kB 10.2 MB/s
Collecting threadpoolctl =2.0.0
Downloading threadpoolctl-2.1.0-py3-none-any.whl (12 kB)
Requirement already satisfied: pytz =2017.2 in /home/demo/miniconda3/lib/python3.7/site-packages (from pandas- shap) (2020.1)
Requirement already satisfied: python-dateutil =2.6.1 in /home/demo/miniconda3/lib/python3.7/site-packages (from pandas-shap) (2.8.1)
Requirement already satisfied: setuptools in /home/demo/miniconda3/lib/python3.7/site-packages (from numba-shap) (47.3.1.post20200622)
Collecting llvmlite 0.36, =0.35.0
Downloading llvmlite-0.35.0-cp37-cp37m-manylinux2010_x86_64.whl (25.3 MB)
|████████████████████████████████| 25.3 MB 74 kB/s
Requirement already satisfied: six =1.5 in /home/demo/miniconda3/lib/python3.7/site-packages (from python-dateutil =2.6.1- pandas- shap) (1.15.0)
Building wheels for collected packages: shap
Building wheel for shap (setup.py) ... done
Created wheel for shap: filename=shap-0.37.0-cp37-cp37m-linux_x86_64.whl size=469211 sha256=618435261c6fb8a893917a077f4a8db854a16a596fa2ea57a034668f88341a8a
Stored in directory: /home/demo/.cache/pip/wheels/df/b8/18/2c0a6105152e62dd9a7cf47b5110b9cedb0c8739babdef64b7
Successfully built shap
Installing collected packages: joblib, threadpoolctl, scikit-learn, slicer, llvmlite, numba, shap
Successfully installed joblib-1.0.0 llvmlite-0.35.0 numba-0.52.0 scikit-learn-0.24.0 shap-0.37.0 slicer-0.0.3 threadpoolctl-2.1.0