Skip to content

Commit

Permalink
merge commit
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoWohlrapp committed Jul 2, 2024
2 parents 1198eeb + 5c0f6b1 commit 5ff5fd3
Show file tree
Hide file tree
Showing 9 changed files with 116 additions and 1,659 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,5 +51,5 @@ jobs:
echo "insert a shebang line (#!/bin/bash -x -v) at the beginning of the bash script"
sed -i '1s/^/#!\/bin\/bash -x -v\n/' run_benchmark_standalone.sh
bash -x -v run_benchmark_standalone.sh examples/benchmark/demo_shared_hyper_grid.yaml
cat zoutput/benchmarks/mnist_benchmark_grid/hyperparameters.csv
cat zoutput/benchmarks/mnist_benchmark_grid/results.csv
cat zoutput/benchmarks/mnist_benchmark_grid*/hyperparameters.csv
cat zoutput/benchmarks/mnist_benchmark_grid*/results.csv
2 changes: 1 addition & 1 deletion docs/doc_usage_cmd.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ To run DomainLab, the minimum necessary parameters are:

- **Command Line Usage:**
- For a single value: `python script.py --gamma_reg=0.1`
- For multiple values: `python script.py --gamma_reg='default=0.1,dann=0.05,diva=0.2'`
- For multiple values: `python script.py --gamma_reg='default=0.1,dann=0.05,jigen=0.2'`

- **YAML Configuration:**
- For a single value:
Expand Down
5 changes: 4 additions & 1 deletion domainlab/arg_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ def mk_parser_main():
parser.add_argument(
"--gamma_reg",
default=0.1,
help="weight of regularization loss, can specify per model as 'dann=1.0,diva=2.0'",
help="weight of regularization loss in the form of $$\ell(\cdot) + \mu \times R(\cdot)$$ \
can specify per model as 'default=3.0, dann=1.0,jigen=2.0', where default refer to gamma for trainer \
note diva is implemented $$\ell(\cdot) + \mu \times R(\cdot)$$ \
so diva does not have gamma_reg",
action=ParseValuesOrKeyValuePairs
)

Expand Down
Loading

0 comments on commit 5ff5fd3

Please sign in to comment.