========== Quickstart ========== This section will detail how you can produce samples from a gravitational wave (GW) postrior within minutes of downloading VItamin given your own GW time series binary black hole data. You may also optionally use the pregenerated sets of waveforms provided here Some things to note about the provided black box: * We currently set all priors to be uniformly distributed and produce posteriors on 7 parameters (m1,m2,luminosity distance,time of coalescence,inclination angle, right ascension and declination). Both phase and psi are internally marginalized out. * Sampling rate is locked at 256 Hz and duration is locked at 1s (more boxes with other values will become available in future). * Only works on binary black hole signals (more boxes trained on other signals to be released in the future). * Does not require a GPU to generate samples, but will be ~1s slower to generate all samples per time series. * Start an ipython notebook (or Google Colab Notebook) .. code-block:: console $ ipython3 * import vitamin_b and run_vitamin module .. code-block:: console $ import vitamin_b $ from vitamin_b import run_vitamin .. note:: Test samples should be of the format 'data_.h5py'. Where the h5py file should have a directory containing the noisy time series labeled 'y_data_noisy'. 'y_data' should be a numpy array of shape (,) * To produce test sample posteriors using VItamin, simply point vitamin to the directory containing your test waveforms (examples provided `here `_), the pre-trained model (`model download `_) and specify the number of samples per posterior requested. .. code-block:: console $ samples = run_vitamin.gen_samples(model_loc='public_model/inverse_model.ckpt', test_set='test_sets/all_4_samplers/test_waveforms/',num_samples=10000, plot_corner=True) * The function will now return a set of samples from the posterior per timeseries(default is 10000). * Since we set the option plot_corner=True, you will also find a corner plot in the same directory as we ran the code under the title 'vitamin_example_corner.png'.