title: Explainability Tool For Aa
emoji: 🔥
colorFrom: green
colorTo: red
sdk: gradio
sdk_version: 5.42.0
python_version: 3.11.0
app_file: app.py
pinned: false
license: apache-2.0
short_description: Interpreting the latent space of Authorship Attribution
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
Useful commands
Prepare data training/test
Clustering the background corpus
python cluster_corpus.py ../../iarpa-hiatus/explanation_tool_files/reddit_cluster_training.pkl ../../iarpa-hiatus/explanation_tool_files/reddit_cluster_test.pkl "AnnaWegmann/Style-Embedding" ./datasets/reddit_clustered_authors.pkl --min_samples 2 --metric cosine --pca_dimensions 100 --eps 0.04
Generate explainability sample
python prepare_data.py ../explanation_tool_files/reddit_cluster_test.pkl ./datasets/reddit_explanation_sample.json
Generate static explanations for a sample
python baseline_static_explanations.py generate_explanations ./datasets/reddit_explanation_sample.json ./datasets/reddit_explanation_sample_with_explanations.json --interp_space_path ./datasets/reddit_interp_space.json --model_name 'AnnaWegmann/Style-Embedding'