Giter Club home page Giter Club logo

torch-distributions's Introduction

Probability distributions, wrapped for Torch

Please check-out its website for documentation, or the offline copy.

torch-distributions's People

Contributors

jucor avatar d11 avatar dpfau avatar fbesse avatar georgostrovski avatar lukemarris avatar alschua avatar akfidjeland avatar davidsaxton avatar ioannisantonoglou avatar mevgdm avatar sergomezcol avatar tkoeppe avatar koraykv avatar

Stargazers

 avatar  avatar Haozhe Ji avatar Varmkorv Två avatar LolloDev avatar Wisam Reid avatar  avatar Patrick Bourke avatar STYLIANOS IORDANIS avatar Sid Mani avatar Ankit Shah avatar  avatar Shijie Ren avatar  avatar Mayank Mishra avatar António P. P. Almeida avatar Devrim Gunyel avatar  avatar Egil Martinsson avatar John avatar Atılım Güneş Baydin avatar Kamyar Ghasemipour avatar Xiaodong Cun avatar Jorn Peters avatar Yinhao Zhu avatar  avatar Keishin N avatar Jollen avatar xuwang avatar AliceS avatar eulerwang avatar Vikas Raunak avatar Yun Chen avatar Rollyn Labuguen avatar Mark Peng avatar Pieter Jongsma avatar Furiously Curious avatar TENSORTALK avatar Li Dong avatar Drew Jaegle avatar Nicholas Andrews avatar Simone Cirillo avatar Xinchi Chen avatar Philipp Pelz avatar Corey Lynch avatar Emanuele Carbone avatar John Pearson avatar Rémi Francis avatar  avatar Mikael Rousson avatar Eyad Sibai avatar Emre Şafak avatar Misha Denil avatar Abhinav Tushar avatar Zygmunt Zając avatar Jake Zhao (Junbo) avatar Danilo J. Rezende avatar Brendan Shillingford avatar ziyuw avatar Stephen McGill avatar

Watchers

Malcolm Reynolds avatar  avatar Heiner avatar Nicholas Andrews avatar  avatar Elmar Langholz avatar  avatar ziyuw avatar  avatar James Cloos avatar  avatar Tiago Ramalho avatar AliceS avatar  avatar  avatar Wisam Reid avatar  avatar  avatar Yun Chen avatar John Q avatar michaelchiucw avatar Xinchi Chen avatar Arun Sathiya avatar  avatar

torch-distributions's Issues

Support 1xD diagonal covariance matrices in mvn.logpdf

That would avoid the caller having to systematically resize. The rewrite of the parsing of mvn.rnd for 3 arguments in pull-request #16 supports it. I realize that mvn.rnd itself might not support it if only given 2 arguments, hence the issue #18.

Discuss cloning policy

Issue by jucor from Thursday Nov 14, 2013 at 09:26 GMT
Originally opened as google-deepmind/torch-randomkit#29


Hi @d11, @akfidjeland

I was wondering: which policy do we want to follow:

  1. either avoid cloning at all cost, or
  2. we are allowed to use the input arguments as temporary workspace and that it is up to the caller to clone before calling if he wants to be safe?

While I've always used 1. in const-less other languages, 2. seems more in line with Torch's philosophy for speed and the typical use of NN. What do you think ? We might guarantee that we do not resize, by using a new Tensor pointing to the same storage when we need to resize, i.e. we would never do

function f(x)
x:resize(1,x:numel())
end

but instead

function f(x)
x = torch.Tensor(x):resize(1,x:numel())
end

so that the caller is guaranteed that his views of the storage are never changed -- though the content of the storage might change.

What's your opinion?

Julien

Interface distributions' RNG with randomkit

So that people don't have to wonder whether they should use torch-randomkit or torch-distributions, take all the distributions from randomkit and create their RNG. That can probably be done automagically.

GPU Support

Hi,it's a wonderful module, but it seems doesn't support GPU. Do you plan to add GPU support ?
I come from scipy.stats, and looking for GPU accelerate on certain math function.

Require disambiguation for Gaussian(DxD, DxD)

Issue by jucor from Tuesday Nov 12, 2013 at 14:00 GMT
Originally opened as google-deepmind/torch-randomkit#26


Pointed by @schaul: if calling with DxD mean and DxD covariance, do we want the D samples to be from one single full covariance matrix, or from D different diagonal covariance matrices ? This is ambiguous, so we should require the user to clarify her intent by passing a table with the flag {diagonal = true} or {diagonal = false}, in line with the options dicussed in #5 .

Wishart KL is not zero when distributions are identical

Found a bug in the KL divergence for Wishart and Normal-Wishart distributions where it is not identically zero when p and q are identical. Will fix this and add tests for all KL divergences that they return zero when both distributions are the same.

wishart.rnd bug

The sampler in distributions.wishart.rnd (as described in section 3: http://www.math.wustl.edu/~sawyer/hmhandouts/Wishart.pdf) is incorrectly implemented.

If Wishart samples are generated by taking the sample covariance from Gaussian-distributed data and the degrees of freedom parameter is estimated by maximum likelihood, the maximum likelihood estimate is within the range expected. For instance, if p=10, N=1e5 and nu=15, then the ML estimate of nu is within 0.01 of 15.

By contrast, when using distributions.wishart.rnd to generate samples, the ML estimate of nu is ~17.

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.