biophysics_fitting
❭ optimizer
❭ get_mymap
get_mymap¶
-
biophysics_fitting.optimizer.get_mymap(db_setup, db_run, c, satisfactory_boundary_dict=
None
, n_reschedule_on_runtime_error=3
)¶ Get a map function for evaluating the parameters.
This function is a hook into BluePyOpt’s optimization. It is used as a mapping function in
bluepyopt.optimisations.DEAPOptimisation
duringstart_run()
. Rather than just returning the combined objectives, it also saves the features and the objectives in the database. This is useful for debugging and for analyzing the optimization results.- Parameters:¶
db_setup ( – py:class:`~data_base.DataBase): Database containing the setup of the optimization.
db_run (
DataBase
) – The database for the optimization run containing sub-databases.c (
Client
) – The distributed client.satisfactory_boundary_dict (dict | None) – A dictionary with the boundaries for the objectives. If a model is found, that has all objectives below the boundary, the optimization is stopped.
n_reschedule_on_runtime_error (int) – The number of times the optimization is rescheduled if a runtime error occurs.
- Returns:¶
The map function for evaluating the parameters. this function is passed to the
bluepyopt.optimisations.DEAPOptimisation
object.- Return type:¶
Callable