easyiec.problems.FuzzyPartitionDesign#

class easyiec.problems.FuzzyPartitionDesign(n_terms=5)[source]#

Bases: Problem

Interpretable fuzzy partitions of a variable (five linguistic terms on [0, 1]).

Triangular membership functions (shoulders at both ends) with evolvable peaks and half-widths. Interpretability of fuzzy partitions — coverage (ε-completeness), distinguishability of neighbouring terms and the Ruspini condition \(\sum_i\mu_i(x)=1\) (Ruspini, 1969) — is a classical concern of fuzzy modelling; the overlap of terms is measured by the similarity \(|A\cap B|/|A\cup B|\) used in rule-base simplification (Setnes et al., 1998). Peaks and feet are draggable handles.

apply_edit(x, handles)[source]#

Genome after the knots were moved to handles.

describe(x)[source]#

Text description of a candidate (for text-only judges).

edit_handles(x)[source]#

Knot points (k, 2) a person can drag (problems with editable curves).

features(x)[source]#

Phenotype features in psychological space (default: image features).

objectives(x)[source]#

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

presets()[source]#

Named, hand-picked genomes ({name: genome}) for seeding and demos.

render_plot(x, ax)[source]#

Plot-type phenotypes (curves, layouts) draw here; used by _image().

repair(x)[source]#

Clip and order the terms by their peaks (widths travel with their peaks).

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.FuzzyPartitionDesign#

Fuzzy partitions and robot paths: geometry an expert can judge

Fuzzy partitions and robot paths: geometry an expert can judge