diameter_synthesis.build_models

Construct diameter models from cells.

Functions

build(morphologies, config[, with_data])

Build a model from a set of morphologies and a config file.

build_single_model(sampling_model, ...)

Build a single model.

extract_parameters(sampling_model, ...)

Extract parameters from neurites to then use for model building.

fit_all_models(all_data, sampling_model, config)

Fit the parameters to get models.

fit_model(sampling_model, data, extra_params)

Fit a single parameter.

diameter_synthesis.build_models.build(morphologies, config, with_data=False)

Build a model from a set of morphologies and a config file.

Parameters:
  • morphologies (dict) – dictionary of morphologies.

  • config (dict) – configuration dictionary.

  • with_data (bool) – if set to True, the model data are also returned.

Returns:

parameter of the models (and possibly the data extracted if with_data==True).

Return type:

dict

diameter_synthesis.build_models.build_single_model(sampling_model, morphologies, config)

Build a single model.

Parameters:
  • sampling_model (dict) – parameters for model building.

  • morphologies (dict) – dictionary of morphologies.

  • config (dict) – configuration dictionary.

Returns:

parameter of the models data extracted.

Return type:

dict

diameter_synthesis.build_models.extract_parameters(sampling_model, morphologies, config)

Extract parameters from neurites to then use for model building.

Parameters:
  • sampling_model (dict) – parameters for model building.

  • morphologies (dict) – dictionary of morphologies.

  • config (dict) – configuration dictionary.

Returns:

data extracted.

Return type:

dict

diameter_synthesis.build_models.fit_all_models(all_data, sampling_model, config)

Fit the parameters to get models.

Parameters:
  • all_data (dict) – parameters to fit.

  • sampling_model (dict) – parameters for model building.

  • config (dict) – configuration dictionary.

Returns:

models.

Return type:

dict

diameter_synthesis.build_models.fit_model(sampling_model, data, extra_params)

Fit a single parameter.

Parameters:
  • sampling_model (dict) – model parameters.

  • data (array) – parameter to fit.

  • extra_params (dict) – additional parameters.

Returns:

fit parameters.

Return type:

dict