Git Product home page Git Product logo

Comments (4)

adamian avatar adamian commented on July 29, 2024

Hi,

When I run the latest code I get this result:

# RMSE DGP               : 2.5763593393648176
# RMSE DGP (with samples): 2.577221154102472
# RMSE GP                : 3.033963097677277

From my training log, it is only the 2nd optimization that differs, getting a better objective f after optimization. The rest of the objectives after optimization are similar to the ones of your log.

The performance gets almost identical to the regular GP when I set back_constraint=True (it's False by default), since it's an overkill of a model for this particular data.

In any case, this example is meant to show how one can use deepgp for regression, as opposed to demonstrate that it beats GP. For the kinds of data that a GP can already model well (smooth, stationary etc) one should expect it to have similar performance with deepgp.

from pydeepgp.

dyershov avatar dyershov commented on July 29, 2024

What I meant is that RBF kernel dimension number for the "hidden" layer (i.e. kern2 variable), which is currently equals to Q, actually should be X_tr.shape[1]. It seems like a bug in the example code, or I may completely misunderstand how DGPs work.

In any case, it makes sense for GP-LVM and DGP to yield similar results on the example data. Thanks!

from pydeepgp.

adamian avatar adamian commented on July 29, 2024

Oh I see, you're right, thanks for catching this.

When setting the dimensionality in kern2 as Q, being incompatible with input dimensionality, GPy automatically sets the active_dims for this kernel to be the first Q (you can see that by typing m.layers[1].kern.rbf.active_dims) meaning that this kernel is forced to only look at a small subset of dimensions and the rest are handled by the Bias kernel. While this is a valid model, it is certainly not what this code was intended to do :) Although it seemed that this simpler mode did give better results in this particular case!

from pydeepgp.

dyershov avatar dyershov commented on July 29, 2024

Thank you for clarification!

from pydeepgp.

Related Issues (20)

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.