QDpy
Loading...
Searching...
No Matches
reference.py File Reference

Reference scoring for pyribs Sphere and LunarLander-v3. More...

Go to the source code of this file.

Classes

class  qdpy.benchmarks.reference.ReferenceBatch
 Raw measurements and simulator accounting for a batch of candidates. More...
class  qdpy.benchmarks.reference.PyribsSphereBenchmark
 Parameterize the reference Sphere protocol for a fixed genome dimension. More...
class  qdpy.benchmarks.reference.LunarLanderBenchmark
 Score the pyribs linear policy in Gymnasium LunarLander-v3. More...

Namespaces

namespace  qdpy
namespace  qdpy.benchmarks

Functions

 qdpy.benchmarks.reference.pyribs_sphere (genomes)
 Evaluate shifted Sphere and the reference projections without clamping the inputs.

Detailed Description

Function Documentation

◆ pyribs_sphere()

qdpy.benchmarks.reference.pyribs_sphere ( genomes)

Evaluate shifted Sphere and the reference projections without clamping the inputs.

Parameters
genomesNonempty matrix of genomes with at least two coordinates.
Returns
Pair of arrays containing raw fitness and two descriptor coordinates per genome.
Implement the pyribs Sphere linear projection benchmark.

Each out-of-bounds coordinate contributes 5.12 divided by its value
to its descriptor. Fitness uses the original coordinates and may
be negative for points outside the nominal search domain.

Definition at line 62 of file reference.py.