casm.learn.EqualIndividual
- class casm.learn.EqualIndividual(rel_tol=1e-06)[source]
Functor class for checking equivalence of individuals in a HallOfFame.
- rel_tol
Individuals are considered equal if features selected are equal and abs((A.fitness.values[0] - B.fitness.values[0]) / A.fitness.values[0] ) < rel_tol
- Type:
number
- Parameters:
rel_tol (number, optional, default=1e-6) – Individuals are considered equal if features selected are equal and abs((A.fitness.values[0] - B.fitness.values[0]) / A.fitness.values[0] ) < rel_tol
- __init__(rel_tol=1e-06)[source]
- Parameters:
rel_tol (number, optional, default=1e-6) – Individuals are considered equal if features selected are equal and abs((A.fitness.values[0] - B.fitness.values[0]) / A.fitness.values[0] ) < rel_tol
Methods
__init__
([rel_tol])- param rel_tol:
Individuals are considered equal if features selected are equal and