Skip to content

Commit c9a597d

Browse files
authored
Update README.md
1 parent 76ae86e commit c9a597d

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

README.md

+16-7
Original file line numberDiff line numberDiff line change
@@ -81,35 +81,44 @@ The experiments are organised in a hierarchical way such that:
8181
To train a model:
8282

8383
```
84-
python main.py --experiment_description exp1 \
85-
--run_description run_1 \
84+
python main.py --phase train \
85+
--experiment_description exp1 \
86+
--da_method DANN \
87+
--dataset HHAR \
88+
--backbone CNN \
89+
--num_runs 5 \
90+
```
91+
To test a model:
92+
93+
```
94+
python main.py --phase test \
95+
--experiment_description exp1 \
8696
--da_method DANN \
8797
--dataset HHAR \
8898
--backbone CNN \
8999
--num_runs 5 \
90-
--is_sweep False
91100
```
92101
### Launching a sweep
93102
Sweeps here are deployed on [Wandb](https://wandb.ai/), which makes it easier for visualization, following the training progress, organizing sweeps, and collecting results.
94103

95104
```
96-
python main.py --experiment_description exp1_sweep \
105+
python main_sweep.py --experiment_description exp1_sweep \
97106
--run_description sweep_over_lr \
98107
--da_method DANN \
99108
--dataset HHAR \
100109
--backbone CNN \
101110
--num_runs 5 \
102-
--is_sweep True \
103-
--num_sweeps 50 \
104111
--sweep_project_wandb TEST
112+
--num_sweeps 50 \
105113
```
106114
Upon the run, you will find the running progress in the specified project page in wandb.
107115

108116
`Note:` If you got cuda out of memory error during testing, this is probably due to DEV risk calculations.
109117

110118

111119
### Upper and Lower bounds
112-
To obtain the source-only or the target-only results, you can run `same_domain_trainer.py` file.
120+
- To obtain the source-only or the lower bound you can choose the da_method to be `NO_ADAPT`.
121+
- To obtain the the target-only or the upper bound you can choose the da_method `TARGET_ONLY`
113122

114123
## Results
115124
- Each run will have all the cross-domain scenarios results in the format `src_to_trg_run_x`, where `x`

0 commit comments

Comments
 (0)