Chi
Chi transforms an influence graph into a generalised argumentation framework which is given to the portal for
generating explanations by embellishing the nodes with a Payload
, holding metadata and the content that will
be used in the visualisation.
Abstract Class
In its simplest form, Chi should only provide a generate()
function for creating payloads based on nodes.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
|
Implementation Example
Here is an example of a Chi used to generate explanations for a model
prediction based on some input. The function _make_actmax
returns a picture of a maximally activated
filter in the last convolutional layer of our neural network, which is simply the visual feedback of interest
in this example.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
|
Usage and Extensibility
Chis can be implemented and extended freely as long as they are within the aforementioned constraints.
In the
example below, notice a new Chi has been created by combining two previously created Chis, and then using
each of their respective Payload
for a specific node to create a more complex Payload
of type
IMAGE_PAIR
.
1 2 3 4 5 6 7 8 9 10 |
|