Proportion

class gob.metrics.proportion.Proportion(f, bounds, p=0.99, f_target=None)

Bases: Metric

Metric that computes the proportion of runs that reached the \(f\)-target value.

Parameters:
  • sols (List) – The solutions returned by a solver during multiple runs.

  • f (Callable) – The objective function.

  • bounds (np.ndarray) – The bounds of the search space.

  • p (float) – The proportion.