Skip to content

Uncertainty improvements #132

Description

@dimalvovs

The calculation of chi^2 which gets minimized during the mcmc sampling uses an estimate of uncertainty in the denominator. There is a problem with the current default estimation of uncertainty in dense matrix: the minimum value that the variance can take does not with data anyhow, being a constant 0.1. Let's imrove this!

  1. prototype takes just one argument (in addition to data matrix) - the constant. Thus, the constant used both to scale both the scale data, and as a threshold of minimum value of uncertainty. -> Change to two parameters, both in description and in function implementation. For back compatibility default the 3rd param with the value of the 2nd.
    Matrix gaps::pmax(Matrix mat, float p)
    Matrix pmax(Matrix mat, float p);
  2. use the new version of pmax in the uncertainty in the DenseNormalModel constructor. use the expectation of the atom size as the threshold (need to find and ensure it is calculated before uncertainty is initialized). optionally: atom size * threshold.
    mSMatrix(gaps::pmax(mDMatrix, 0.1f)),

questions

  • is it ok for atom indices to be int? e.g.
    void setLeftIndex(int index);
  • there are three types for the same index in mAtoms int (awful), see above;
  • unsigned from the map definition
    typedef MutableMap<uint64_t, unsigned> AtomMapType;
  • and probably size_t implied by the std::vector definition
    std::vector<Atom> mAtoms;
  • remove MutableMap everywhere
  • add test for domain.erase

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions