Code Monkey home page Code Monkey logo

docs's Issues

How to use a fitted model as a prior in a new context

I'm working in an instance where I want to fit a GPR to some training data and then use the posterior as a prior for some new data. I've fit the GPR to the data and things look good on that end, but I am stuck trying to feed the model in as a prior. The documentation does include this link on "Updating Model with New Data" that looks like it could be helpful, but the stub is empty.

I'm new to GPFlow and can't see in the documentation if such a thing is even possible. If you can provide me with any assistance, I would be most grateful!

gpflow.models.GPR documentation: "log marginal likelihood"

Hi all, thanks for your great work on GPflow!

The documentation for gpflow.models.GPR says:

"The log likelihood of this model is sometimes referred to as the ‘log marginal likelihood’, and is given by
$ \log p (y|f) =  \mathcal{N}(y|0,K + \sigma_n I)$.

I find this misleading. The function log_marginal_likelihood(self) computes the "actual" log marginal likelihood \log p(y| \theta) - I'd suggest removing "is sometimes referred to as the ‘log marginal likelihood’"?

Should plot "sigmoid of mu" instead of mu

After mu, var = m.predict_f(x_grid) in classification.ipynb, it should be
plt.fill_between(x_grid.flatten(), np.ravel(sigmoid(mu + 2 * np.sqrt(var))), np.ravel(sigmoid(mu - 2 * np.sqrt(var))), alpha=0.3, color="C0").
with def sigmoid(x): return 1/(1+np.exp(x))
instead of
plt.fill_between(x_grid.flatten(), np.ravel(mu + 2 * np.sqrt(var)), np.ravel(mu - 2 * np.sqrt(var)), alpha=0.3, color="C0").

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.