QDpy
Loading...
Searching...
No Matches
qdpy.benchmarks.jax_reference.JAXPolicyBenchmark Class Reference

A reference simulator, policy architecture, and compiled batch adapter. More...

Public Member Functions

 sample (self, count, *, seed=0)
 Draw independent initialized networks using the reference initializer.
 evaluate_batch (self, genomes, *, seed=0)
 Score a matrix of flat networks in one batched reference rollout.

Detailed Description

A reference simulator, policy architecture, and compiled batch adapter.

Construct with kheperax_maze or qdax_brax. Scores keep upstream units.

Definition at line 22 of file jax_reference.py.

Member Function Documentation

◆ evaluate_batch()

qdpy.benchmarks.jax_reference.JAXPolicyBenchmark.evaluate_batch ( self,
genomes,
* ,
seed = 0 )

Score a matrix of flat networks in one batched reference rollout.

Parameters
genomesNonempty matrix of finite weights in the same order as sample().
seedUnsigned 32-bit seed for the entire batch.
Returns
Raw measurements, valid episode lengths, and actual scan steps.

Definition at line 63 of file jax_reference.py.


The documentation for this class was generated from the following file: