psopt.utils.metrics¶
Metrics¶
This module constains the set of all available metrics to track during optimization
-
psopt.utils.metrics.hamming(source, targets)¶ Calculates the Hamming distance between the particles position (source) and a given target. If no specific target is provided through functools.partial, target variable will be assigned to the global optimum position
Returns: metrics observation at each iteration under attribute historyonpsopt.utils.Resultsobject
-
psopt.utils.metrics.l2(source, targets)¶ Calculates the L2-Norm between the particles position (source) and a given target. If no specific target is provided through functools.partial, target variable will be assigned to the global optimum position
Returns: metrics observation at each iteration under attribute historyonpsopt.utils.Resultsobject