Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor XAIBase interface #20

Merged
merged 12 commits into from
Jul 27, 2024
Merged

Refactor XAIBase interface #20

merged 12 commits into from
Jul 27, 2024

Conversation

adrhill
Copy link
Member

@adrhill adrhill commented Jul 25, 2024

Closes #18, #19.

This refactor of the XAIBase interface aims to make the Julia-XAI ecosystem more compatibile with @pat-alt's Taija ecosystem and to support a wider range of NLP models (Julia-XAI/ExplainableAI.jl#164)

It includes a bunch of breaking changes:

  • Add input field to Explanation struct
  • Remove type annotations that restricted analyze to AbstractArray inputs
  • Remove analyze keyword-argument add_batch_dim, which made the assumption of array inputs
  • Implementing new analyzers now requires a call_analyzer method instead of making the analyzer struct callable. This helps with type stability, which is now tested with JET.jl.

@pat-alt is there anything else that would be useful for Taija?

@adrhill adrhill merged commit cdd6824 into main Jul 27, 2024
4 checks passed
@adrhill adrhill deleted the ah/update-interface branch July 27, 2024 13:13
adrhill referenced this pull request Jul 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Relax type annotations to allow for non-array inputs
1 participant