dacapo.experiments.tasks.evaluators.instance_evaluator
Module Contents
Classes
Base class of all evaluators. |
Functions
|
Relabel array, such that IDs are consecutive. Excludes 0. |
|
Attributes
- dacapo.experiments.tasks.evaluators.instance_evaluator.logger
- dacapo.experiments.tasks.evaluators.instance_evaluator.relabel(array, return_backwards_map=False, inplace=False)
Relabel array, such that IDs are consecutive. Excludes 0.
- Parameters:
array (ndarray) – The array to relabel.
return_backwards_map (
bool, optional) – IfTrue, return an ndarray that maps new labels (indices in the array) to old labels.inplace (
bool, optional) – Perform the replacement in-place onarray.
- Returns:
A tuple
(relabelled, n), whererelabelledis the relabelled array andnthe number of unique labels found.If
return_backwards_mapisTrue, returns(relabelled, n, backwards_map).
- class dacapo.experiments.tasks.evaluators.instance_evaluator.InstanceEvaluator
Base class of all evaluators.
An evaluator takes a post-processor’s output and compares it against ground-truth.
- property score: dacapo.experiments.tasks.evaluators.instance_evaluation_scores.InstanceEvaluationScores
- criteria: List[str] = ['voi_merge', 'voi_split', 'voi']
- evaluate(output_array_identifier, evaluation_array)
Compares and evaluates the output array against the evaluation array.
- Parameters:
- Returns:
The detailed evaluation scores after the comparison.
- Return type:
- dacapo.experiments.tasks.evaluators.instance_evaluator.voi(truth, test)