easyiec.problems.ImageSegmentation#

class easyiec.problems.ImageSegmentation(size=192, n_cells=20, seed=0, image=None, mask=None)[source]#

Bases: Problem

Threshold-and-morphology segmentation of a synthetic microscopy scene with known ground truth.

Genes: Gaussian smoothing, background correction (subtraction of a large blur), relative threshold, opening and closing radii, minimum object area and polarity. The phenotype shows the found object outlines over the image; objectives() reports the Dice and Jaccard (IoU) coefficients against the hidden true mask and the error in the number of objects, so the visual judgments of people and vision models can be scored exactly.

objectives(x)[source]#

Key performance indicators (engineering problems); empty by default.

utility(x, target=None)[source]#

Default hidden utility in [0, 1] (ground truth of benchmarks).

With a target genome it is a Gaussian similarity of standardized phenotype features; subclasses with explicit objectives override it.

Examples using easyiec.problems.ImageSegmentation#

Hybrid evaluation: the AI answers, people decide the hard cases

Hybrid evaluation: the AI answers, people decide the hard cases

A judge-substitution study

A judge-substitution study

Tuning an image-segmentation pipeline with a ground truth

Tuning an image-segmentation pipeline with a ground truth

Claude as the evaluator of a session

Claude as the evaluator of a session