ribs.archives.CQDScoreResult

class ribs.archives.CQDScoreResult(iterations, mean, scores, target_points, penalties, obj_min, obj_max, dist_max, dist_ord)[source]

Stores the result of running cqd_score().

Methods

Attributes

iterations

Number of times the score was computed.

mean

The mean score.

scores

Array of scores obtained on each iteration.

target_points

(iterations, n, measure_dim) array of target points used in the computation.

penalties

1D array of penalties used in the computation.

obj_min

Minimum objective passed into the method.

obj_max

Maximum objective passed into the method.

dist_max

Max distance passed into the method, or the one that was computed based on measure space bounds.

dist_ord

Order of the norm for distance which is passed into the method.

dist_max: float

Max distance passed into the method, or the one that was computed based on measure space bounds.

dist_ord: Any

Order of the norm for distance which is passed into the method. Refer to the ord argument in numpy.linalg.norm() for type info.

iterations: int

Number of times the score was computed.

mean: float

The mean score. This is the result most users will need.

obj_max: float

Maximum objective passed into the method.

obj_min: float

Minimum objective passed into the method.

penalties: numpy.ndarray

1D array of penalties used in the computation. If the user passed in an array of penalties, this will be a copy of that array.

scores: numpy.ndarray

Array of scores obtained on each iteration.

target_points: numpy.ndarray

(iterations, n, measure_dim) array of target points used in the computation. If the user passed in an array of target_points, this will be a copy of that array.