Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update interpret-community to ml-wrappers 0.6.0 #598

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/CI-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
run: |
pip install raiwidgets
pip install -r requirements-vis.txt
pip install --upgrade "shap<=0.44.0"
pip install --upgrade "shap<=0.46.0"
- if: ${{ matrix.pythonVersion == '3.9' }}
name: Install scikit-learn to work around raiwidgets dependency
shell: bash -l {0}
Expand All @@ -66,6 +66,7 @@ jobs:
shell: bash -l {0}
run: |
pip install -r requirements-test.txt
pip install --upgrade "pandas>2.0"
- name: Test with pytest
shell: bash -l {0}
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-interpret-community.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
pip install raiwidgets
pip install -r requirements-vis.txt
pip install --upgrade scikit-learn
pip install --upgrade "shap<=0.44.0"
pip install --upgrade "shap<=0.46.0"

- name: Install test dependencies
shell: bash -l {0}
Expand Down
6 changes: 2 additions & 4 deletions devops/templates/create-env-step-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,13 @@ steps:

- bash: |
source activate ${{parameters.condaEnv}}
conda install --yes --quiet --name ${{parameters.condaEnv}} "numpy<1.24.0" -c conda-forge
conda install --yes --quiet --name ${{parameters.condaEnv}} pytorch torchvision cpuonly -c pytorch
conda install --yes --quiet --name ${{parameters.condaEnv}} pytorch torchvision cpuonly -c pytorch -c conda-forge --strict-channel-priority
displayName: Install Anaconda packages
condition: ne(variables['Agent.OS'], 'Darwin')

- bash: |
source activate ${{parameters.condaEnv}}
conda install --yes --quiet --name ${{parameters.condaEnv}} "numpy<1.24.0" -c conda-forge
conda install --yes --quiet --name ${{parameters.condaEnv}} pytorch torchvision -c pytorch
conda install --yes --quiet --name ${{parameters.condaEnv}} pytorch torchvision -c pytorch -c conda-forge --strict-channel-priority
displayName: Install Anaconda packages on MacOS, which should not include cpuonly according to official docs
condition: eq(variables['Agent.OS'], 'Darwin')

Expand Down
2 changes: 1 addition & 1 deletion devops/templates/test-run-step-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ steps:
pip install responsibleai
pip install rai-core-flask==0.7.6
pip install raiwidgets --no-deps
pip install --upgrade "shap<=0.44.0"
pip install --upgrade "shap<=0.46.0"
pip install -r requirements-vis.txt
displayName: Install vis required pip packages

Expand Down
7 changes: 3 additions & 4 deletions python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,11 @@
'numpy',
'pandas',
'scipy',
'ml-wrappers~=0.5.4',
'ml-wrappers~=0.6.0',
'scikit-learn',
'packaging',
'interpret-core>=0.1.20, <0.5.0; python_version <= "3.7"',
'interpret-core>=0.1.20, <=0.5.0; python_version >= "3.8"',
'shap>=0.20.0, <=0.44.0',
'interpret-core>=0.1.20, <=0.6.9',
'shap>=0.20.0, <=0.46.0',
'raiutils~=0.4.0'
]

Expand Down
2 changes: 1 addition & 1 deletion requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
xmlrunner
mlflow
tensorflow<2.14.0
tensorflow
hdbscan
lightgbm
xgboost<2.1.0
Expand Down
2 changes: 1 addition & 1 deletion tests/common_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ def create_keras_regressor(X, y):
epochs = 12
model = _common_model_generator(X.shape[1])
model.add(Activation('linear'))
model.compile(loss=keras.losses.mean_squared_error,
model.compile(loss=keras.losses.MeanSquaredError,
optimizer=keras.optimizers.Adadelta(),
metrics=['accuracy'])
model.fit(X, y,
Expand Down
Loading