IamMuhammadZeeshan commited on
Commit
ca3d92c
·
1 Parent(s): 51e9fe8

updated code format: h5 posteriors and reports

Browse files
.gitignore ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ *.hdf5
2
+ *.h5
constants.json DELETED
@@ -1,65 +0,0 @@
1
- {
2
- "m1max": 300.0,
3
- "a_zeta_g_0": 0.0,
4
- "a_zeta_g_1": 0.0,
5
- "a_zeta_bpl_0": 0.0,
6
- "a_1_comp1_high_g_0": 1.0,
7
- "a_1_comp1_high_g_1": 1.0,
8
- "a_1_comp1_high_bpl_0": 1.0,
9
- "a_1_comp1_low_g_0": 0.0,
10
- "a_1_comp1_low_g_1": 0.0,
11
- "a_1_comp1_low_bpl_0": 0.0,
12
- "a_1_comp2_high_g_0": 1.0,
13
- "a_1_comp2_high_g_1": 1.0,
14
- "a_1_comp2_high_bpl_0": 1.0,
15
- "a_1_comp2_loc_g_0": 0.0,
16
- "a_1_comp2_loc_g_1": 0.0,
17
- "a_1_comp2_loc_bpl_0": 0.0,
18
- "a_1_comp2_low_g_0": 0.0,
19
- "a_1_comp2_low_g_1": 0.0,
20
- "a_1_comp2_low_bpl_0": 0.0,
21
- "a_1_comp2_scale_g_0": 1.0,
22
- "a_1_comp2_scale_g_1": 1.0,
23
- "a_1_comp2_scale_bpl_0": 1.0,
24
- "a_2_comp1_high_g_0": 1.0,
25
- "a_2_comp1_high_g_1": 1.0,
26
- "a_2_comp1_high_bpl_0": 1.0,
27
- "a_2_comp1_low_g_0": 0.0,
28
- "a_2_comp1_low_g_1": 0.0,
29
- "a_2_comp1_low_bpl_0": 0.0,
30
- "a_2_comp2_high_g_0": 1.0,
31
- "a_2_comp2_high_g_1": 1.0,
32
- "a_2_comp2_high_bpl_0": 1.0,
33
- "a_2_comp2_loc_g_0": 0.0,
34
- "a_2_comp2_loc_g_1": 0.0,
35
- "a_2_comp2_loc_bpl_0": 0.0,
36
- "a_2_comp2_low_g_0": 0.0,
37
- "a_2_comp2_low_g_1": 0.0,
38
- "a_2_comp2_low_bpl_0": 0.0,
39
- "a_2_comp2_scale_g_0": 1.0,
40
- "a_2_comp2_scale_g_1": 1.0,
41
- "a_2_comp2_scale_bpl_0": 1.0,
42
- "cos_tilt_1_minimum_bpl_0": -1.0,
43
- "cos_tilt_1_minimum_g_0": -1.0,
44
- "cos_tilt_1_minimum_g_1": -1.0,
45
- "cos_tilt_2_minimum_bpl_0": -1.0,
46
- "cos_tilt_2_minimum_g_0": -1.0,
47
- "cos_tilt_2_minimum_g_1": -1.0,
48
- "redshift_z_max_g_0": 2.3,
49
- "redshift_z_max_g_1": 2.3,
50
- "redshift_z_max_bpl_0": 2.3,
51
- "N_bpl": 1,
52
- "N_g": 2,
53
- "use_beta_spin_magnitude": false,
54
- "use_spin_magnitude_mixture": true,
55
- "use_chi_eff_mixture": false,
56
- "use_skew_normal_chi_eff": false,
57
- "use_truncated_normal_chi_p": false,
58
- "use_tilt": true,
59
- "use_eccentricity_mixture": false,
60
- "use_eccentricity_powerlaw": false,
61
- "use_redshift": true,
62
- "m1_high_g_0": 300.0,
63
- "m1_high_g_1": 300.0,
64
- "m1max_bpl_0": 300.0
65
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
data_cfg.json CHANGED
@@ -1,7 +1,7 @@
1
  {
2
- "regex": "/home/muhammad.zeeshan/dataset/gwk_data/hdf5/153_bbh/*.h5",
3
- "default_datasets": ["/C01:Mixed/posterior_samples", "/C00:NRSur7dq4/posterior_samples/","/C00:Mixed/posterior_samples/"],
4
- "max_samples": 1993,
5
  "default_mass_prior": "flat-detector-components",
6
  "default_spin_prior": "component",
7
  "default_distance_prior": "comoving"
 
1
  {
2
+ "regex": "/home/muhammad.zeeshan/projects/active/ecc_sub_pop_and_RIFT/dataset/Circ_BBH/*.h5",
3
+ "default_datasets": ["/C00:NRSur7dq4/posterior_samples/","/C01:Mixed/posterior_samples/","/C00:Mixed/posterior_samples/"],
4
+ "max_samples": 1990,
5
  "default_mass_prior": "flat-detector-components",
6
  "default_spin_prior": "component",
7
  "default_distance_prior": "comoving"
f_sampler.json DELETED
@@ -1,37 +0,0 @@
1
- {
2
- "chain_batch_size": 0,
3
- "n_chains": 30,
4
-
5
- "batch_size": 10000,
6
- "history_window": 1500,
7
- "n_epochs": 30,
8
- "n_max_examples": 80000,
9
-
10
- "n_NFproposal_batch_size": 20,
11
-
12
- "n_global_steps": 40,
13
- "n_local_steps": 150,
14
-
15
- "global_thinning": 1,
16
- "local_thinning": 1,
17
-
18
- "n_production_loops": 30,
19
- "n_training_loops": 40,
20
-
21
- "local_sampler_name": "hmc",
22
- "step_size": 0.01,
23
- "n_leapfrog": 12,
24
- "learning_rate": 0.001,
25
- "rq_spline_hidden_units": [
26
- 128,
27
- 128
28
- ],
29
- "rq_spline_n_bins": 8,
30
- "rq_spline_n_layers": 6,
31
- "rq_spline_range": [
32
- -12.0,
33
- 12.0
34
- ],
35
- "verbose": false,
36
- "mass_matrix": [1.4342073, 1.5670033, 6.0871758, 31.511946, 1434.8206, 11271.613, 0.13334235, 0.21432792, 27126.317, 72.389494, 41.582696, 727.04235, 33.170976, 33.629473, 35.660747, 0.73138513, 0.024849243, 0.99208484, 0.16519027, 0.027433022, 0.64396061, 2.8166763, 3.386657]
37
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
figs/autocorrelation_plots.html ADDED
The diff for this file is too large to render. See raw diff
 
figs/autocovariance_plots.html ADDED
The diff for this file is too large to render. See raw diff
 
figs/chain_0.png DELETED

Git LFS Details

  • SHA256: d55367df45f824d8c22c565b9b59b723ca011913319481594f1b09f2f7f695ea
  • Pointer size: 132 Bytes
  • Size of remote file: 1.63 MB
figs/chain_1.png DELETED

Git LFS Details

  • SHA256: 1061b85eef56e3a268f3920afbd3be3557e84da7422c843701d4041f11bd4557
  • Pointer size: 132 Bytes
  • Size of remote file: 1.65 MB
figs/chain_2.png DELETED

Git LFS Details

  • SHA256: 3561d06f4db545f22850392de02d0361bb4e4992fc3b1479b18637f60ffdc927
  • Pointer size: 132 Bytes
  • Size of remote file: 1.67 MB
figs/chain_3.png DELETED

Git LFS Details

  • SHA256: a392cf86a1062aba308bff52d794e968b0d7f5110d2ee03c2a54b81ac231a4be
  • Pointer size: 132 Bytes
  • Size of remote file: 1.65 MB
figs/chain_4.png DELETED

Git LFS Details

  • SHA256: f3840b98c09a3dd3ee433a375219d0213e833e7e966881ac58e56fc477afd3a1
  • Pointer size: 132 Bytes
  • Size of remote file: 1.66 MB
figs/chain_5.png DELETED

Git LFS Details

  • SHA256: ba96eb1cdcf42fa7742045daaec75b4d277d8f182cce27d5600b7fb38e981aa6
  • Pointer size: 132 Bytes
  • Size of remote file: 1.66 MB
figs/chain_6.png DELETED

Git LFS Details

  • SHA256: 8d36266cd53fb7f5878bdf6d2c3e507de539ef9acc5b4e3ae46ffa25466f6339
  • Pointer size: 132 Bytes
  • Size of remote file: 1.63 MB
figs/chain_7.png DELETED

Git LFS Details

  • SHA256: 3223d392c4e9d72b5d31deb3fdbf9ed9c352ae5e8abfd5b0515567a5416048ec
  • Pointer size: 132 Bytes
  • Size of remote file: 1.65 MB
figs/chain_8.png DELETED

Git LFS Details

  • SHA256: 122ba7655f8710c1f56dc4ee24230c9e23a8be978259cf214c6dc7cf3b287708
  • Pointer size: 132 Bytes
  • Size of remote file: 1.69 MB
figs/chain_9.png DELETED

Git LFS Details

  • SHA256: f39eb67344c5e83de08aacd03004979e7e37ae953abd7e7ae083490f3ddb1c88
  • Pointer size: 132 Bytes
  • Size of remote file: 1.66 MB
figs/chains.png DELETED

Git LFS Details

  • SHA256: 62f60828445fa80201a2e8996b61284a1ed8dc143aa0b599b80bd29581f33689
  • Pointer size: 132 Bytes
  • Size of remote file: 5.83 MB
figs/effective_sample_size.html ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ <html>
2
+ <head><meta charset="utf-8" /></head>
3
+ <body>
4
+ <div style="height:100%; width:100%;"> <script>window.PlotlyConfig = {MathJaxConfig: 'local'};</script>
5
+ <script charset="utf-8" src="https://cdn.plot.ly/plotly-3.6.0.min.js" integrity="sha256-QaOVwtVY0T02VaHrr6pnoHLCwayMJp4O5n4YyaE3rJk=" crossorigin="anonymous"></script> <div id="c404f60a-24c4-4e6b-9242-a1d4b51855c7" class="plotly-graph-div" style="height:100%; width:100%;"></div> <script> window.PLOTLYENV=window.PLOTLYENV || {}; if (document.getElementById("c404f60a-24c4-4e6b-9242-a1d4b51855c7")) { Plotly.newPlot( "c404f60a-24c4-4e6b-9242-a1d4b51855c7", [{"marker":{"color":["#0c71ff","#ce2400","#f731b6","#000096","#aeff0c","#1c5951","#10caff","#31cab2","#590000","#65008e","#ae0069","#f7b69a","#ba10c2","#510039","#00650c","#00929e","#20aa00","#ffaeeb","#ff3171"]},"text":["21442.264","14057.166","14900.758","21367.880","9786.730","9623.998","15730.141","7223.879","11033.084","12997.172","21792.047","3334.939","5202.471","5787.820","8163.679","9067.879","24419.461","22493.295","19657.851"],"textposition":"outside","x":["beta_bpl_0","chi_eff_epsilon_bpl_0","chi_eff_loc_bpl_0","chi_eff_scale_bpl_0","lambda_0","lambda_1","log_rate","m1_alpha1_bpl_0","m1_alpha2_bpl_0","m1_break_bpl_0","m1_delta","m1_loc_gpl_0","m1_loc_gpl_1","m1_scale_gpl_0","m1_scale_gpl_1","m1_low_bpl_0","m2_delta_bpl_0","m2_low_bpl_0","redshift_kappa_bpl_0"],"y":{"dtype":"f8","bdata":"9gni5ZDw1EDaMBVPlXTLQF5i4BBhGs1AQtOpSvjd1EBi5aR4XR3DQLQkhMn\u002fy8JA0g1I\u002fRG5zkDa4KgB4Te8QAKZkb2KjMVA8aNQ+5ViyUAs5678AkjVQFDlZIPgDapAB3Q0o3hStECsKwDp0Zu2QDcZk7Kt479A+KfJgvC1wUBijwV93djXQIlsJd1S99VA+STHe3Yy00A="},"type":"bar"}], {"template":{"data":{"histogram2dcontour":[{"type":"histogram2dcontour","colorbar":{"outlinewidth":0,"ticks":""},"colorscale":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]]}],"choropleth":[{"type":"choropleth","colorbar":{"outlinewidth":0,"ticks":""}}],"histogram2d":[{"type":"histogram2d","colorbar":{"outlinewidth":0,"ticks":""},"colorscale":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]]}],"heatmap":[{"type":"heatmap","colorbar":{"outlinewidth":0,"ticks":""},"colorscale":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]]}],"contourcarpet":[{"type":"contourcarpet","colorbar":{"outlinewidth":0,"ticks":""}}],"contour":[{"type":"contour","colorbar":{"outlinewidth":0,"ticks":""},"colorscale":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]]}],"surface":[{"type":"surface","colorbar":{"outlinewidth":0,"ticks":""},"colorscale":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]]}],"mesh3d":[{"type":"mesh3d","colorbar":{"outlinewidth":0,"ticks":""}}],"scatter":[{"fillpattern":{"fillmode":"overlay","size":10,"solidity":0.2},"type":"scatter"}],"parcoords":[{"type":"parcoords","line":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"scatterpolargl":[{"type":"scatterpolargl","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"bar":[{"error_x":{"color":"#2a3f5f"},"error_y":{"color":"#2a3f5f"},"marker":{"line":{"color":"#E5ECF6","width":0.5},"pattern":{"fillmode":"overlay","size":10,"solidity":0.2}},"type":"bar"}],"scattergeo":[{"type":"scattergeo","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"scatterpolar":[{"type":"scatterpolar","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"histogram":[{"marker":{"pattern":{"fillmode":"overlay","size":10,"solidity":0.2}},"type":"histogram"}],"scattergl":[{"type":"scattergl","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"scatter3d":[{"type":"scatter3d","line":{"colorbar":{"outlinewidth":0,"ticks":""}},"marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"scattermap":[{"type":"scattermap","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"scattermapbox":[{"type":"scattermapbox","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"scatterternary":[{"type":"scatterternary","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"scattercarpet":[{"type":"scattercarpet","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"carpet":[{"aaxis":{"endlinecolor":"#2a3f5f","gridcolor":"white","linecolor":"white","minorgridcolor":"white","startlinecolor":"#2a3f5f"},"baxis":{"endlinecolor":"#2a3f5f","gridcolor":"white","linecolor":"white","minorgridcolor":"white","startlinecolor":"#2a3f5f"},"type":"carpet"}],"table":[{"cells":{"fill":{"color":"#EBF0F8"},"line":{"color":"white"}},"header":{"fill":{"color":"#C8D4E3"},"line":{"color":"white"}},"type":"table"}],"barpolar":[{"marker":{"line":{"color":"#E5ECF6","width":0.5},"pattern":{"fillmode":"overlay","size":10,"solidity":0.2}},"type":"barpolar"}],"pie":[{"automargin":true,"type":"pie"}]},"layout":{"autotypenumbers":"strict","colorway":["#636efa","#EF553B","#00cc96","#ab63fa","#FFA15A","#19d3f3","#FF6692","#B6E880","#FF97FF","#FECB52"],"font":{"color":"#2a3f5f"},"hovermode":"closest","hoverlabel":{"align":"left"},"paper_bgcolor":"white","plot_bgcolor":"#E5ECF6","polar":{"bgcolor":"#E5ECF6","angularaxis":{"gridcolor":"white","linecolor":"white","ticks":""},"radialaxis":{"gridcolor":"white","linecolor":"white","ticks":""}},"ternary":{"bgcolor":"#E5ECF6","aaxis":{"gridcolor":"white","linecolor":"white","ticks":""},"baxis":{"gridcolor":"white","linecolor":"white","ticks":""},"caxis":{"gridcolor":"white","linecolor":"white","ticks":""}},"coloraxis":{"colorbar":{"outlinewidth":0,"ticks":""}},"colorscale":{"sequential":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]],"sequentialminus":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]],"diverging":[[0,"#8e0152"],[0.1,"#c51b7d"],[0.2,"#de77ae"],[0.3,"#f1b6da"],[0.4,"#fde0ef"],[0.5,"#f7f7f7"],[0.6,"#e6f5d0"],[0.7,"#b8e186"],[0.8,"#7fbc41"],[0.9,"#4d9221"],[1,"#276419"]]},"xaxis":{"gridcolor":"white","linecolor":"white","ticks":"","title":{"standoff":15},"zerolinecolor":"white","automargin":true,"zerolinewidth":2},"yaxis":{"gridcolor":"white","linecolor":"white","ticks":"","title":{"standoff":15},"zerolinecolor":"white","automargin":true,"zerolinewidth":2},"scene":{"xaxis":{"backgroundcolor":"#E5ECF6","gridcolor":"white","linecolor":"white","showbackground":true,"ticks":"","zerolinecolor":"white","gridwidth":2},"yaxis":{"backgroundcolor":"#E5ECF6","gridcolor":"white","linecolor":"white","showbackground":true,"ticks":"","zerolinecolor":"white","gridwidth":2},"zaxis":{"backgroundcolor":"#E5ECF6","gridcolor":"white","linecolor":"white","showbackground":true,"ticks":"","zerolinecolor":"white","gridwidth":2}},"shapedefaults":{"line":{"color":"#2a3f5f"}},"annotationdefaults":{"arrowcolor":"#2a3f5f","arrowhead":0,"arrowwidth":1},"geo":{"bgcolor":"white","landcolor":"#E5ECF6","subunitcolor":"white","showland":true,"showlakes":true,"lakecolor":"white"},"title":{"x":0.05},"mapbox":{"style":"light"}}},"margin":{"l":60,"r":50,"t":40,"b":50},"xaxis":{"tickangle":-45,"showgrid":true,"gridcolor":"rgba(128, 128, 128, 0.5)","griddash":"dot","mirror":"all","ticks":"inside","showline":true,"linewidth":1,"linecolor":"black"},"yaxis":{"title":{"text":"Effective Sample Size"},"type":"log","showgrid":true,"gridcolor":"rgba(128, 128, 128, 0.5)","griddash":"dot","mirror":"all","ticks":"inside","showline":true,"linewidth":1,"linecolor":"black"},"plot_bgcolor":"white"}, {"responsive": true} ) }; </script> </div>
6
+ </body>
7
+ </html>
figs/gelman_rubin_diagnostic.html ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ <html>
2
+ <head><meta charset="utf-8" /></head>
3
+ <body>
4
+ <div style="height:100%; width:100%;"> <script>window.PlotlyConfig = {MathJaxConfig: 'local'};</script>
5
+ <script charset="utf-8" src="https://cdn.plot.ly/plotly-3.6.0.min.js" integrity="sha256-QaOVwtVY0T02VaHrr6pnoHLCwayMJp4O5n4YyaE3rJk=" crossorigin="anonymous"></script> <div id="e3bdde37-2165-4bdd-8257-411da703b0fb" class="plotly-graph-div" style="height:100%; width:100%;"></div> <script> window.PLOTLYENV=window.PLOTLYENV || {}; if (document.getElementById("e3bdde37-2165-4bdd-8257-411da703b0fb")) { Plotly.newPlot( "e3bdde37-2165-4bdd-8257-411da703b0fb", [{"marker":{"color":["#0c71ff","#ce2400","#f731b6","#000096","#aeff0c","#1c5951","#10caff","#31cab2","#590000","#65008e","#ae0069","#f7b69a","#ba10c2","#510039","#00650c","#00929e","#20aa00","#ffaeeb","#ff3171"]},"text":["1.000","1.000","1.000","1.000","1.000","1.000","1.000","1.000","1.000","1.000","1.000","1.001","1.001","1.000","1.000","1.000","1.000","1.000","1.000"],"textposition":"outside","x":["beta_bpl_0","chi_eff_epsilon_bpl_0","chi_eff_loc_bpl_0","chi_eff_scale_bpl_0","lambda_0","lambda_1","log_rate","m1_alpha1_bpl_0","m1_alpha2_bpl_0","m1_break_bpl_0","m1_delta","m1_loc_gpl_0","m1_loc_gpl_1","m1_scale_gpl_0","m1_scale_gpl_1","m1_low_bpl_0","m2_delta_bpl_0","m2_low_bpl_0","redshift_kappa_bpl_0"],"y":{"dtype":"f4","bdata":"cQiAP9gHgD8+CYA\u002fRvx\u002fP0IBgD84AIA\u002fdQCAP5EAgD8bEIA\u002fuwGAPyv7fz9WFYA\u002fOBSAP00JgD9GDIA\u002fwwiAPwL+fz84AYA\u002fLwGAPw=="},"type":"bar"}], {"template":{"data":{"histogram2dcontour":[{"type":"histogram2dcontour","colorbar":{"outlinewidth":0,"ticks":""},"colorscale":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]]}],"choropleth":[{"type":"choropleth","colorbar":{"outlinewidth":0,"ticks":""}}],"histogram2d":[{"type":"histogram2d","colorbar":{"outlinewidth":0,"ticks":""},"colorscale":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]]}],"heatmap":[{"type":"heatmap","colorbar":{"outlinewidth":0,"ticks":""},"colorscale":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]]}],"contourcarpet":[{"type":"contourcarpet","colorbar":{"outlinewidth":0,"ticks":""}}],"contour":[{"type":"contour","colorbar":{"outlinewidth":0,"ticks":""},"colorscale":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]]}],"surface":[{"type":"surface","colorbar":{"outlinewidth":0,"ticks":""},"colorscale":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]]}],"mesh3d":[{"type":"mesh3d","colorbar":{"outlinewidth":0,"ticks":""}}],"scatter":[{"fillpattern":{"fillmode":"overlay","size":10,"solidity":0.2},"type":"scatter"}],"parcoords":[{"type":"parcoords","line":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"scatterpolargl":[{"type":"scatterpolargl","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"bar":[{"error_x":{"color":"#2a3f5f"},"error_y":{"color":"#2a3f5f"},"marker":{"line":{"color":"#E5ECF6","width":0.5},"pattern":{"fillmode":"overlay","size":10,"solidity":0.2}},"type":"bar"}],"scattergeo":[{"type":"scattergeo","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"scatterpolar":[{"type":"scatterpolar","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"histogram":[{"marker":{"pattern":{"fillmode":"overlay","size":10,"solidity":0.2}},"type":"histogram"}],"scattergl":[{"type":"scattergl","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"scatter3d":[{"type":"scatter3d","line":{"colorbar":{"outlinewidth":0,"ticks":""}},"marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"scattermap":[{"type":"scattermap","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"scattermapbox":[{"type":"scattermapbox","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"scatterternary":[{"type":"scatterternary","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"scattercarpet":[{"type":"scattercarpet","marker":{"colorbar":{"outlinewidth":0,"ticks":""}}}],"carpet":[{"aaxis":{"endlinecolor":"#2a3f5f","gridcolor":"white","linecolor":"white","minorgridcolor":"white","startlinecolor":"#2a3f5f"},"baxis":{"endlinecolor":"#2a3f5f","gridcolor":"white","linecolor":"white","minorgridcolor":"white","startlinecolor":"#2a3f5f"},"type":"carpet"}],"table":[{"cells":{"fill":{"color":"#EBF0F8"},"line":{"color":"white"}},"header":{"fill":{"color":"#C8D4E3"},"line":{"color":"white"}},"type":"table"}],"barpolar":[{"marker":{"line":{"color":"#E5ECF6","width":0.5},"pattern":{"fillmode":"overlay","size":10,"solidity":0.2}},"type":"barpolar"}],"pie":[{"automargin":true,"type":"pie"}]},"layout":{"autotypenumbers":"strict","colorway":["#636efa","#EF553B","#00cc96","#ab63fa","#FFA15A","#19d3f3","#FF6692","#B6E880","#FF97FF","#FECB52"],"font":{"color":"#2a3f5f"},"hovermode":"closest","hoverlabel":{"align":"left"},"paper_bgcolor":"white","plot_bgcolor":"#E5ECF6","polar":{"bgcolor":"#E5ECF6","angularaxis":{"gridcolor":"white","linecolor":"white","ticks":""},"radialaxis":{"gridcolor":"white","linecolor":"white","ticks":""}},"ternary":{"bgcolor":"#E5ECF6","aaxis":{"gridcolor":"white","linecolor":"white","ticks":""},"baxis":{"gridcolor":"white","linecolor":"white","ticks":""},"caxis":{"gridcolor":"white","linecolor":"white","ticks":""}},"coloraxis":{"colorbar":{"outlinewidth":0,"ticks":""}},"colorscale":{"sequential":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]],"sequentialminus":[[0.0,"#0d0887"],[0.1111111111111111,"#46039f"],[0.2222222222222222,"#7201a8"],[0.3333333333333333,"#9c179e"],[0.4444444444444444,"#bd3786"],[0.5555555555555556,"#d8576b"],[0.6666666666666666,"#ed7953"],[0.7777777777777778,"#fb9f3a"],[0.8888888888888888,"#fdca26"],[1.0,"#f0f921"]],"diverging":[[0,"#8e0152"],[0.1,"#c51b7d"],[0.2,"#de77ae"],[0.3,"#f1b6da"],[0.4,"#fde0ef"],[0.5,"#f7f7f7"],[0.6,"#e6f5d0"],[0.7,"#b8e186"],[0.8,"#7fbc41"],[0.9,"#4d9221"],[1,"#276419"]]},"xaxis":{"gridcolor":"white","linecolor":"white","ticks":"","title":{"standoff":15},"zerolinecolor":"white","automargin":true,"zerolinewidth":2},"yaxis":{"gridcolor":"white","linecolor":"white","ticks":"","title":{"standoff":15},"zerolinecolor":"white","automargin":true,"zerolinewidth":2},"scene":{"xaxis":{"backgroundcolor":"#E5ECF6","gridcolor":"white","linecolor":"white","showbackground":true,"ticks":"","zerolinecolor":"white","gridwidth":2},"yaxis":{"backgroundcolor":"#E5ECF6","gridcolor":"white","linecolor":"white","showbackground":true,"ticks":"","zerolinecolor":"white","gridwidth":2},"zaxis":{"backgroundcolor":"#E5ECF6","gridcolor":"white","linecolor":"white","showbackground":true,"ticks":"","zerolinecolor":"white","gridwidth":2}},"shapedefaults":{"line":{"color":"#2a3f5f"}},"annotationdefaults":{"arrowcolor":"#2a3f5f","arrowhead":0,"arrowwidth":1},"geo":{"bgcolor":"white","landcolor":"#E5ECF6","subunitcolor":"white","showland":true,"showlakes":true,"lakecolor":"white"},"title":{"x":0.05},"mapbox":{"style":"light"}}},"shapes":[{"line":{"color":"red","dash":"dash"},"type":"line","x0":0,"x1":1,"xref":"x domain","y0":1.0,"y1":1.0,"yref":"y"}],"annotations":[{"showarrow":false,"text":"R-hat = 1.0 (Ideal)","x":0,"xanchor":"left","xref":"x domain","y":1.0,"yanchor":"bottom","yref":"y"}],"margin":{"l":60,"r":50,"t":40,"b":50},"xaxis":{"tickangle":-45,"showgrid":true,"gridcolor":"rgba(128, 128, 128, 0.5)","griddash":"dot","mirror":"all","ticks":"inside","showline":true,"linewidth":1,"linecolor":"black"},"yaxis":{"title":{"text":"Gelman-Rubin Diagnostic"},"range":[0.999907836318016,1.000813901424408],"showgrid":true,"gridcolor":"rgba(128, 128, 128, 0.5)","griddash":"dot","mirror":"all","ticks":"inside","showline":true,"linewidth":1,"linecolor":"black"},"plot_bgcolor":"white"}, {"responsive": true} ) }; </script> </div>
6
+ </body>
7
+ </html>
figs/mean_autocorrelation_plot.html ADDED
The diff for this file is too large to render. See raw diff
 
figs/mean_autocovariance_plot.html ADDED
The diff for this file is too large to render. See raw diff
 
figs/samples.png DELETED

Git LFS Details

  • SHA256: e8834ac04b9f0f15c0b1c800521c64b0171062190bc556b4b9b461e80258a320
  • Pointer size: 131 Bytes
  • Size of remote file: 540 kB
numpyro_inference/chain_2.dat → figs/trace_plots.html RENAMED
The diff for this file is too large to render. See raw diff
 
logs/o4a.log ADDED
The diff for this file is too large to render. See raw diff
 
logs/o4a_reproduce_spin_mag_tilt.log DELETED
The diff for this file is too large to render. See raw diff
 
nf_samples_mapping.json DELETED
@@ -1,50 +0,0 @@
1
- {
2
- "a_1_comp1_loc_bpl_0": 0,
3
- "a_1_comp1_scale_bpl_0": 1,
4
- "alpha1_bpl_0": 2,
5
- "alpha2_bpl_0": 3,
6
- "beta": 4,
7
- "cos_tilt_1_loc_bpl_0": 5,
8
- "cos_tilt_1_scale_bpl_0": 6,
9
- "cos_tilt_zeta_bpl_0": 7,
10
- "delta_m1": 8,
11
- "delta_m2": 9,
12
- "lambda_0": 10,
13
- "lambda_1": 11,
14
- "log_rate": 12,
15
- "m1_loc_g_0": 13,
16
- "m1_loc_g_1": 14,
17
- "m1_scale_g_0": 15,
18
- "m1_scale_g_1": 16,
19
- "m1break_bpl_0": 17,
20
- "m1min": 18,
21
- "m2min": 19,
22
- "redshift_kappa_bpl_0": 20,
23
- "m1_low_g_0": 18,
24
- "m1_low_g_1": 18,
25
- "m1min_bpl_0": 18,
26
- "a_1_comp1_loc_g_0": 0,
27
- "a_1_comp1_loc_g_1": 0,
28
- "a_1_comp1_scale_g_0": 1,
29
- "a_1_comp1_scale_g_1": 1,
30
- "a_2_comp1_loc_g_0": 0,
31
- "a_2_comp1_loc_g_1": 0,
32
- "a_2_comp1_loc_bpl_0": 0,
33
- "a_2_comp1_scale_g_0": 1,
34
- "a_2_comp1_scale_g_1": 1,
35
- "a_2_comp1_scale_bpl_0": 1,
36
- "cos_tilt_zeta_g_0": 7,
37
- "cos_tilt_zeta_g_1": 7,
38
- "cos_tilt_1_loc_g_0": 5,
39
- "cos_tilt_1_loc_g_1": 5,
40
- "cos_tilt_1_scale_g_0": 6,
41
- "cos_tilt_1_scale_g_1": 6,
42
- "cos_tilt_2_loc_bpl_0": 5,
43
- "cos_tilt_2_loc_g_0": 5,
44
- "cos_tilt_2_loc_g_1": 5,
45
- "cos_tilt_2_scale_bpl_0": 6,
46
- "cos_tilt_2_scale_g_0": 6,
47
- "cos_tilt_2_scale_g_1": 6,
48
- "redshift_kappa_g_0": 20,
49
- "redshift_kappa_g_1": 20
50
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
nohup.out ADDED
The diff for this file is too large to render. See raw diff
 
sampler_cfg.json → numpyro_cfg.json RENAMED
@@ -1,23 +1,25 @@
1
  {
 
2
  "kernel": {
3
- "step_size": 0.5,
4
  "inverse_mass_matrix": null,
5
  "adapt_step_size": true,
6
  "adapt_mass_matrix": true,
7
  "dense_mass": false,
8
  "target_accept_prob": 0.8,
9
- "max_tree_depth": 8,
10
  "find_heuristic_step_size": true,
11
  "forward_mode_differentiation": false,
12
  "regularize_mass_matrix": true
13
  },
14
  "mcmc": {
15
- "num_warmup": 3000,
16
- "num_samples": 7000,
17
- "num_chains": 10,
18
  "thinning": 1,
19
- "chain_method": "sequential",
 
20
  "progress_bar": true,
 
21
  "jit_model_args": true
22
  }
23
  }
 
1
  {
2
+ "sampler_name": "numpyro",
3
  "kernel": {
4
+ "step_size": 1.0,
5
  "inverse_mass_matrix": null,
6
  "adapt_step_size": true,
7
  "adapt_mass_matrix": true,
8
  "dense_mass": false,
9
  "target_accept_prob": 0.8,
10
+ "max_tree_depth": [12,8],
11
  "find_heuristic_step_size": true,
12
  "forward_mode_differentiation": false,
13
  "regularize_mass_matrix": true
14
  },
15
  "mcmc": {
16
+ "num_warmup": 5000,
17
+ "num_samples": 10000,
 
18
  "thinning": 1,
19
+ "num_chains": 10,
20
+ "chain_method": "parallel",
21
  "progress_bar": true,
22
+ "progress_rate": null,
23
  "jit_model_args": true
24
  }
25
  }
numpyro_inference/chain_0.dat DELETED
The diff for this file is too large to render. See raw diff
 
numpyro_inference/chain_1.dat DELETED
The diff for this file is too large to render. See raw diff
 
numpyro_inference/chain_3.dat DELETED
The diff for this file is too large to render. See raw diff
 
numpyro_inference/chain_4.dat DELETED
The diff for this file is too large to render. See raw diff
 
numpyro_inference/chain_5.dat DELETED
The diff for this file is too large to render. See raw diff
 
numpyro_inference/chain_6.dat DELETED
The diff for this file is too large to render. See raw diff
 
numpyro_inference/chain_7.dat DELETED
The diff for this file is too large to render. See raw diff
 
numpyro_inference/chain_8.dat DELETED
The diff for this file is too large to render. See raw diff
 
numpyro_inference/chain_9.dat DELETED
The diff for this file is too large to render. See raw diff
 
physical_rates.py ADDED
@@ -0,0 +1,74 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import numpy as np
2
+
3
+ # -------------------------------------------------
4
+ # Load samples.dat
5
+ # -------------------------------------------------
6
+
7
+ samples = np.genfromtxt(
8
+ "./numpyro_inference/samples.dat",
9
+ names=True,
10
+ comments="#"
11
+ )
12
+
13
+ # -------------------------------------------------
14
+ # Read columns
15
+ # -------------------------------------------------
16
+
17
+ log_rate = samples["log_rate"]
18
+
19
+ lambda_0 = samples["lambda_0"]
20
+ lambda_1 = samples["lambda_1"]
21
+
22
+ # Third component fraction
23
+ lambda_2 = 1.0 - lambda_0 - lambda_1
24
+
25
+ # -------------------------------------------------
26
+ # Convert total rate
27
+ # -------------------------------------------------
28
+
29
+ # Use ONE convention only
30
+
31
+ # Natural log convention
32
+ Rtot = np.exp(log_rate)
33
+
34
+ # Base-10 log convention
35
+ # Rtot = 10**log_rate
36
+
37
+ # -------------------------------------------------
38
+ # Physical rates for each component
39
+ # -------------------------------------------------
40
+
41
+ R0 = lambda_0 * Rtot
42
+ R1 = lambda_1 * Rtot
43
+ R2 = lambda_2 * Rtot
44
+
45
+ # -------------------------------------------------
46
+ # Helper function
47
+ # -------------------------------------------------
48
+
49
+ def summarize(name, arr):
50
+ median = np.median(arr)
51
+ low = np.percentile(arr, 5)
52
+ high = np.percentile(arr, 95)
53
+
54
+ print(
55
+ f"{name:15s} "
56
+ f"median={median:10.3f} "
57
+ f"5%={low:10.3f} "
58
+ f"95%={high:10.3f}"
59
+ )
60
+
61
+ # -------------------------------------------------
62
+ # Print results
63
+ # -------------------------------------------------
64
+
65
+ print("\n===== Mixture Fractions =====")
66
+ summarize("lambda_0", lambda_0)
67
+ summarize("lambda_1", lambda_1)
68
+ summarize("lambda_2", lambda_2)
69
+
70
+ print("\n===== Physical Rates =====")
71
+ summarize("R_total", Rtot)
72
+ summarize("R0", R0)
73
+ summarize("R1", R1)
74
+ summarize("R2", R2)
plots.sh DELETED
@@ -1,35 +0,0 @@
1
- #!/bin/bash
2
-
3
- dir=figs
4
- mkdir $dir
5
-
6
- labels="a_1_comp1_loc_bpl_0 a_1_comp1_scale_bpl_0 alpha1_bpl_0 alpha2_bpl_0 beta cos_tilt_1_loc_bpl_0 cos_tilt_1_scale_bpl_0 cos_tilt_zeta_bpl_0 delta_m1 delta_m2 lambda_0 lambda_1 log_rate m1_loc_g_0 m1_loc_g_1 m1_scale_g_0 m1_scale_g_1 m1break_bpl_0 m1min m2min redshift_kappa_bpl_0"
7
-
8
- gwk_corner_plot \
9
- --data "./numpyro_inference/samples.dat" \
10
- --output $dir/samples.png \
11
- --bin 30 \
12
- --scale 1.5 \
13
- --show-titles \
14
- --labels $labels
15
-
16
- gwk_chain_plot \
17
- --data "./numpyro_inference/chain_*.dat" \
18
- --output $dir/chains.png \
19
- --label $labels \
20
- --width 10 \
21
- --dpi 200 \
22
- --alpha 0.3
23
-
24
- for file in ./numpyro_inference/chain_*.dat; do
25
- name=$(basename "$file" .dat)
26
-
27
- gwk_chain_plot \
28
- --data $file \
29
- --output "$dir/${name}.png" \
30
- --title "Chains ($name)" \
31
- --width 10 \
32
- --dpi 200 \
33
- --alpha 0.5 \
34
- --labels $labels
35
- done
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
pmean.json CHANGED
@@ -1,6 +1,6 @@
1
  {
2
  "estimator_type": "injection",
3
- "filename": "/home/muhammad.zeeshan/dataset/VTs/o4a/mixture-semi_o1_o2-real_o3_o4a-cartesian_spins_20250503134659UTC.hdf",
4
  "batch_size": 1065922,
5
  "snr_cut": 10.0,
6
  "far_cut": 1.0
 
1
  {
2
  "estimator_type": "injection",
3
+ "filename": "/home/muhammad.zeeshan/dataset/VTs/o4a_o4b_o4c/mixture-semi_o1_o2-real_o3_o4a-cartesian_spins_20250503134659UTC.hdf",
4
  "batch_size": 1065922,
5
  "snr_cut": 10.0,
6
  "far_cut": 1.0
prior.json CHANGED
@@ -2,28 +2,32 @@
2
  "log_rate": {
3
  "dist": "Uniform",
4
  "high": 10.0,
5
- "low": -10.0
6
  },
7
- "alpha[1-2]_bpl_[0-9]+": {
8
  "dist": "Uniform",
9
  "high": 12.0,
10
  "low": -4.0
11
  },
12
- "beta": {
13
  "dist": "Uniform",
14
  "high": 7.0,
15
  "low": -2.0
16
  },
17
- "delta_m1": {
 
 
18
  "dist": "Uniform",
19
  "high": 10.0,
20
  "low": 0.0
21
  },
22
- "delta_m2": {
23
  "dist": "Uniform",
24
  "high": 10.0,
25
  "low": 0.0
26
  },
 
 
27
  "lambda_0": {
28
  "dist": "DirichletElement",
29
  "n_dimensions": 3,
@@ -35,12 +39,12 @@
35
  "order": 1,
36
  "concentration0": "lambda_0"
37
  },
38
- "m1_loc_g_0": {
39
  "dist": "Uniform",
40
  "high": 20.0,
41
  "low": 5.0
42
  },
43
- "m1_loc_g_1": {
44
  "dist": "Uniform",
45
  "high": 60.0,
46
  "low": 25.0
@@ -50,97 +54,69 @@
50
  "high": 10.0,
51
  "low": 3.0
52
  },
53
- "m2min": {
54
  "dist": "Uniform",
55
  "high": "m1min",
56
  "low": 3.0
57
  },
58
- "m1break_bpl_0": {
 
 
59
  "dist": "Uniform",
60
  "high": 50.0,
61
  "low": 20.0
62
  },
63
  "m1max": 300.0,
64
- "m1max_(bpl|g)_[0-9]+": "m1max",
65
- "m1min_(bpl|g)_[0-9]+": "m1min",
66
- "m1_high_g_[0-9]+": "m1max",
67
- "m1_low_g_[0-9]+": "m1min",
68
- "m1_scale_g_0": {
69
  "dist": "Uniform",
70
  "high": 10.0,
71
  "low": 0.0
72
  },
73
- "m1_scale_g_1": {
74
  "dist": "Uniform",
75
  "high": 10.0,
76
  "low": 0.0
77
  },
78
- "a_zeta_(bpl|g)_[0-9]+": 0.0,
79
- "chi_eff_zeta_(bpl|g)_[0-9]+": 0.0,
80
- "chi_eff_comp1_loc_bpl_0": {
81
  "dist": "Uniform",
82
  "high": 1.0,
83
  "low": -1.0
84
  },
85
- "chi_eff_comp1_loc_g_[0-9]+": "chi_eff_comp1_loc_bpl_0",
86
- "chi_eff_comp1_scale_bpl_0": {
87
- "dist": "Uniform",
88
- "high": 1.0,
89
- "low": 0.005
90
- },
91
- "chi_eff_comp1_scale_g_[0-9]+": "chi_eff_comp1_scale_bpl_0",
92
- "chi_eff_comp2_loc_(bpl|g)_[0-9]+": 0.0,
93
- "chi_eff_comp2_scale_(bpl|g)_[0-9]+": 1.0,
94
- "chi_eff_comp[1-2]_low_(bpl|g)_[0-9]+": -1.0,
95
- "chi_eff_comp[1-2]_high_(bpl|g)_[0-9]+": 1.0,
96
- "a_1_comp1_loc_bpl_0": {
97
- "dist": "Uniform",
98
- "high": 1.0,
99
- "low": 0.0
100
- },
101
- "a_1_comp1_loc_(bpl|g)_[0-9]+": "a_1_comp1_loc_bpl_0",
102
- "a_2_comp1_loc_(bpl|g)_[0-9]+": "a_1_comp1_loc_bpl_0",
103
- "a_1_comp1_scale_bpl_0": {
104
- "dist": "Uniform",
105
- "high": 1.0,
106
- "low": 0.005
107
- },
108
- "a_1_comp1_scale_g_[0-9]+": "a_1_comp1_scale_bpl_0",
109
- "a_2_comp1_scale_(bpl|g)_[0-9]+": "a_1_comp1_scale_bpl_0",
110
- "a_[1-2]_comp2_loc_(bpl|g)_[0-9]+": 0.0,
111
- "a_[1-2]_comp2_scale_(bpl|g)_[0-9]+": 1.0,
112
- "a_[1-2]_comp[1-2]_low_(bpl|g)_[0-9]+": 0.0,
113
- "a_[1-2]_comp[1-2]_high_(bpl|g)_[0-9]+": 1.0,
114
- "cos_tilt_zeta_bpl_0": {
115
- "dist": "Uniform",
116
- "high": 1.0,
117
- "low": 0.0
118
  },
119
- "cos_tilt_zeta_(bpl|g)_[0-9]+": "cos_tilt_zeta_bpl_0",
120
- "cos_tilt_1_loc_bpl_0": {
 
 
121
  "dist": "Uniform",
122
  "high": 1.0,
123
  "low": -1.0
124
  },
125
- "cos_tilt_1_loc_bpl_1": "cos_tilt_1_loc_bpl_0",
126
- "cos_tilt_1_loc_g_0": "cos_tilt_1_loc_bpl_0",
127
- "cos_tilt_1_loc_g_1": "cos_tilt_1_loc_bpl_0",
128
- "cos_tilt_2_loc_(bpl|g)_[0-9]+": "cos_tilt_1_loc_bpl_0",
129
- "cos_tilt_1_scale_bpl_0": {
130
- "dist": "Uniform",
131
- "high": 4.0,
132
- "low": 0.01
133
- },
134
- "cos_tilt_1_scale_bpl_1": "cos_tilt_1_scale_bpl_0",
135
- "cos_tilt_1_scale_g_0": "cos_tilt_1_scale_bpl_0",
136
- "cos_tilt_1_scale_g_1": "cos_tilt_1_scale_bpl_0",
137
- "cos_tilt_2_scale_(bpl|g)_[0-9]+": "cos_tilt_1_scale_bpl_0",
138
- "cos_tilt_[1-2]_minimum_(bpl|g)_[0-9]+": -1.0,
139
  "redshift_kappa_bpl_0": {
140
  "dist": "Uniform",
141
  "high": 10.0,
142
  "low": -10.0
143
  },
144
- "redshift_kappa_(bpl|g)_[0-9]+": "redshift_kappa_bpl_0",
145
- "redshift_z_max_(bpl|g)_[0-9]+": 2.3
 
 
 
 
 
 
 
 
146
  }
 
 
2
  "log_rate": {
3
  "dist": "Uniform",
4
  "high": 10.0,
5
+ "low": -4.0
6
  },
7
+ "m1_alpha[1-2]_bpl_[0-9]+": {
8
  "dist": "Uniform",
9
  "high": 12.0,
10
  "low": -4.0
11
  },
12
+ "beta_bpl_0": {
13
  "dist": "Uniform",
14
  "high": 7.0,
15
  "low": -2.0
16
  },
17
+ "beta_gpl_0": "beta_bpl_0",
18
+ "beta_gpl_1": "beta_bpl_0",
19
+ "m1_delta": {
20
  "dist": "Uniform",
21
  "high": 10.0,
22
  "low": 0.0
23
  },
24
+ "m2_delta_bpl_0": {
25
  "dist": "Uniform",
26
  "high": 10.0,
27
  "low": 0.0
28
  },
29
+ "m2_delta_gpl_0": "m2_delta_bpl_0",
30
+ "m2_delta_gpl_1": "m2_delta_bpl_0",
31
  "lambda_0": {
32
  "dist": "DirichletElement",
33
  "n_dimensions": 3,
 
39
  "order": 1,
40
  "concentration0": "lambda_0"
41
  },
42
+ "m1_loc_gpl_0": {
43
  "dist": "Uniform",
44
  "high": 20.0,
45
  "low": 5.0
46
  },
47
+ "m1_loc_gpl_1": {
48
  "dist": "Uniform",
49
  "high": 60.0,
50
  "low": 25.0
 
54
  "high": 10.0,
55
  "low": 3.0
56
  },
57
+ "m2_low_bpl_0": {
58
  "dist": "Uniform",
59
  "high": "m1min",
60
  "low": 3.0
61
  },
62
+ "m2_low_gpl_0": "m2_low_bpl_0",
63
+ "m2_low_gpl_1": "m2_low_bpl_0",
64
+ "m1_break_bpl_0": {
65
  "dist": "Uniform",
66
  "high": 50.0,
67
  "low": 20.0
68
  },
69
  "m1max": 300.0,
70
+ "m1_high_(bpl|g)_[0-9]+": "m1max",
71
+ "m1_low_(bpl|g)_[0-9]+": "m1min",
72
+ "m1_high_gpl_[0-9]+": "m1max",
73
+ "m1_low_gpl_[0-9]+": "m1min",
74
+ "m1_scale_gpl_0": {
75
  "dist": "Uniform",
76
  "high": 10.0,
77
  "low": 0.0
78
  },
79
+ "m1_scale_gpl_1": {
80
  "dist": "Uniform",
81
  "high": 10.0,
82
  "low": 0.0
83
  },
84
+
85
+ "chi_eff_loc_bpl_0": {
 
86
  "dist": "Uniform",
87
  "high": 1.0,
88
  "low": -1.0
89
  },
90
+ "chi_eff_loc_gpl_[0-9]+": "chi_eff_loc_bpl_0",
91
+ "chi_eff_scale_bpl_0": {
92
+ "dist": "LogUniform",
93
+ "high": 4.0,
94
+ "low": 0.01
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
95
  },
96
+ "chi_eff_scale_gpl_[0-9]+": "chi_eff_scale_bpl_0",
97
+ "chi_eff_low_(bpl|gpl)_[0-9]+": -1.0,
98
+ "chi_eff_high_(bpl|gpl)_[0-9]+": 1.0,
99
+ "chi_eff_epsilon_bpl_0": {
100
  "dist": "Uniform",
101
  "high": 1.0,
102
  "low": -1.0
103
  },
104
+ "chi_eff_epsilon_gpl_[0-9]": "chi_eff_epsilon_bpl_0",
105
+
 
 
 
 
 
 
 
 
 
 
 
 
106
  "redshift_kappa_bpl_0": {
107
  "dist": "Uniform",
108
  "high": 10.0,
109
  "low": -10.0
110
  },
111
+ "redshift_kappa_(bpl|gpl)_[0-9]+": "redshift_kappa_bpl_0",
112
+ "redshift_z_max_(bpl|gpl)_[0-9]+": 2.3,
113
+ "eccentricity_low_(bpl|gpl)_[0-9]+": 1e-6,
114
+ "eccentricity_high_(bpl|gpl)_[0-9]+": 0.5,
115
+ "eccentricity_alpha_bpl_0": {
116
+ "dist": "Uniform",
117
+ "high": 5.0,
118
+ "low": -5.0
119
+ },
120
+ "eccentricity_alpha_gpl_[0-9]+": "eccentricity_alpha_bpl_0"
121
  }
122
+
run.sh CHANGED
@@ -1,17 +1,16 @@
1
  #!/bin/bash
2
 
3
- GPU=1
4
- CPU_MASK="16-23,144-151"
5
- GWKOKAB_LOG_FILE="o4a_reproduce_spin_mag_tilt.log" CUDA_VISIBLE_DEVICES=$GPU taskset -c "${CPU_MASK}" n_sage_o4_n_bpls_m_gs \
6
  --n-bpl 1 \
7
- --n-g 2 \
8
  --seed $RANDOM \
9
  --n-buckets 1 \
10
  --data-loader-cfg "./data_cfg.json" \
11
  --prior-cfg "./prior.json" \
12
  --pmean-cfg "./pmean.json" \
13
- --sampler-cfg "./sampler_cfg.json" \
14
  --variance-cut-threshold 1.0 \
15
- --add-redshift \
16
- --add-spin-magnitude-mixture \
17
- --add-tilt
 
1
  #!/bin/bash
2
 
3
+ GPU=0
4
+ CPU_MASK="1-20"
5
+ GWKOKAB_LOG_FILE="o4a.log" CUDA_VISIBLE_DEVICES=$GPU taskset -c "${CPU_MASK}" discrete_subpopulation \
6
  --n-bpl 1 \
7
+ --n-gpl 2 \
8
  --seed $RANDOM \
9
  --n-buckets 1 \
10
  --data-loader-cfg "./data_cfg.json" \
11
  --prior-cfg "./prior.json" \
12
  --pmean-cfg "./pmean.json" \
13
+ --sampler-cfg "./numpyro_cfg.json" \
14
  --variance-cut-threshold 1.0 \
15
+ --add-skew-normal-chi-eff \
16
+ --add-powerlaw-redshift