Skip to content

Commit c7979b2

Browse files
Add "shap" and "xarray" packages as optional dependencies (#107)
--------- authored-by: Ashish Patel <[email protected]>
1 parent 9d40db5 commit c7979b2

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

.github/workflows/deploy-pypi.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,14 @@ jobs:
4343
bump:
4444
needs: test
4545
runs-on: ubuntu-latest
46+
permissions:
47+
contents: write
4648
steps:
47-
- uses: actions/checkout@v2
49+
- uses: actions/checkout@v3
4850
with:
4951
fetch-depth: '0'
5052
- name: Bump version and push tag
51-
uses: anothrNick/github-tag-action@1.36.0
53+
uses: anothrNick/github-tag-action@1.64.0
5254
env:
5355
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5456
WITH_V: true

Pipfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,5 @@ sphinx-rtd-theme = "0.5.2"
1919

2020
[extras]
2121
ray = "*"
22+
shap = "*"
23+
xarray = "*"

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,15 @@ HiClass and its dependencies can be easily installed with pip:
106106
pip install hiclass
107107
```
108108

109+
If you need additional functionality, you can install extra dependencies using the following syntax:
110+
```shell
111+
pip install hiclass"[<extra_name>]"
112+
```
113+
Replace <extra_name> with one of the following options:
114+
115+
- ray: Installs the ray package, which is required for parallel processing support.
116+
- xai: Installs the shap and xarray packages, which are required for explaining Hiclass predictions.
117+
109118
### Option 2: Conda
110119

111120
Alternatively, HiClass and its dependencies can also be installed with conda:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131

3232
# What packages are optional?
3333
# 'fancy feature': ['django'],}
34-
EXTRAS = {"ray": ["ray>=1.11.0"]}
34+
EXTRAS = {"ray": ["ray>=1.11.0"], "xai": ["shap", "xarray"]}
3535

3636
# The rest you shouldn't have to touch too much :)
3737
# ------------------------------------------------

0 commit comments

Comments
 (0)