dfm / george

Fast and flexible Gaussian Process regression in Python
http://george.readthedocs.io
MIT License
450 stars 128 forks source link

Export lightweight GP model #108

Open christopherlovell opened 5 years ago

christopherlovell commented 5 years ago

I'd like to export a 'lightweight' version of my GP model. The use case would be to make an interactive online version. Right now if I pickle my GP instance it's around 8mb, which is a little too large.

My first thought is to create a new lightweight predict method that just accepts the conditioning data and the new points and returns the predicted mean (ignoring the covariance matrix). As far as I can tell from the existing predict method, the main components required to produce a new arbitrary prediction are:

Anything else I'm missing? Or would you recommend another approach?