File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ test_hparams_log_dir = "test_hparams_logs/"
7
7
isdir (test_hparams_log_dir) && rm (test_hparams_log_dir, force= true , recursive= true )
8
8
9
9
# Create a new logger
10
- for (i, trial_id) in enumerate ([" run1 " , " run2 " , " run3 " ])
10
+ for (i, trial_id) in enumerate ([" run $k " for k in 1 : 20 ])
11
11
logger = TBLogger (test_hparams_log_dir* trial_id, tb_append)
12
12
13
13
# Add in the a dummy loss metric
@@ -18,13 +18,14 @@ test_hparams_log_dir = "test_hparams_logs/"
18
18
end
19
19
20
20
# Setup example hyperparameters
21
- # hparams_config = Dict{String, Any}(
22
- # "alpha"=>0.5,
23
- # "id"=>Float64(i),
24
- # "is_testing"=>(i%2==0)
25
- # )
26
21
hparams_config = Dict {String, Any} (
27
22
" id" => Float64 (i),
23
+ " alpha" => 0.5 ,
24
+ " p1" => rand (),
25
+ " p2" => sqrt (rand ()),
26
+ " p3" => rand ()^ 5 ,
27
+ " optimisations" => (i% 2 == 0 ),
28
+ " method" => rand ((" MC" , " SGD" ))
28
29
)
29
30
metrics = [" scalar/loss" ]
30
31
You can’t perform that action at this time.
0 commit comments