smartcore icon indicating copy to clipboard operation
smartcore copied to clipboard

incremental learning

Open julama opened this issue 4 years ago • 5 comments

Hey, thanks for sharing this project! Is incremental learning supported by smartcore; something like partial_fit from sk-learn?

julama avatar Dec 31 '20 09:12 julama

Hi Julian, this is a great direction to explore. I personally do not use partial_fit to train my models, but I can see where incremental learning might be useful. I know Scikit-learn provides only a handful of incremental estimators, which one are you interested in?

VolodymyrOrlov avatar Dec 31 '20 19:12 VolodymyrOrlov

The reason why I'm interested in partial_fit or mini-batches is that I want to train the model on devices with very restricted memory. At the moment I'm mostly interested in naive bayes and SVM.

Another restriction I have is that I can't use floating-point numbers. I'll try to change the crate math::num::RealNumber to support rust_decimal.

julama avatar Jan 03 '21 21:01 julama

We definitely can add partial_fit to the Support Vector Classifier, since the implementation we use is designed for incremental learning. Naive Bayes was implemented by Luis Moreno but it seems to me that we can add partial_fit to all NB variants we support, do you agree, @morenol?

@julama let me know if you want to work on this issue. In any case we can plan this story for next release (v0.3.0). Also, can I ask you to create a separate issue for rust_decimal (I want to keep these two stories separately)?

VolodymyrOrlov avatar Jan 04 '21 00:01 VolodymyrOrlov

Yes, I think that we can add that support for the NB variants that we have implemented. I can help with that.

morenol avatar Jan 04 '21 00:01 morenol

let me know if you want to work on this issue. In any case we can plan this story for next release (v0.3.0). Also, can I ask you to create a separate issue for rust_decimal (I want to keep these two stories separately)?

Yes, I'm interested to work on it. I just started learning rust but I will give it a try.

julama avatar Jan 04 '21 08:01 julama