Indicators¶
Guide: Multi-objective benchmarks.
ypea.indicators.gd¶
Generational distance: the mean distance from each point to the nearest front point.
v = ypea.indicators.gd(points, front). points is the approximation set
(n x m, for example the front of a run) and front a sample of the true
Pareto front (see ypea.benchmarks.pareto_front), all objectives minimized.
Distances are Euclidean. An empty set of points gives Inf.
This is the mean form (GD_p of Schuetze et al. 2012 with p = 1), as in
pymoo. Van Veldhuizen and Lamont (1998) defined sqrt(sum d^2) / n.
ypea.indicators.igd¶
Inverted generational distance: the mean distance from each front point to the set.
v = ypea.indicators.igd(points, front), see ypea.indicators.gd. An empty
set of points gives Inf. Coello Coello and Reyes Sierra (2004).
ypea.indicators.gd_plus¶
GD+: like GD with the distance counted only where a point is worse than the front.
v = ypea.indicators.gd_plus(points, front) uses d+(a, z) = ||max(a - z, 0)||,
so it is weakly Pareto compliant. An empty set of points gives Inf.
Ishibuchi, Masuda, Tanigaki and Nojima (2015), "Modified distance
calculation in generational distance and inverted generational distance",
EMO 2015.
ypea.indicators.igd_plus¶
IGD+: like IGD with the distance counted only where the set is worse than the front.
v = ypea.indicators.igd_plus(points, front) uses d+(a, z) = ||max(a - z, 0)||
for each front point z against every point a. An empty set of points
gives Inf. Ishibuchi, Masuda, Tanigaki and Nojima (2015).
ypea.indicators.hypervolume¶
Volume dominated by points and bounded by the reference point ref.
v = ypea.indicators.hypervolume(points, ref, n_samples=1e6, seed=0)
points is n x m (all objectives minimized) and ref has m values.
Points that do not strictly dominate ref add nothing and are ignored, and
so do dominated and repeated points. The value is exact for 1 to 3
objectives (a sort for 2, slices along the third objective for 3, as in
the HSO of While, Hingston, Barone and Huband 2006). For 4 and more it is
a Monte Carlo estimate from n_samples uniform samples in the box between
the best point coordinates and ref, drawn from ypea.Rng(seed), so the
same seed gives the same value. MATLAB draws its own random numbers, so
the estimate differs from Python's by the sampling error, about
V sqrt(q (1 - q) / n_samples) for a box volume V and a dominated share q.
Zitzler and Thiele (1998).
ypea.indicators.spacing¶
Schott's spacing: the spread of nearest neighbor L1 distances (0 is evenly spaced).
v = ypea.indicators.spacing(points) = sqrt(sum (mean(d) - d_i)^2 / (n - 1)),
with d_i the smallest L1 distance from point i to another point. Needs at
least two points: fewer give NaN. Schott (1995), MSc thesis, MIT.