Skip to content

Commit

Permalink
Merge pull request Trusted-AI#175 from gganapavarapu/master
Browse files Browse the repository at this point in the history
Adding NearestNeighborContrastiveExplainer
  • Loading branch information
vijay-arya authored May 10, 2023
2 parents 0c645e4 + 0dafbf6 commit 462c4d5
Show file tree
Hide file tree
Showing 10 changed files with 2,181 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,3 +226,32 @@ jobs:

- name: Step 7 - Test Logistic Rule Regression
run: python ./tests/rbm/test_Logistic_Rule_Regression.py

# job to build nncontrastive algorithm on python 3.10.
build-nncontrastive-on-py310:
# The type of runner that the job will run on
runs-on: "${{ matrix.os }}"
strategy:
matrix:
#os: [ubuntu-18.04, ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-20.04, macos-latest, windows-latest]
python-version: ["3.10"]

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Step 1 - checkout aix360 repository
uses: actions/checkout@v3

- name: Step 2 - set up python version
uses: actions/setup-python@v4
with:
python-version: "${{ matrix.python-version }}"

- name: Step 3 - upgrade setuptools
run: pip3 install pytest nbmake wheel --upgrade setuptools

- name: Step 4 - Install aix360 with nncontrastive algorithm related dependencies
run: pip3 install .[nncontrastive]

- name: Step 5 - Test NearestNeighborContrastiveExplainer
run: python ./tests/nncontrastive/test_nncontrastive.py
1 change: 1 addition & 0 deletions aix360/algorithms/nncontrastive/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from .nncontrastive import NearestNeighborContrastiveExplainer
Loading

0 comments on commit 462c4d5

Please sign in to comment.