Git Product home page Git Product logo

Comments (2)

baggepinnen avatar baggepinnen commented on September 27, 2024 1

I'm not using ArviZ either so I think it's fine to remove the support.

The

Julia needs to know whether particles should be treated as a scalar (and so broadcasting over its elements) or as an array

problem has been "solved" by no longer trying to be "smart" and do what the user might want, and instead adopt the filosophy that Particles are always scalars, and any function that operates on the individual samples have been given a new name. Having said that, I understand why Particles are a suboptimal fit for Soss, but it was fun exploring the limits of the approach :)

from arviz.jl.

cscherrer avatar cscherrer commented on September 27, 2024

Thanks @sethaxen . I really like the ideas introduced in MCM, and they've had a big influence on how I think about manipulating samples. One issue is that for any operation on Particles, Julia needs to know whether particles should be treated as a scalar (and so broadcasting over its elements) or as an array. Also, it's very easy for particles to get "out of sync", since each is passed around individually. It's of course possible to put them in a container, but there's no container I know of that makes this very natural.

Recently I've moved toward instead representing samples in terms of a TupleVector. Each row is a named tuple, but it's also easy to access these column-wise. For particle-like manipulations, I have a @with macro that lets you treat a TupleVector as a kind of namespace to map over.

This is all a long-winded way (sorry) to say I really appreciate @baggepinnen's contributions in MCM, but I'm not currently using it.

from arviz.jl.

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.