v0.5.5 (2020-10-20)
Added
- New feature Distributed backend using
ray. To use, installrayusingpip install alibi[ray]. - New feature
KernelShapdistributed version using the new distributed backend. - For anchor methods added an explanation field
data['raw']['instances']which is a batch-wise version of the existingdata['raw']['instance']. This is in preparation for the eventual batch support for anchor methods. - Pre-commit hook for
pyupgradevianbqafor formatting example notebooks using Python 3.6+ syntax.
Fixed
- Flaky test for distributed anchors (note: this is the old non-batchwise implementation) by dropping the precision treshold.
- Notebook string formatting upgraded to Python 3.6+ f-strings.
Changed
- Breaking change For anchor methods, the returned explanation field
data['raw']['prediction']is now batch-wise, i.e. forAnchorTabularandAnchorImageit is a 1-dimensionalnumpyarray whilst forAnchorTextit is a list of strings. This is in preparation for the eventual batch support for anchor methods. - Removed dependency on
prettyprinterand substituted with a slightly modified standard library version ofPrettyPrinter. This is to prepare for acondarelease which requires all dependencies to also be published onconda.