sfschouten / court-of-xai Goto Github PK
View Code? Open in Web Editor NEWCourt of XAI - A Python library for the systematic comparison of feature additive explanation methods.
License: MIT License
Court of XAI - A Python library for the systematic comparison of feature additive explanation methods.
License: MIT License
It seems the entmax function can't handle an alpha of <=1, but it still returns gradients that allow it to get there during training.
This causes the loss to become 'nan'.
Use Tqdm to show how far along the interpretation is for each SaliencyInterpreter. So we can have some idea of how much longer it will take.
We can use Params.from_file and FromParams.from_params like it is done in allennlp/commands/train.py
AllenNLP 2.0+ introduces some breaking changes we will need to address to upgrade.
The LIME code fails when there's a datareader that concatenates the sequences for DistilBERT. We convert instances back to text, but the concatenated sequence gets converted to a single string, but the datareader expects two separate string sequences to make an Instance.
There's a way to fix this that would also make the code nicer. The implementation of LIME we use assumes unprocessed text, which is why we convert our tokenized Instances back to strings. Instead we should replace some of the LIME code so we can do the replacing of some of the tokens with UNKs ourselves, that way the datareader wouldn't be involved anymore.
This would also have as an added benefit that it would eliminate (possible) mistakes occuring in converting back to raw text and then re-tokenizing. I suspect this is introducing at least some weirdness.
Attention was originally proposed in the context of Machine Translation, so it makes since to include it in our list of tasks.
Components:
Our implementation doesn't work on the pair sequence classifier.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.