Skip to content

lotterlab/task_word_explainability

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

task_word_explainability

Code for: S Agarwal, YR Semenov, W Lotter. Representing visual classification as a linear combination of words. Proceedings of the 3rd Machine Learning for Health symposium, PMLR (2023).

methods_fig

Set-up/Requirements

  1. Install CLIP and its dependencies by following instructions at: https://github.com/openai/CLIP
  2. Install packages in requirements.txt in order to run all scripts. The code should generally be version agnostic for these packages.

Usage

fit_words.py: Illustrates fitting a linear classifier based on CLIP image embeddings and subquently estimating the classifier based on a linear combination of word embeddings.

plotting.py: Plots the regression word weights.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages