Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adaptive estimator for online data #8

Open
Piyushbalwani opened this issue Jul 20, 2021 · 2 comments
Open

adaptive estimator for online data #8

Piyushbalwani opened this issue Jul 20, 2021 · 2 comments

Comments

@Piyushbalwani
Copy link

Hi, how to load and save estimator, and run estimator for adaptive online stream of batch data after loading? Thanks!!

@iancovert
Copy link
Owner

Hi there, sorry for the slow reply! The easiest way right now would be to save the objects that are necessary to construct the estimator (in many cases, just by pickling the underlying model) and re-create it after loading the necessary objects.

For example, in the bike notebook, you would save the model and the test samples that are used for the imputer. Then to load the estimator, just load the model and data, then create the imputer and then create the estimator.

Let me know if that sounds reasonable. I tried directly pickling the estimator and the only reason that doesn't work is that there's a lambda function in there (due to how we do model conversion) and those can't be saved. But if it would be useful to pickle/unpickle the estimator directly, let me know and I can try to implement that.

@Piyushbalwani
Copy link
Author

Thanks @iancovert for the reply. I think this will not serve the purpose.

My goal is to calculate feature importance for the classifier trained on large training data. As data is large, so I am doing batch learning. I am calculating feature importance with help of estimator for only one batch. For next batch, I need to load imputator or estimator, which is learnt from the last batch and incrementally update imputator for this batch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants