pgmpy/pgmpy_tutorials

Updating fitted model based on new upcoming data

Opened this issue · 2 comments

This is not related to a bug in the code, but instead to an idea of a functionality of models. Say we have a model that was already created from a dataset with an estimator, is there an automatic way to update this model based on new data samples instead of appending the new samples to the old dataset and having to run the fitting again with the full dataset from the beginning?

@LorenzoMonni There is no direct way to update the model parameters with new data yet. I will try to have this feature in next to next release. But in the meanwhile, you can simulate the updating behavior using BayesianEstimators and Dirichlet prior. I have shown an example here: pgmpy/pgmpy#1350 (comment)

Ok, thank you so much!