Views
No views yet
in-favor, against, or neutral-or-unclear) from a CSV of 5,751 tweets regarding the COVID-19 vaccination using flan-t5-large.predict.py - Predicts the model's labels on a given dataset and saves the result into output/.eval.py - Model evaluation.utils.py - Shared helper functions.train.py - Fine-tuning code on a given dataset.requirements.txt - Package installs for reproducibility.data/ - Contains original dataset.output/ - Contains prediction output files and heldout dataset files from train/test splitting.finetune/ - contains all files of the fine-tuned model. Includes epoch checkpoint files.pip install transformers torch pandas scikit-learn sentencepiece datasetspip install -r requirements.txt1python3 predict.py # manually change dataset path if needed
2python3 eval.py # for evaluationneutral-or-unclear. Overall F1 score was 0.428.flan-t5-base was used until final evaluations were done using flan-t5-large.
neutral-or-unclear recall (0.18). Overall F1 score was 0.518.neutral-or-unclear with an 80/20 train/test split on the first 2,000 records, and then running predictions on the following 1,500 records yielded an F1 score of 0.562. (3 Epochs)neutral-or-unclearon the entire dataset with a 80/20 train/test split showed average precision for against (0.59). Overall F1 score was 0.690. (3 Epochs)neutral-or-unclear and against lead to an F1 score of 0.724. (3 Epochs)\flan-t5-large was done on 2 epochs in bf16 format to account for T4 GPU limitations.
flan-t5-large on an 80/20 split with predictions ran on the heldout dataset resulted in an F1 score of 0.782.flan-t5-large could also provide improved F1 on more powerful GPUs.