simrunmodular_reduced_model_inferencereduced_model

reduced_model

Construct reduced models and run optimization.

This module provides a top-level class to run reduced model inference. Each reduced model contains: - a :py:class:~`DataView` object to access data - a DataSplitEvaluation object to split data and evaluate the optimization results - one or more DataExtractor objects to preprocess the data - one or more _Strategy objects to run the optimization.

The optimization run optimizes a set of free parameters \(\mathbf{x}\) to minimize a cost function. Both the cost function and the free parameters are defined in the _Strategy object.

Classes

Rm

Reduced model class.

DataView

Convenience wrapper class to access data.

DataSplitEvaluation

Split data in training-test sets.

Functions

get_n_workers_per_ip(workers, n)

Convenience method to get a certain amount of workers per machine