pgmpy_notebook icon indicating copy to clipboard operation
pgmpy_notebook copied to clipboard

Updating fitted model based on new upcoming data

Open LorenzoMonni opened this issue 4 years ago • 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 avatar Dec 10 '20 08:12 LorenzoMonni

@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: https://github.com/pgmpy/pgmpy/issues/1350#issuecomment-726724566%EF%BC%8Cmy

ankurankan avatar Dec 10 '20 09:12 ankurankan

Ok, thank you so much!

LorenzoMonni avatar Dec 15 '20 10:12 LorenzoMonni