bluepyemodel.emodel_pipeline.emodel¶
EModel class
Functions
Translates a dictionary to a list of the format used by resources |
Classes
|
Contains all the information related to an optimized e-model, such as its parameters or its e-feature values and scores. |
Contains functions used both in EModel and MEModel classes. |
- class EModel(fitness=None, parameter=None, score=None, features=None, scoreValidation=None, passedValidation=None, seed=None, emodel_metadata=None, workflow_id=None, nexus_images=None, threshold_data=None)¶
Bases:
EModelMixinContains all the information related to an optimized e-model, such as its parameters or its e-feature values and scores.
This class is not meant to be instantiated by hand. It is used to transmit the information about optimized e-model information.
Init
- Parameters:
fitness (float) – fitness of the emodel as the sum of scores.
parameter (dict or Resource) – parameters of the emodel
score (dict or Resource) – scores of the emodel.
features (dict or Resource) – feature values of the emodel.
scoreValidation (dict or Resource) – scores obtained on the validation protocols.
passedValidation (bool or None) – did the model go through validation and if yes, did it pass it successfully (None: no validation, True: passed, False: didn’t pass)
seed (int) – seed used during optimisation for this emodel.
emodel_metadata (EModelMetadata) – metadata of the model (emodel name, etype, ttype, …)
workflow_id (str) – EModelWorkflow id on nexus.
nexus_images (list) – list of pdfs associated to the emodel. Not used, retained for legacy purposes only.
threshold_data (dict) – contains rmp, Rin, holding current and threshold current values to avoid re-computation of related protocols. Keys must match the ‘output_key’ used in respective protocols. If None, threshold-related protocols will be re-computed each time protocols are run.
- copy_pdf_dependencies_to_new_path(seed, overwrite=False)¶
Copy pdf dependencies to new path using allen notation
- class EModelMixin¶
Bases:
objectContains functions used both in EModel and MEModel classes.
- build_pdf_dependencies(seed)¶
Find all the pdfs associated to an emodel
- format_dict_for_resource(d)¶
Translates a dictionary to a list of the format used by resources