Create the environment.
conda create -n DomainFL python=3.11
Activate the environment.
conda activate DomainFL
Install the required repository.
pip install -r requirements.txt
Go to the core file directory.
cd core
You can see some visulization result in our paper by playing with the 'visualize.ipynb'.
run the runours.sh
to check MPFT results.
for the first time, the data will be downloaded automatically.
bash runours.sh
the result will be saved in results directory.
run the baseline.sh
to see the results of baselines.
bash baseline.sh
switch the branch to mixed
# switch to the root dir of project
cd ..
git checkout mixed
then follow the instrcution in mixed
62AD
code> branch
switch the branch to local_adaptation
# make sure you are in the root dir of project
git checkout local_adaptation
switch the branch to cost
# make sure you are in the root dir of project
git checkout cost
switch the branch to dp
# make sure you are in the root dir of project
git checkout dp
you can calculate the results by running read_results.ipynb
in results
dir