amici.amici.ReturnData¶
-
class
amici.amici.ReturnData(*args)[source]¶ Stores all data to be returned by
amici.amici.runAmiciSimulation().NOTE: multidimensional arrays are stored in row-major order (FORTRAN-style)
-
__init__(*args)[source] Overload 1:
default constructor
Overload 2:
ReturnData
- Parameters
ts (DoubleVector) – see amici::Model::ts
np (int) – see amici::Model::np
nk (int) – see amici::Model::nk
nx (int) – see amici::Model::nx_rdata
nx_solver (int) – see amici::Model::nx_solver
nxtrue (int) – see amici::Model::nxtrue_rdata
nx_solver_reinit (int) – see amici::Model::nx_solver_reinit
ny (int) – see amici::Model::ny
nytrue (int) – see amici::Model::nytrue
nz (int) – see amici::Model::nz
nztrue (int) – see amici::Model::nztrue
ne (int) – see amici::Model::ne
nJ (int) – see amici::Model::nJ
nplist (int) – see amici::Model::nplist
nmaxevent (int) – see amici::Model::nmaxevent
nt (int) – see amici::Model::nt
newton_maxsteps (int) – see amici::Solver::newton_maxsteps
nw (int) – see amici::Model::nw
pscale (ParameterScalingVector >) – see amici::Model::pscale
o2mode (int) – see amici::Model::o2mode
sensi (int) – see amici::Solver::sensi
sensi_meth (int) – see amici::Solver::sensi_meth
rdrm (int) – see amici::Solver::rdata_reporting
quadratic_llh (boolean) – whether model defines a quadratic nllh and computing res, sres and FIM makes sense
Overload 3:
constructor that uses information from model and solver to appropriately initialize fields
Methods Summary
__init__(*args)Overload 1:
Attributes
FIMnplist x nplist, row-major)
Jnx x nx, row-major)
chi2chi2 value
cpu_timecomputation time of forward solve [ms]
cpu_timeBcomputation time of backward solve [ms]
llhloglikelihood value
nJdimension of the augmented objective function for 2nd order ASA
nenumber of events
newton_maxstepsmaximal number of newton iterations for steady state calculation
nknumber of fixed parameters
nmaxeventmaximal number of occurring events (for every event type)
nptotal number of model parameters
nplistnumber of parameter for which sensitivities were requested
ntnumber of considered timepoints
numerrtestfailsnt)
numerrtestfailsBnt)
numnonlinsolvconvfailsnumber of linear solver convergence failures forward problem (dimension: nt)
numnonlinsolvconvfailsBnumber of linear solver convergence failures backward problem (dimension: nt)
numrhsevalsnt)
numrhsevalsBnt)
numstepsnt)
numstepsBnt)
nwnumber of columns in w
nxnumber of states
nx_solvernumber of states with conservation laws applied
nx_solver_reinitnumber of solver states to be reinitialized after preequilibration
nxtruenumber of states in the unaugmented system
nynumber of observables
nytruenumber of observables in the unaugmented system
nznumber of event outputs
nztruenumber of event outputs in the unaugmented system
o2modeflag indicating whether second order sensitivities were requested
ordernt)
posteq_cpu_timecomputation time of the steady state solver [ms] (postequilibration)
posteq_cpu_timeBcomputation time of the steady state solver of the backward problem [ms] (postequilibration)
posteq_numlinstepsnumber of linear steps by Newton step for steady state problem.
posteq_numstepsnumber of Newton steps for steady state problem (preequilibration) [newton, simulation, newton] (length = 3) (postequilibration)
posteq_numstepsBnumber of simulation steps for adjoint steady state problem (postequilibration) [== 0 if analytical solution worked, > 0 otherwise]
posteq_statusflags indicating success of steady state solver (postequilibration)
posteq_ttime when steadystate was reached via simulation (postequilibration)
posteq_wrmsweighted root-mean-square of the rhs when steadystate was reached (postequilibration)
preeq_cpu_timecomputation time of the steady state solver [ms] (preequilibration)
preeq_cpu_timeBcomputation time of the steady state solver of the backward problem [ms] (preequilibration)
preeq_numlinstepsnumber of linear steps by Newton step for steady state problem.
preeq_numstepsnumber of Newton steps for steady state problem (preequilibration) [newton, simulation, newton] (length = 3)
preeq_numstepsBnumber of simulation steps for adjoint steady state problem (preequilibration) [== 0 if analytical solution worked, > 0 otherwise]
preeq_statusflags indicating success of steady state solver (preequilibration)
preeq_ttime when steadystate was reached via simulation (preequilibration)
preeq_wrmsweighted root-mean-square of the rhs when steadystate was reached (preequilibration)
pscalescaling of parameterization (lin,log,log10)
rdata_reportingreporting mode
resnt*ny, row-major)
rznmaxevent x nz, row-major)
s2llh(nJ-1) x nplist, row-major)
s2rzsecond order parameter derivative of event trigger output (dimension: nmaxevent x nztrue x nplist x nplist, row-major)
sensisensitivity order
sensi_methsensitivity method
sigmaynt x ny, row-major)
sigmaznmaxevent x nz, row-major)
sllhnplist)
sresnt*ny x nplist, row-major)
srznmaxevent x nz x nplist, row-major)
ssigmaynt x nplist x ny, row-major)
ssigmazparameter derivative of event output standard deviation (dimension: nmaxevent x nz, row-major)
statusstatus code
sxnt x nplist x nx, row-major)
sx0nplist x nx, row-major)
sx_ssnplist x nx, row-major)
synt x nplist x ny, row-major)
sznmaxevent x nz, row-major)
tsnt)
ww data from the model (recurring terms in xdot, for imported SBML models from python, this contains the flux vector) (dimensions: nt x nw, row major)
xnt x nx, row-major)
x0nx)
x_ssnx)
xdotnx)
ynt x ny, row-major)
znmaxevent x nz, row-major)
Methods
-
__init__(*args)[source]¶ Overload 1:
default constructor
Overload 2:
ReturnData
- Parameters
ts (DoubleVector) – see amici::Model::ts
np (int) – see amici::Model::np
nk (int) – see amici::Model::nk
nx (int) – see amici::Model::nx_rdata
nx_solver (int) – see amici::Model::nx_solver
nxtrue (int) – see amici::Model::nxtrue_rdata
nx_solver_reinit (int) – see amici::Model::nx_solver_reinit
ny (int) – see amici::Model::ny
nytrue (int) – see amici::Model::nytrue
nz (int) – see amici::Model::nz
nztrue (int) – see amici::Model::nztrue
ne (int) – see amici::Model::ne
nJ (int) – see amici::Model::nJ
nplist (int) – see amici::Model::nplist
nmaxevent (int) – see amici::Model::nmaxevent
nt (int) – see amici::Model::nt
newton_maxsteps (int) – see amici::Solver::newton_maxsteps
nw (int) – see amici::Model::nw
pscale (ParameterScalingVector >) – see amici::Model::pscale
o2mode (int) – see amici::Model::o2mode
sensi (int) – see amici::Solver::sensi
sensi_meth (int) – see amici::Solver::sensi_meth
rdrm (int) – see amici::Solver::rdata_reporting
quadratic_llh (boolean) – whether model defines a quadratic nllh and computing res, sres and FIM makes sense
Overload 3:
constructor that uses information from model and solver to appropriately initialize fields
-