forked from AI-HPC-Research-Team/GW_PE_prior_sampling
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_alpha.sh
47 lines (46 loc) · 1.63 KB
/
run_alpha.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
export CUDA_VISIBLE_DEVICES=0
python3.7 -m inference.gwpe_main train new nde \
--data_dir data/GW150914_sample_prior_basis/ \
--model_dir models/GW150914_sample_uniform_100basis_all_mixed_prior_a05/ \ # alpha = 0.5
--basis_dir data/GW150914_sample_prior_basis/ \
--save_model_name model.pt \
--save_aux_filename waveforms_supplementary.hdf5 \
--nbins 8 \
--dont_sample_extrinsic_only \
--mixed_alpha 0.5 \ # alpha = 0.5
--nsamples_target_event 50000 \
--nsample 100000 \
--sampling_from mixed \ # alpha => 0~1
--num_transform_blocks 10 \
--nflows 15 \
--batch_norm \
--batch_size 2048 \
--output_freq 10 \
--lr 0.0001 \
--epochs 10000 \
--distance_prior_fn uniform_distance \
--hidden_dims 512 \
--truncate_basis 100 \
--activation elu \
--lr_anneal_method cosine
# train data sampling from mixed (uniform + posterior)
# for all params dim
## using uniform basis (truncate 100)
## Used for resuming running
#python3.7 -m inference.gwpe_main train existing \
# --data_dir data/GW151012_sample_prior_basis/ \
# --model_dir models/GW151012_sample_uniform_100basis_all_posterior_prior/ \
# --basis_dir data/GW151012_sample_prior_basis/ \
# --save_model_name model.pt \
# --save_aux_filename waveforms_supplementary.hdf5 \
# --dont_sample_extrinsic_only \
# --nsamples_target_event 1000 \
# --nsample 100000 \
# --sampling_from posterior \
# --batch_size 2048 \
# --output_freq 10 \
# --lr 0.0002 \
# --epochs 3000 \
# --distance_prior_fn uniform_distance \
# --truncate_basis 100 \
# --lr_anneal_method cosine