Skip to content

helenqu/connect-later

Repository files navigation

Connect Later: Improving Fine-tuning for Robustness with Targeted Augmentations

Astronomical Time-Series Datasets (AstroClassification and Redshifts)

Datasets

Download the pretraining dataset here and the fine-tuning dataset with the redshifting targeted augmentation applied here.

Pretraining

bash run_pretrain.sh /path/to/pretraining/dataset /path/to/save/model wandb_run_name

Fine-tuning

bash run_finetuning.sh \
  /path/to/pretrained/model \
  /path/to/save/model \
  /path/to/finetuning/dataset \
  wandb_run_name \
  "--class_weights --test_set_path /path/to/test/dataset --seed 12345"

add --redshift_prediction argument and remove --class_weights to do redshift prediction instead of classification

Pseudolabeling to run self-training baseline

bash run_pseudolabeling.sh \
  /path/to/dataset \
  /path/to/trained/model \
  /path/to/dataset/labels \
  /path/to/output/dir

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published