set_evaluation_step#

pharmpy.modeling.set_evaluation_step(model, idx=-1)[source]#

Set evaluation step

Change the final or the estimation step with a specific index to do evaulation.

Parameters:
  • model (Model) – Pharmpy model

  • idx (int) – Index of estimation step, default is -1 (last estimation step)

Returns:

Model – Pharmpy model object

Examples

>>> from pharmpy.modeling import *
>>> model = load_example_model("pheno")
>>> model = set_evaluation_step(model)
>>> model.execution_steps[0]   
EstimationStep('FOCE', interaction=True, parameter_uncertainty_method='SANDWICH', evaluation=True, ...