Skip to content

Commit edec539

Browse files
committed
is_fitted = True when trained model is loaded
1 parent db49aa7 commit edec539

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pymc_extras/model_builder.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,7 @@ def load(cls, fname: str):
444444
sampler_config=json.loads(idata.attrs["sampler_config"]),
445445
)
446446
model.idata = idata
447+
model.is_fitted_ = True
447448
dataset = idata.fit_data.to_dataframe()
448449
X = dataset.drop(columns=[model.output_var])
449450
y = dataset[model.output_var]

0 commit comments

Comments
 (0)