Skip to content

Commit

Permalink
Merge pull request #9 from Oxid15/develop
Browse files Browse the repository at this point in the history
Develop
  • Loading branch information
Oxid15 committed Feb 12, 2023
2 parents d64eac5 + 06b3df7 commit ba011be
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,4 @@ dmypy.json
repo/
*.pkl
*_ds
.vscode/
11 changes: 3 additions & 8 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,14 @@
import os
import sys
import setuptools
sys.path.append(os.path.dirname(__file__))

import xaib


with open("README.md", "r", encoding="utf-8") as fh:
long_description = fh.read()

setuptools.setup(
name="xai-benchmark",
version=xaib.__version__,
author=xaib.__author__,
author_email=xaib.__author_email__,
version='0.1.0',
author='Ilia Moiseev',
author_email='[email protected]',
license='MIT',
description="Benchmark for Explainable AI methods",
long_description=long_description,
Expand Down
4 changes: 4 additions & 0 deletions xaib/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ def __getitem__(self, index: int) -> Dict:
item = self._data[i]
for ch in self._channels:
batch[ch].append(item[ch])

for ch in batch:
batch[ch] = np.array(batch[ch])

return batch

def __iter__(self):
Expand Down

0 comments on commit ba011be

Please sign in to comment.