pharmpy.tools Package#

Functions#

broadcast_log(context[, broadcaster])

Broadcast the log of a context

create_report(results, path)

Create standard report for results

fit(model_or_models[, esttool, name, ...])

Fit models.

open_context(name[, ref])

Open a context from a tool run

is_strictness_fulfilled(model, results, ...)

Takes a ModelfitResults object and a statement as input and returns True/False if the evaluation of the statement is True/False.

load_example_modelfit_results(name)

Load the modelfit results of an example model

list_models(context[, recursive])

List names of all models in a context

predict_influential_individuals(model, results)

Predict influential individuals for a model using a machine learning model.

predict_influential_outliers(model, results)

Predict influential outliers for a model using a machine learning model.

predict_outliers(model, results[, cutoff])

Predict outliers for a model using a machine learning model.

print_fit_summary(model, modelfit_results)

Print a summary of the model fit

print_log(context)

Print the log of a context

read_results(path)

Read results object from file

read_modelfit_results(path[, esttool])

Read results from external tool for a model

retrieve_model(context, name)

Retrieve a model from a context

retrieve_modelfit_results(context, name)

Retrieve the modelfit results of a model

retrieve_models(source[, names])

Retrieve models after a tool run

run_allometry(model, results[, ...])

Run allometry tool.

run_amd(input[, results, modeltype, ...])

Run Automatic Model Development (AMD) tool

run_bootstrap(model[, results, resamples, ...])

Run bootstrap tool

run_covsearch(model, results, search_space)

Run COVsearch tool.

run_estmethod(algorithm[, methods, solvers, ...])

Run estmethod tool.

run_iivsearch(model, results[, algorithm, ...])

Run IIVsearch tool.

run_iovsearch(model, results[, column, ...])

Run IOVsearch tool.

run_linearize([model, results, model_name, ...])

Linearize a model

run_modelfit([model_or_models, n])

Run modelfit tool.

run_modelsearch(model, results, search_space)

Run Modelsearch tool.

run_retries([model, results, ...])

Run retries tool.

run_ruvsearch(model, results[, groups, ...])

Run the ruvsearch tool.

run_structsearch(model, results, type[, ...])

Run the structsearch tool.

run_tool(tool_name, *args, **kwargs)

Run tool workflow

run_simulation([model])

Run the simulation tool.

summarize_modelfit_results(context[, ...])

Summarize results of model runs

write_results(results, path[, compression, csv])

Write results object to json (or csv) file