File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -266,9 +266,8 @@ def fit(
266
266
)
267
267
self .build_model (self .model_data , self .model_config )
268
268
self ._data_setter (self .model_data )
269
-
270
269
with self .model :
271
- self .idata = pm .sample (** self .sampler_config )
270
+ self .idata = pm .sample (** self .sampler_config , ** kwargs )
272
271
self .idata .extend (pm .sample_prior_predictive ())
273
272
self .idata .extend (pm .sample_posterior_predictive (self .idata ))
274
273
@@ -277,7 +276,7 @@ def fit(
277
276
self .idata .attrs ["version" ] = self .version
278
277
self .idata .attrs ["sampler_config" ] = json .dumps (self .sampler_config )
279
278
self .idata .attrs ["model_config" ] = json .dumps (self .serializable_model_config )
280
- self .idata .add_groups (fit_data = self .model_data .to_xarray ())
279
+ self .idata .add_groups (fit_data = self .data .to_xarray ())
281
280
return self .idata
282
281
283
282
def predict (
You can’t perform that action at this time.
0 commit comments