Writing a Custom Prior#
Impulso uses typing.Protocol for extensibility. You can write your own prior by implementing the Prior protocol.
The Prior protocol#
Your build_priors method must return a dictionary with keys "B_mu" and "B_sigma", both NumPy arrays of shape (n_vars, n_vars * n_lags).
B_mu: Prior mean for VAR coefficient matrixB_sigma: Prior standard deviation for VAR coefficient matrix