Coder Social home page Coder Social logo

gianlucadetommaso / stein-variational-samplers Goto Github PK

View Code? Open in Web Editor NEW
21.0 4.0 3.0 5.88 MB

Python and MATLAB code for Stein Variational sampling methods

MATLAB 18.88% HTML 0.48% M 0.03% Jupyter Notebook 75.40% Python 5.20%
stein-variational-gradient-decent variational-inference newton-method bayesian-inference sampling optimisation changepoint hawkes-process lstm-neural-networks stein-variational-newton

stein-variational-samplers's People

Contributors

gianlucadetommaso avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

stein-variational-samplers's Issues

What is the observation y you take to get a double banana?

Never mind! The shape does not so depend on the observation, and both a=0.0 and 1.0 works similarly.
----EDIT-----
I want to reproduce your toy experiment for double banana in the paper in python. It seems like the shape of the posterior would heavily depend on your observation y. Could you share which value you take to get those figure? (In code it is just a random variable)

By the way, how is it possible to get a symmetric shape with $x_1 = 0$ in that example, if you take a = 1.0? Is it a typo that we instead should take a = 0.0?

BOCPDviaSMC_Hawkes_WannaCry

I'm trying out the code in BOCPDviaSMC_Hawkes on a sensor dataset and am getting an error at this line rld = stats.rv_discrete( values = ( np.arange( min(t_+1, self.rmax) ), self.rlp ) ) in the class BOCPD. I printed out self.rlp :

Time: 6
[1.00000000e-02 1.81195171e-04 1.12306196e-02 1.08983524e-02
 1.72809904e-04 9.67517023e-01 0.00000000e+00]
Changepoint at time 6 for drastic decrease
Time: 7
[nan  0.  0.  0.  0.  0. nan  0.]

Any possible reason why I'd be getting nans (or any way to solve this issue)?

Thanks!

Missing files

I believe that there are some files missing to run this. Specifically, I tried to run the double banana file (by first executing load_dir_double_banana.m and then running script_double_banana.m . It couldn't find the function SVN_H. I'm guessing that those files are in the folder "../samplers/stein", which isn't posted on the repository?

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.