GithubHelp home page GithubHelp logo

Comments (5)

mdbenito avatar mdbenito commented on May 28, 2024 2

Consider two gaussians X_i and X_j and their sines Y_i = sin X_i and Y_j = sin X_j. You want to compute the covariance E[(Y_i - EY_i) (Y_j - EY_j]. After expanding the product and simplifying a bit, one of the terms is E[Y_i Y_j]. This is the product of two sines so you can use the formula expressing it as a a difference of cosines. Use linearity and after some arithmetic you have entry ij in the covariance matrix, already looking similar to the code. The final part is to vectorise that. For this note what the convention in Tensorflow or numpy is when a column vector is added to a row vector and you are almost done.

Hope that helps!

from pilco.

thaipduong avatar thaipduong commented on May 28, 2024

Never mind. I figured it out. Thanks.

from pilco.

hejia-zhang avatar hejia-zhang commented on May 28, 2024

Hi @thaipduong, could you give me some hints on it? I am also trying to figure this out while have no clues yet.

from pilco.

thaipduong avatar thaipduong commented on May 28, 2024

@hjzh4 , I found my notes on this here: https://drive.google.com/file/d/1MqZMkRM6vkLJIOOhe8gXFddpMflLJvB2/view?usp=sharing
It's the same as what @mdbenito mentioned above. Hope it helps.

from pilco.

hejia-zhang avatar hejia-zhang commented on May 28, 2024

@thaipduong @mdbenito , thanks a lot guys! I just figured it out!
could you also take a look at issue #15 I think there is something missed in the formula for computing C

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.