bluepyopt.ephys.evaluators¶
Cell evaluator class
- class bluepyopt.ephys.evaluators.CellEvaluator(cell_model=None, param_names=None, fitness_protocols=None, fitness_calculator=None, isolate_protocols=None, sim=None, use_params_for_seed=False, timeout=None)[source]¶
Simple cell class
Constructor
- Parameters:
cell_model (ephys.models.CellModel) – CellModel object to evaluate
param_names (list of str) – names of the parameters (parameters will be initialised in this order)
fitness_protocols (dict of str -> ephys.protocols.Protocol) – protocols used during the fitness evaluation
fitness_calculator (ObjectivesCalculator) – ObjectivesCalculator object used for the transformation of Responses into Objective objects
isolate_protocols (bool) – whether to use multiprocessing to isolate the simulations (disabling this could lead to unexpected behavior, and might hinder the reproducability of the simulations)
sim (ephys.simulators.NrnSimulator) – simulator to use for the cell evaluation
use_params_for_seed (bool) – use a hashed version of the parameter dictionary as a seed for the simulator
timeout (int) – duration in second after which a Process will be interrupted when using multiprocessing
- evaluate_with_dicts(param_dict=None, target='scores')[source]¶
Run evaluation with dict as input and output
- evaluate_with_lists(param_list=None, target='scores')[source]¶
Run evaluation with lists as input and outputs
- init_simulator_and_evaluate_with_lists(param_list=None, target='scores')[source]¶
Set NEURON variables and run evaluation with lists.
Setting the NEURON variables is necessary when using ipyparallel, since the new subprocesses have pristine NEURON.