GithubHelp home page GithubHelp logo

Fix RBF controller about pilco HOT 9 CLOSED

nrontsis avatar nrontsis commented on June 7, 2024
Fix RBF controller

from pilco.

Comments (9)

kyr-pol avatar kyr-pol commented on June 7, 2024

Hi @voop, good catch, I'll get to it, thank you.

from pilco.

nrontsis avatar nrontsis commented on June 7, 2024

@kyr-pol I fixed the comment of @voop in branch rbf_controller.

However, it seems that the refactoring I made in the RBF controller (the one to avoid rewriting gp0) messed up with GPflow's optimization.

When trying to optimize the controller I get: No variables to optimize.

I think that whatever Param is inside a GPR model is not visible in the optimization of the policy. Maybe we could avoid having GPR models inside RBF but only use kernels?

from pilco.

kyr-pol avatar kyr-pol commented on June 7, 2024

Hm if that is the case with Params inside GPR objects, yes it makes sense to just use the kernels. It is a bit weird and it seems worth looking into, but if we can get a quick fix we can look into it further later.

from pilco.

petrikvladimir avatar petrikvladimir commented on June 7, 2024

I think if ParamList from GPFlow is used instead of simple 'list' for storing models, it will be visible to the optimization.
However, changing it will cause other issues which I was not able to resolve...

from pilco.

nrontsis avatar nrontsis commented on June 7, 2024

Thanks @voop. I believe that we want to use ParamList only for the RbfController. This can be done by overriding the create_models function of MGPR.

I'll try to see if that works.

from pilco.

nrontsis avatar nrontsis commented on June 7, 2024

Okay, ParamList made the parameters visible to the optimiser. I still had to create a fake GPR class, where X and Y are Param and not DataHolders, as I think that GPflow does not optimises over DataHolders.

However, I am now getting NaNs on the cost of the policy. @kyr-pol can you take a look?

from pilco.

kyr-pol avatar kyr-pol commented on June 7, 2024

Yes I will get to it later tonight and see what I can do.

from pilco.

kyr-pol avatar kyr-pol commented on June 7, 2024

It seems that the NaNs were a numerical issue. By reducing the number of basis functions significantly (from 100 to 10, but 20 work too) the optimisation progresses.

Still, there are frequent failures, either in the Cholesky decompositions or the controller optimisation, which appear sometimes when using the LinearController as well. We should investigate these further.

from pilco.

nrontsis avatar nrontsis commented on June 7, 2024

Okay, that's good news. Let's close this and open a separate issue on numerical stability.

from pilco.

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.