Giter VIP home page Giter VIP logo

Comments (3)

lileicc avatar lileicc commented on September 17, 2024

Why this is an issue?
Vstack is nonrandom.
Should use =

On Mar 20, 2014, at 4:54 PM, yberol [email protected] wrote:

@lileicc @cberzan @WilliamCushing

this one with = works

random RealMatrix b1_old ~ Multinomial(100.0, probs);
random RealMatrix b2_old ~ Multinomial(200, probs);
random RealMatrix b3_old ~ Multinomial(400, probs);
random RealMatrix b4_old ~ Multinomial(300, probs);

random RealMatrix TransferMat = vstack(vstack(vstack(transpose(b1_old),transpose(b2_old) ),transpose(b3_old) ),transpose(b4_old) );

this one with ~ does not

random RealMatrix b1_old ~ Multinomial(100.0, probs);
random RealMatrix b2_old ~ Multinomial(200, probs);
random RealMatrix b3_old ~ Multinomial(400, probs);
random RealMatrix b4_old ~ Multinomial(300, probs);

random RealMatrix TransferMat ~ vstack(vstack(vstack(transpose(b1_old),transpose(b2_old) ),transpose(b3_old) ),transpose(b4_old) );


Reply to this email directly or view it on GitHub.

from blog.

yberol avatar yberol commented on September 17, 2024

Well this is a pedantic issue. vstack is deterministic but its arguments are random so practically it
defines a random distribution.

Yusuf

On Mar 20, 2014, at 6:42 PM, lileicc [email protected] wrote:

Why this is an issue?
Vstack is nonrandom.
Should use =

On Mar 20, 2014, at 4:54 PM, yberol [email protected] wrote:

@lileicc @cberzan @WilliamCushing

this one with = works

random RealMatrix b1_old ~ Multinomial(100.0, probs);
random RealMatrix b2_old ~ Multinomial(200, probs);
random RealMatrix b3_old ~ Multinomial(400, probs);
random RealMatrix b4_old ~ Multinomial(300, probs);

random RealMatrix TransferMat = vstack(vstack(vstack(transpose(b1_old),transpose(b2_old) ),transpose(b3_old) ),transpose(b4_old) );

this one with ~ does not

random RealMatrix b1_old ~ Multinomial(100.0, probs);
random RealMatrix b2_old ~ Multinomial(200, probs);
random RealMatrix b3_old ~ Multinomial(400, probs);
random RealMatrix b4_old ~ Multinomial(300, probs);

random RealMatrix TransferMat ~ vstack(vstack(vstack(transpose(b1_old),transpose(b2_old) ),transpose(b3_old) ),transpose(b4_old) );


Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHub.

from blog.

lileicc avatar lileicc commented on September 17, 2024

this might be relevant to users of blog, so I cc'ed Rugs. (we need to have
a seperate mailinglist for dblog)

No.

  1. Only use ~ for Distribution. Always use = for fixed
  2. Vstack is a fixed function.
    We used to call it nonrandom function (internally it is), but it confusing
    therefore it was renamed.
    Fixed function means it has the same interpretation, i.e. given a same
    argument value, its value is always the same in any possible world.

Lei

On Thu, Mar 20, 2014 at 6:57 PM, yberol [email protected] wrote:

Well this is a pedantic issue. vstack is deterministic but its arguments
are random so practically it
defines a random distribution.

Yusuf

On Mar 20, 2014, at 6:42 PM, lileicc [email protected] wrote:

Why this is an issue?
Vstack is nonrandom.
Should use =

On Mar 20, 2014, at 4:54 PM, yberol [email protected] wrote:

@lileicc @cberzan @WilliamCushing

this one with = works

random RealMatrix b1_old ~ Multinomial(100.0, probs);
random RealMatrix b2_old ~ Multinomial(200, probs);
random RealMatrix b3_old ~ Multinomial(400, probs);
random RealMatrix b4_old ~ Multinomial(300, probs);

random RealMatrix TransferMat =
vstack(vstack(vstack(transpose(b1_old),transpose(b2_old)
),transpose(b3_old) ),transpose(b4_old) );

this one with ~ does not

random RealMatrix b1_old ~ Multinomial(100.0, probs);
random RealMatrix b2_old ~ Multinomial(200, probs);
random RealMatrix b3_old ~ Multinomial(400, probs);
random RealMatrix b4_old ~ Multinomial(300, probs);

random RealMatrix TransferMat ~
vstack(vstack(vstack(transpose(b1_old),transpose(b2_old)
),transpose(b3_old) ),transpose(b4_old) );

Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHub.

Reply to this email directly or view it on GitHubhttps://github.com//issues/63#issuecomment-38241811
.

from blog.

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.