emodel_generalisation.tasks.workflow¶
Main workflow to generalise electrical models using MCMC.
See example/workflow for an example on how to run it.
TODO: improve docstrings.
Classes
|
Adapt AIS and Soma. |
|
Compare non adapted cells. |
|
Create dataframe with combos mixing mtype, etype and emodels. |
|
Create the exemplar morphology for an emodel and a population of morphologies. |
|
Create an xgboost model for generalisable emodels. |
|
Create xgboost models of resistance parameter fits. |
|
Create xgboost model of rhos factos as function of emodel parameter. |
|
Create dataframe with combos mixing mtype, etype and emodels for synthesized cells. |
|
Test the various parameters using AIS/soma adaptation. |
|
Generate more models from MCMC with rho factor and resistances. |
|
Generate more models from MCMC with rho factor and resistances. |
|
Get config folder with emodel setting via emodeldb (not OS) or locally. |
|
Make various plots of MCMC results. |
|
Plot traces, higlhlighting exemplar. |
|
Rediametrize morphologies with diameter model from exemplar. |
|
Constructs the AIS/soma input resistance models. |
|
Estimate the target rho value per me-types. |
|
Main task to run the entire workflow. |
|
Run MCMC exploration for an emodel using best emodels from burn-in phase for speed up. |
|
Run burn-in phase MCMC exploration for an emodel. |
|
Select valid set of pameters. |
|
Select a small set of robust parameters. |
|
Select valid set of pameters. |
|
Select valid set of pameters. |
|
Validation plot for generated models. |
|
Asses which morphologies are outliers. |
|
Asses which morphologies are outliers. |
|
Asses which morphologies are outliers. |
- class emodel_generalisation.tasks.workflow.AdaptAisSoma(*args, **kwargs)¶
Bases:
EmodelAwareTask,ParallelTask,WorkflowTaskAdapt AIS and Soma.
- class emodel_generalisation.tasks.workflow.CompareNoAdaptation(*args, **kwargs)¶
Bases:
WorkflowTaskCompare non adapted cells.
- class emodel_generalisation.tasks.workflow.CreateComboDF(*args, **kwargs)¶
Bases:
EmodelAwareTask,WorkflowTaskCreate dataframe with combos mixing mtype, etype and emodels.
- class emodel_generalisation.tasks.workflow.CreateExemplar(*args, **kwargs)¶
Bases:
WorkflowTaskCreate the exemplar morphology for an emodel and a population of morphologies.
- class emodel_generalisation.tasks.workflow.CreateMLGeneralisationModels(*args, **kwargs)¶
Bases:
WorkflowTaskCreate an xgboost model for generalisable emodels.
- class emodel_generalisation.tasks.workflow.CreateMLResistanceModels(*args, **kwargs)¶
Bases:
WorkflowTaskCreate xgboost models of resistance parameter fits.
- class emodel_generalisation.tasks.workflow.CreateMLRhoModels(*args, **kwargs)¶
Bases:
WorkflowTaskCreate xgboost model of rhos factos as function of emodel parameter.
- class emodel_generalisation.tasks.workflow.CreateSynthesisComboDF(*args, **kwargs)¶
Bases:
WorkflowTaskCreate dataframe with combos mixing mtype, etype and emodels for synthesized cells.
- class emodel_generalisation.tasks.workflow.Evaluate(*args, **kwargs)¶
Bases:
EmodelAwareTask,ParallelTask,WorkflowTaskTest the various parameters using AIS/soma adaptation.
- class emodel_generalisation.tasks.workflow.EvaluateMoreModels(*args, **kwargs)¶
Bases:
EmodelAwareTask,ParallelTask,WorkflowTaskGenerate more models from MCMC with rho factor and resistances.
- class emodel_generalisation.tasks.workflow.GenerateMoreModels(*args, **kwargs)¶
Bases:
WorkflowTaskGenerate more models from MCMC with rho factor and resistances.
- class emodel_generalisation.tasks.workflow.GetEmodelConfig(*args, **kwargs)¶
Bases:
WorkflowTaskGet config folder with emodel setting via emodeldb (not OS) or locally.
If mode ==’local’, use ‘config_path’ for the config folder, and ‘mechanisms_path’ for the mechanisms folder to compile, and ‘generalisation_rule’ with filters for morphologies generalisation.
- class emodel_generalisation.tasks.workflow.PlotMCMCResults(*args, **kwargs)¶
Bases:
EmodelAwareTask,WorkflowTaskMake various plots of MCMC results.
- class emodel_generalisation.tasks.workflow.PlotTraces(*args, **kwargs)¶
Bases:
WorkflowTaskPlot traces, higlhlighting exemplar.
- class emodel_generalisation.tasks.workflow.ReDiametrize(*args, **kwargs)¶
Bases:
WorkflowTaskRediametrize morphologies with diameter model from exemplar.
- class emodel_generalisation.tasks.workflow.ResistanceModels(*args, **kwargs)¶
Bases:
EmodelAwareTask,WorkflowTaskConstructs the AIS/soma input resistance models.
- class emodel_generalisation.tasks.workflow.RhoFactors(*args, **kwargs)¶
Bases:
EmodelAwareTask,ParallelTask,WorkflowTaskEstimate the target rho value per me-types.
- class emodel_generalisation.tasks.workflow.Run(*args, **kwargs)¶
Bases:
WorkflowWrapperTaskMain task to run the entire workflow.
- class emodel_generalisation.tasks.workflow.RunMCMC(*args, **kwargs)¶
Bases:
EmodelAwareTask,ParallelTask,WorkflowTaskRun MCMC exploration for an emodel using best emodels from burn-in phase for speed up.
- class emodel_generalisation.tasks.workflow.RunMCMCBurnIn(*args, **kwargs)¶
Bases:
EmodelAwareTask,ParallelTask,WorkflowTaskRun burn-in phase MCMC exploration for an emodel.
- class emodel_generalisation.tasks.workflow.SelectMoreValidParameters(*args, **kwargs)¶
Bases:
EmodelAwareTask,WorkflowTaskSelect valid set of pameters.
- class emodel_generalisation.tasks.workflow.SelectRobustParams(*args, **kwargs)¶
Bases:
EmodelAwareTask,ParallelTask,WorkflowTaskSelect a small set of robust parameters.
- class emodel_generalisation.tasks.workflow.SelectValidParameters(*args, **kwargs)¶
Bases:
EmodelAwareTask,WorkflowTaskSelect valid set of pameters.
- class emodel_generalisation.tasks.workflow.SelectValidParametersNoAdapt(*args, **kwargs)¶
Bases:
EmodelAwareTask,WorkflowTaskSelect valid set of pameters.
- class emodel_generalisation.tasks.workflow.ValidateMoreModels(*args, **kwargs)¶
Bases:
WorkflowTaskValidation plot for generated models.
- class emodel_generalisation.tasks.workflow.ValidateMoreMorphologies(*args, **kwargs)¶
Bases:
WorkflowTaskAsses which morphologies are outliers.
- class emodel_generalisation.tasks.workflow.ValidateMorphologies(*args, **kwargs)¶
Bases:
WorkflowTaskAsses which morphologies are outliers.
- class emodel_generalisation.tasks.workflow.ValidateMorphologiesNoAdapt(*args, **kwargs)¶
Bases:
WorkflowTaskAsses which morphologies are outliers.