predict file

From DEBwiki
Jump to: navigation, search

AmP estimation

Data and completeness
Parameter estimation
Goodness-of-fit: SMSE / MRE
AmP Literature

Practice - essentials

Starting an estimation for a new species
Setting initial parameter values
Setting weight coefficients
Computing implied properties
Submitting to the collection

Practice - extra modules
Code specification
User-defined files: run, mydata, pars_init, predict
Data: Zero-variate, Univariate, Pseudo-data

Typified models
Estimation options

Simplified flow chart estimation.jpg

The predict file is where one computes the predictions for the data set in the mydata file. Please see this youtube movie on how to add uni-variate data to a predict file

File Structure

In the next subsections we present the structure of the predict file following the order of appearance within the file.

Compound parameters

The file starts with the computation of compound parameters, followed by the unpacking of par, cPar (compound parameters), data and auxData making it important there is no repeated field name in these four structures.

Customized filters

The customized filters section is optional. The users can implement their own customized filters in this section. If the parameters don't comply with a given condition, set the variable info to zero, define prdData as an empty list and return. DEBtool will handle the result as any other filter condition in the estimation procedure.

Example of customized filter in Matlab:

filterChecks = f_tL >1 || ... % f contrained to not be larger than 1 or negative

              f_tL<0 ; %   

if filterChecks

   info = 0;
   prdData = {};



The main section where one computes the predictions for the data set in the mydata file.

Packing predictions

A technical section that ensures that the predictions are properly packed to be exchanged between functions. Make sure the field names in prdData (which is a structure that is output from the predict-file function) matches exactly the field names in data (which is a structure that is output from the mydata-file function).