This Repository Contains Codebase for Optimization in Machine Learning Project.
python version: 3.8.10
transformers = 1.25.4
- clone the DPS repo in the DPS folder from "https://github.com/ZhangHaojie077/DPS.git"
For Baseline:
- cd sentiment
- python data_preparation.py
- python baseline_model.py
- python evaluate.py
For DPS
- cd DPS
- cd script
- bash run_glue.sh
- cd sentiment
- python evaluate.py
The finetuned model is saved in DPS/scripts/trained_models/output directory.