Coder Social home page Coder Social logo

Comments (2)

VincentStimper avatar VincentStimper commented on June 29, 2024

Hi @alexmiltenberger,

nice to hear that you enjoy the package.
Instead of modifying the method, you could also just compute log_q using this method and then applying the weights when computing your loss in an extra step. This might be more efficient since in an importance sampling context the weights might depend on log_q as well, so you can directly reuse the results and do not have to iterate through the flow twice by calling the forward_kld and the log_prob method.
What do you think?

Best regards,
Vincent

from normalizing-flows.

alexmiltenberger avatar alexmiltenberger commented on June 29, 2024

Ah, didn't realize the log_prob method was almost identical to forward_kld. This is a much better solution than modifying forward_kld. I just tried it and it works well. Thanks so much for getting back to me!

from normalizing-flows.

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.