Giter Club home page Giter Club logo

Comments (6)

TTitscher avatar TTitscher commented on June 10, 2024 1

Good point. IMO the vector valued parameters are a very special case related to FEMU. Maybe we continue the discussion on that in #41

from bayem.

joergfunger avatar joergfunger commented on June 10, 2024

That is a good idea. Maybe we could directly connect this prior definitions to our latent variables definition, such that we define a latent variable with an optional prior (in case someone wants to do deterministic optimization), and then link it to local variables in the model error/forward model class(es).

from bayem.

TTitscher avatar TTitscher commented on June 10, 2024

Especially regarding my second point with the example implementations, I'd say that the definition on what is latent is problem specific and the (somehow crafted) question how it is latent (initial deterministic value, logpdf, custom MVN) is then solver specific.

from bayem.

joergfunger avatar joergfunger commented on June 10, 2024

Alright, that is a true. So we'll try to separate the inference problem into on the one hand the handling of latent variables (with all the global/local variable distinction) and model error, and on the other hand specific interfaces for solvers that use that.

from bayem.

TTitscher avatar TTitscher commented on June 10, 2024

I think I had a conceptual mistake in my last comment. My plan would be that our inference problem does include prior information, say mathematically with the information N(42, ...) or Gamma(21, 42) or Crystalball(...). The individual solvers then transform this information into tool-specific implementations of these distributions.

And just to not redefine every (common) distribution out there, I suggest to store the information via scipy.stats and the implementation is then provided in a:

  • VBSolver -- transforms it to custum MVN / Gamma
  • TaralliSolver -- can use the scipy.stats objects right away
  • PyroSolver -- transforms to pyro.distributions

from bayem.

joergfunger avatar joergfunger commented on June 10, 2024

I would agree doing this, but we should allow users to just use the latent/model_error feature (so that they provide the priors themselves), e.g. via methods that can be overwritten. Thus, special structures do not have to be part of the standard interface. Important is the consideration of vector parameters. Here, the question would be, if we consider each parameter separately (and provide a single scalar distribution assuming all entries in the vector are independent and idenically distributed, or if we directly provide a joint distribution (e.g. MVN) with the special case of only have diagonal entries in the covariance.

from bayem.

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.