ml4gw.waveforms package

Submodules

ml4gw.waveforms.generator module

class ml4gw.waveforms.generator.ParameterSampler(**parameters)

Bases: Module

forward(N)

Define the computation performed at every call.

Should be overridden by all subclasses. :rtype: Dict[str, Float[Tensor, ' {N}']]

Note

Although the recipe for forward pass needs to be defined within this function, one should call the Module instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.

class ml4gw.waveforms.generator.WaveformGenerator(waveform, parameter_sampler)

Bases: Module

forward(N)

Define the computation performed at every call.

Should be overridden by all subclasses. :rtype: Tuple[Float[Tensor, '{N} samples'], Dict[str, Float[Tensor, ' {N}']]]

Note

Although the recipe for forward pass needs to be defined within this function, one should call the Module instance afterwards instead of this since the former takes care of running the registered hooks while the latter silently ignores them.

ml4gw.waveforms.phenom_d module

ml4gw.waveforms.phenom_d_data module

ml4gw.waveforms.sine_gaussian module

ml4gw.waveforms.taylorf2 module

Module contents