Builds a neural spline flow with an embedding network that consists of a reduced basis projection followed by a residual network. Optionally initializes the embedding network weights.
Parameters
Name
Type
Description
Default
posterior_kwargs
dict
kwargs for neural spline flow
required
embedding_kwargs
dict
kwargs for emebedding network
required
initial_weights
dict
Dictionary containing the initial weights for the SVD projection. This should have one key ‘V_rb_list’, with value a list of SVD V matrices (one for each detector).