BotHP
May 25, 2025 ยท View on GitHub
Implementation for the paper: Boosting Bot Detection via Heterophily-Aware Representation Learning and Prototype-Guided Cluster Discovery
Quick Start
Environment Setup
To set up the environment, install the required packages:
pip install -r requirements.txt
Dataset Preparation
MGTAB: The original dataset provides processed files in .pt format. Simply place them in the corresponding folder.
Twibot-20: The original dataset does not provide processed files. You need to generate them using the code in TwiBot-22/src/BotRGCN and then place the generated files in the corresponding folder.
Train and Test
You can run the following commands to train and test the model:
# For Twibot-20
python main_transductive.py --dataset Twibot-20
# For MGTAB
python main_transductive.py --dataset MGTAB-FF