From c741f09536259acb54a2564602ec9de119a83e02 Mon Sep 17 00:00:00 2001 From: hjwilli Date: Wed, 8 Sep 2021 18:48:07 -0400 Subject: [PATCH] shap package update ref #342 --- .gitattributes | 2 +- docker/machine/Dockerfile | 3 +++ docker/machine/Dockerfile_production | 2 ++ docker/machine/files/requirements.txt | 1 - docker/machine/files/requirements_shap.txt | 1 + tests/unit/Dockerfile | 2 ++ 6 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 docker/machine/files/requirements_shap.txt diff --git a/.gitattributes b/.gitattributes index a0c28c46e..cafe69dd7 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,6 +1,6 @@ # Declare files that will always have LF line endings on checkout. release/*.sh text eol=lf -tests/*.sh text eol=lf +tests/**/*.sh text eol=lf .env text eol=lf data/recommenders/scikitlearn/KNNDatasetRecommender_classifier_accuracy_pmlb.pkl.gz filter=lfs diff=lfs merge=lfs -text diff --git a/docker/machine/Dockerfile b/docker/machine/Dockerfile index 102909cc2..821a8f4ed 100644 --- a/docker/machine/Dockerfile +++ b/docker/machine/Dockerfile @@ -22,6 +22,9 @@ RUN apt-get update --fix-missing && apt-get install -y \ # setup python environment COPY ${docker_filepath}/requirements.txt /root/ RUN pip install --no-cache-dir -r /root/requirements.txt +COPY ${docker_filepath}/requirements_shap.txt /root/ +RUN pip install --no-cache-dir -r /root/requirements_shap.txt + # setup node environment RUN npm install -g pm2 --silent --progress=false diff --git a/docker/machine/Dockerfile_production b/docker/machine/Dockerfile_production index 570a6c481..96e8a2125 100644 --- a/docker/machine/Dockerfile_production +++ b/docker/machine/Dockerfile_production @@ -26,6 +26,8 @@ RUN apt-get update --fix-missing && apt-get install -y \ # setup python environment COPY ${docker_filepath}/requirements.txt /root/ RUN pip install --no-cache-dir -r /root/requirements.txt +COPY ${docker_filepath}/requirements_shap.txt /root/ +RUN pip install --no-cache-dir -r /root/requirements_shap.txt # setup node environment RUN npm install -g pm2 --silent --progress=false diff --git a/docker/machine/files/requirements.txt b/docker/machine/files/requirements.txt index ebce320e1..a0dfcefdc 100644 --- a/docker/machine/files/requirements.txt +++ b/docker/machine/files/requirements.txt @@ -8,5 +8,4 @@ mlxtend==0.16.0 pydot==1.4.1 requests==2.22.0 xgboost==0.90 -shap==0.37.0 joblib==0.16.0 diff --git a/docker/machine/files/requirements_shap.txt b/docker/machine/files/requirements_shap.txt new file mode 100644 index 000000000..94cd412c6 --- /dev/null +++ b/docker/machine/files/requirements_shap.txt @@ -0,0 +1 @@ +shap==0.37.0 \ No newline at end of file diff --git a/tests/unit/Dockerfile b/tests/unit/Dockerfile index af46aa42d..d02ee4459 100644 --- a/tests/unit/Dockerfile +++ b/tests/unit/Dockerfile @@ -26,6 +26,8 @@ RUN pip install --no-cache-dir -r /root/lab_requirements.txt COPY /docker/machine/files/requirements.txt /root/mach_requirements.txt RUN pip install --no-cache-dir -r /root/mach_requirements.txt +COPY /docker/machine/files/requirements_shap.txt /root/mach_requirements_shap.txt +RUN pip install --no-cache-dir -r /root/mach_requirements_shap.txt # install lab/node_modules to an anon volume WORKDIR /appsrc/lab