neuro_morpho.run

Functions

_config_line_filter(→ bool)

_config_line_to_pair(→ list[str])

config_str_to_dict(→ dict)

Converts a Gin.config_str() to a dict for logging with comet.ml

run(model, training_x_dir, training_y_dir, ...[, ...])

Run the model on the data and save the results.

Module Contents

neuro_morpho.run._config_line_filter(line: str) bool[source]
neuro_morpho.run._config_line_to_pair(line: str) list[str][source]
neuro_morpho.run.config_str_to_dict(config_str: str) dict[source]

Converts a Gin.config_str() to a dict for logging with comet.ml

neuro_morpho.run.run(model: neuro_morpho.model.base.BaseModel, training_x_dir: str | pathlib.Path, training_y_dir: str | pathlib.Path, validating_x_dir: str | pathlib.Path, validating_y_dir: str | pathlib.Path, testing_x_dir: str | pathlib.Path, testing_y_dir: str | pathlib.Path, model_save_dir: str | pathlib.Path, model_out_y_dir: str | pathlib.Path, model_out_val_y_dir: str | pathlib.Path, model_stats_output_dir: str | pathlib.Path, labeled_stats_output_dir: str | pathlib.Path, report_output_dir: str | pathlib.Path, logger: neuro_morpho.logging.base.Logger = None, train: bool = False, get_threshold: bool = False, test: bool = False, infer: bool = False, cal_stats: bool = False)[source]

Run the model on the data and save the results.

Parameters:
  • model (BaseModel) – The model to run

  • data_dir (str|Path) – The directory containing the data

  • output_dir (str|Path) – The directory to save the results