Giter VIP home page Giter VIP logo

diffabledistributions.jl's Introduction

DiffableDistributions.jl

Render the distributions in Distributions.jl compatible with automatic differentiation in ForwardDiff.jl

The strategy:

  • This requires that each distribution d derives from Abstract<d>.
  • We create a parameterized, differentiable distribution corresponding to each d. Thus, for the case of Normal <: AbstractNormal, we have:
immutable DNormal{T <: Real} <: AbstractNormal
    μ::T
    σ::T
end
  • We then extend Normal with an outer constructor that, when any argument x::ForwardDiff.ForwardDiffNumber, delegates to a constructor for DNormal.
  • This allows Normal to continue as a leaf type while allowing differentiability to be facilitated transparently through parameterized distributions.

diffabledistributions.jl's People

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.