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

Export lightweight GP model #108

Open
christopherlovell opened this issue Dec 20, 2018 · 0 comments
Open

Export lightweight GP model #108

christopherlovell opened this issue Dec 20, 2018 · 0 comments

Comments

@christopherlovell
Copy link

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:

  • the conditioning data (values and coordinates)
  • the solver
  • the kernel
  • some other lightweight methods in the GP class (e.g. _call_mean)

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

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

1 participant