Navigation
| class MultipleOutputProblem( Problem ) | [source] |
|---|
A MultipleOutputProblem is an optimization of parameters where the model has multiple outputs. E.g. the orbit of a double star or the outcome of a game.
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( p ) The parameters, p, are to be optimized while the x provide additional information.
Attributes from Problem
model, xdata, ydata, weights, partype
- Author : Do Kester
| MultipleOutputProblem( model=None, xdata=None, ydata=None, weights=None, accuracy=None, copy=None ) | [source] |
|---|
Problem Constructor.
Parameters
- model : Model
the model to be solved. One with multiple outputs: model.ndout > 1 - xdata : array_like
independent variable - ydata : array_like
dependent variable. shape = (len(xdata), model.ndout) - weights : array_like or None
weights associated with ydata: shape = as xdata or as ydata - accuracy : float or ndarray of shape (ndata,)
accuracy scale for the datapoints
all the same or one for each data point - copy : Problem
to be copied
| copy( ) | [source] |
|---|
| expandFlat( weights, ndout ) | [source] |
|---|
| result( param ) | [source] |
|---|
Parameters
- param : array_like
values for the parameters + nuisance params.
| partial( param ) | [source] |
|---|
Parameters
- param : array_like
values for the parameters + nuisance params.
| derivative( param ) | [source] |
|---|
Parameters
- param : array_like
list of model parameters
| residuals( param, mockdata=None ) | [source] |
|---|
| weightedResSq( allpars, mockdata=None, extra=False ) | [source] |
|---|
Optionally (extra=True) the weighted residuals themselves are returned too.
Parameters
- allpars : array_like
values for the parameters. - mockdata : array_like
model fit at xdata - extra : bool (False)
true : return ( wgt * res^2, wgt * res )
false : return wgt * res2
| myEngines( ) | [source] |
|---|
| myStartEngine( ) | [source] |
|---|
| myDistribution( ) | [source] |
|---|
| baseName( ) | [source] |
|---|
Returns a string representation of the model.
| Methods inherited from Problem |
|---|