ankane / eps

Machine learning for Ruby
MIT License
652 stars 15 forks source link

How to retrain / continue training a model #17

Closed phuibonhoa closed 4 years ago

phuibonhoa commented 4 years ago

It seems like you can create a new model with a data set and save it and load it up, but how do I keep retraining the model?

I'm expecting the flow to be: 1) Model.new(starter_data) 2) model.save (to the database or file)

.... later

3) Model.load(from db or file) 4) model.train(new_data)

I'm not sure how to do that though.  Train seems to be a private method on model, so I'm not sure how to get more data to an existing model without needing to just load it all up from the new method all over again, but with a large dataset that's difficult.

ankane commented 4 years ago

Hey @phuibonhoa, check out https://github.com/ankane/eps/issues/10.

phuibonhoa commented 4 years ago

Ahh @ankane that's exactly what I was looking for. Thank you!