BayesicFitting

Model Fitting and Evidence Calculation

View project on GitHub



class EvidenceProblem( ClassicProblem )Source

An EvidenceProblem is a ClassicProblem containing a Dynamic and/or Modifiable model, where the (Gauss-approximated) evidence is used as likelihood

Problems can be solved by NestedSampler, with appropriate Engines and ErrorDistributions.

The result of the function for certain x and p is given by problem.result( x, p ) The parameters, p, are to be optimized while the x provide additional information.

Attributes from Problem

model, xdata, ydata, weights

  • Author : Do Kester

EvidenceProblem( model=None, xdata=None, ydata=None, weights=None, copy=None )

Constructor for classic problems.

Parameters

  • model : Model
         the model to be solved
  • xdata : array_like or None
         independent variable
  • ydata : array_like or None
         dependent variable
  • weights : array_like or None
         weights associated with ydata
  • copy : Problem
         to be copied

copy( )
Copy.

The copy points to the same instance of model.

myEngines( )
Return a default list of preferred engines

myDistribution( )
Return the default preferred ModelDistribution: "model"

baseName( )

Returns a string representation of the model.

Methods inherited from ClassicProblem
Methods inherited from Problem