rag-defense-system / check_data.py
yomnafarag95's picture
Update: camera-ready v2 RAG-Shield ITC-Egypt 2026 - revised per reviewer comments
b18ef79
Raw
History Blame Contribute Delete
471 Bytes
import pandas as pd
h = pd.read_csv('data/hackaprompt_holdout_seed42.csv')
e = pd.read_csv('data/evasion_benchmark_n100.csv')
print('=== holdout ===')
print(f'Rows: {len(h)}')
print(f'Columns: {h.columns.tolist()}')
print(f'Label dist:\n{h["label"].value_counts().to_string()}')
print()
print('=== evasion benchmark ===')
print(f'Rows: {len(e)}')
print(f'Attack only (label=1): {(e["label"]==1).sum()}')
print(f'Sample:')
print(e[['text','label']].head(3).to_string())