Closed drbenvincent closed 4 months ago
The InstrumentalVariableRegression.fit
method overrides ModelBuilder.fit
to accommodate the Z
dataframe, which is also necessary for the build_model
method. Perhaps it would be simpler to just include the random_seed
.
Ah I checked to quickly and missed that. Yes, in that case we just need the random seed in there.
The
InstrumentalVariableRegression.fit
method overrides theModelBuilder.fit
method, but from what I can see this is unnecessary. And it actually is behind the curve because it doesn't grab therandom_seed
and provide it topm.sample_prior_predictive
orpm.sample_posterior_predictive
.Obviously check that local tests pass.
As of right now we have some issues with doctests, see #323, and I'm actively working on that.cc @NathanielF