Skip to content

Commit

Permalink
update interpret-community to ml-wrappers 0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
imatiach-msft committed Jan 10, 2025
1 parent 71f4f38 commit 15e5c6d
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 20 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/CI-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
matrix:
packageDirectory: ["interpret_community"]
operatingSystem: [ubuntu-latest]
pythonVersion: [3.7, 3.8, 3.9]
pythonVersion: [3.9]

runs-on: ${{ matrix.operatingSystem }}

Expand Down 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,19 +66,20 @@ 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: |
pytest ./tests -m "not notebooks" -s -v --cov=${{ matrix.packageDirectory }} --cov-report=xml --cov-report=html
- if: ${{ matrix.pythonVersion == '3.8' }}
- if: ${{ matrix.pythonVersion == '3.9' }}
name: Upload code coverage results
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.packageDirectory }}-code-coverage-results
path: htmlcov

- if: ${{ matrix.pythonVersion == '3.8' }}
- if: ${{ matrix.pythonVersion == '3.9' }}
name: Upload to codecov
id: codecovupload1
uses: codecov/codecov-action@v3
Expand All @@ -93,7 +94,7 @@ jobs:
path_to_write_report: ./coverage/codecov_report.txt
verbose: true

- if: ${{ (steps.codecovupload1.outcome == 'failure') && (matrix.pythonVersion == '3.8') }}
- if: ${{ (steps.codecovupload1.outcome == 'failure') && (matrix.pythonVersion == '3.9') }}
name: Retry upload to codecov
id: codecovupload2
uses: codecov/codecov-action@v3
Expand All @@ -108,7 +109,7 @@ jobs:
path_to_write_report: ./coverage/codecov_report.txt
verbose: true

- if: ${{ matrix.pythonVersion == '3.8' }}
- if: ${{ matrix.pythonVersion == '3.9' }}
name: Set codecov status
shell: bash
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 @@ -39,12 +39,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
Expand Down
3 changes: 0 additions & 3 deletions requirements-test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,5 @@ pytest-cov
nbformat
papermill
scrapbook
itsdangerous==2.0.1
markupsafe<2.1.0
jupyter
jinja2==2.11.3
captum

0 comments on commit 15e5c6d

Please sign in to comment.