Code Monkey home page Code Monkey logo

Comments (4)

mpilosov avatar mpilosov commented on July 16, 2024

Just to clarify, is this still true or does the sample object's probabilities attribute take care of this?
From my glance at calculateP (very early stages of learning to read code written in parallel), it seems like this is no longer an issue.

from bet.

lcgraham avatar lcgraham commented on July 16, 2024

This is still true. The standard ansatz is used in all of the prob methods in bet.calculateP.calculateP as the line:

P[Itemp] = discretization._output_probability_set._probabilities[i]/Itemp_sum

and :

P_local[Itemp] = discretization._output_probability_set._probabilities[i]*discretization._input_sample_set._volumes_local[Itemp]/Itemp_sum``

from bet.

lcgraham avatar lcgraham commented on July 16, 2024

I think this could be done by using the emulated input sample set appropriately.

from bet.

mathematicalmichael avatar mathematicalmichael commented on July 16, 2024

I actually accomplished this by setting probabilities to 1/num_samples if empty, and then using that vector in place of volumes in the main loop of calcP.prob.

@lcgraham This feature is coming down the line very soon, I think I can make it it's own PR. It will be aligned with setting an "initial" distribution which we "update". If unspecified, uniform is assumed.

Check out the animation in #161 to see it in action.

from bet.

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.