You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Good afternoon, very interesting paper.
I'm trying to reproduce the results for the GW experiment, and it seems that the .pt files for the dataset are missing in the figures/fig_appendix/gravitational_waves folder. Could you please upload the dataset to github aswell, in order to be able to reproduce the figures?
Thank you very much for your help!
The text was updated successfully, but these errors were encountered:
Thanks for your interest, and sorry for the late reply. Unfortunately, the dataset files for this experiment are too large to upload on GitHub. You can reproduce it using the following code.
You could generate the dataset using the following code (for idx 0-9):
importhypothesisfromhypothesis.benchmark.gravitational_wavesimportSimulator, PriorimportmultiprocessingimportsysimporttorchNUM_SIMS=10_000prior=Prior()
simulator=Simulator()
defrun_sim(i):
torch.manual_seed(i)
thetas=prior.sample((1,))
xs=simulator(thetas.to("cpu"))
returnthetas, xs# Run the simulator on multiple coresif__name__=="__main__":
idx=int(sys.argv[1]) # Read in the first argumentprint(idx)
withmultiprocessing.Pool(multiprocessing.cpu_count()) asp:
results=p.map(run_sim, range(idx*NUM_SIMS, (idx+1)*NUM_SIMS))
thetas, xs=zip(*results)
thetas=torch.concat(thetas)
xs=torch.concat(xs)
torch.save(thetas, f"thetas_{idx}.pt")
torch.save(xs, f"xs_{idx}.pt")
print(thetas)
print(xs)
Good afternoon, very interesting paper.
I'm trying to reproduce the results for the GW experiment, and it seems that the .pt files for the dataset are missing in the figures/fig_appendix/gravitational_waves folder. Could you please upload the dataset to github aswell, in order to be able to reproduce the figures?
Thank you very much for your help!
The text was updated successfully, but these errors were encountered: