eqdisco.selection.epsilon_lexicase#

eqdisco.selection.epsilon_lexicase(errors, n, rng, epsilon='mad')[source]#

ε-lexicase selection.

Parameters:
errorsarray of shape (P, N)

Absolute error of every individual on every training case.

nint

Number of selections.

epsilon“mad”, float or array of shape (N,)

Threshold per case; "mad" uses the median absolute deviation of the errors of the population on that case (semi-dynamic ε-lexicase).

Each selection shuffles the cases and keeps, case by case, the individuals
whose error is within ε of the best remaining error.