Coder Social home page Coder Social logo

Comments (1)

qmarcou avatar qmarcou commented on August 26, 2024

Hi Will,
Indeed your three questions can be answered by a single answer:

  • The in g.marginals[0]["even_nickname"] is a vector or higher order array of probabilities. Additional dimensions will be present in case the realization of the considered event is conditionally dependent on other events. g.marginals[1]["even_nickname"] will give you the order of the dimensions.
  • As for realizations themselves there are three different properties you are referring to, it will be easier to understand for the case of gene choice as for the peculiar choice of insertions the 3 can be redundant:
    • R.name : the realization name, e.g for gene choices the name of the gene
    • R.value : the actual value associated with the realization name, e.g for gene choice the actual gene sequence
    • R.index: the realization index on the marginal array. So if you want the probability of the realization R just access ```g.marginals[0]["even_nickname"][R.index]` (note this only works with the 1 dimensional example, otherwise you will have to specify indices for the others dimensions too)

These properties are the same than the ones described for the C++ interface: https://github.com/qmarcou/IGoR#inference-and-evaluation-output

The fact that for insertions the 3 properties are equal is true only if the model has been constructed in a special way defining a range of authorized number of insertions. Bottom line: stick with using R.index even for insertions

Hope this helps

from igor.

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.