Code for "Bridging Domains with Approximately Shared Features".
dataset
method
You can use DomainBed and DiWA to get the DANN and DiWA models in pretraining and run the subsequent pipelines.
./scripts/1_source_pretrain/[dataset]/[method].fish
./scripts/2_feature_extraction/[dataset]/[method].fish
./scripts/3_linear_probing/[dataset]/[method].fish
./scripts/4_target_finetuning/[dataset]/[method].fish
./scripts/6_domain_generalization/[dataset]/[method].fish
./scripts/7_target_finetuning_decay_long/[dataset]/[method].fish