Skip to content

Python API reference

evoxphysics

evoxphysics.task.base

  • BaseTask — The shared half of every task: declared widths, resolved options and the rollout factory signature.
  • available_tasks — Metadata of every known task, without importing a single task package.
  • check_bool — Return value as a bool, refusing the integer spellings and (unless allowed) None.
  • check_choice — Return value as one of the accepted spellings, quoting the alternatives in the error.
  • check_finite — Return value as a finite float, refusing strings, non-numeric values and None.
  • check_positive_int — Return value as an int >= 1, refusing bools, floats, strings and (unless allowed) None.
  • expand_aliases — Rewrite option spellings through aliases before validation.
  • freeze_options — Return a hashable, deterministic form of an option value, for a rollout cache key.
  • register_task — Register a task class under a registry name.
  • resolve_options — Merge option overrides over a task’s documented defaults, validating the option names.
  • resolve_task — Return the task class for a registry name, importing it lazily.
  • rollout_key — The cache key of one rollout: its resolved sizes, its seed table and its device.
  • seed_master — Resolve a run’s master seed, falling back to a task default when the config names none.
  • summarize_returns — Summarise a generation’s episode returns into the per-policy fitness of the layer.

evoxphysics.task.catalog

  • available_tasks — List every task the registry knows, without importing a task module.
  • register_task — Register a task class under a registry name, as a decorator or as a plain call.
  • register_tasks — Register this application’s task metadata, idempotently, before an NE entry point runs.
  • resolve_task — Return the task class of a registry name or alias, registering the catalogue first.

evoxphysics.task.robot

  • RobotSpec — A robot description as pure data: the file, the joints and the control law of the robot.
  • RobotState — The read-only symbolic state a custom robot’s hooks read: pose, velocities, joints, actions.
  • RobotTask — A custom robot task: declare the robot, an observation width and three hooks.
  • placement_spec — The DeviceSpec a task’s backend/device option pair describes.
  • resolve_residency — The residency one placement runs at: the host reference path, or the accelerator path.

evoxphysics.task.go2.env

  • Go2Rollout — The batched Go2 rollout: one scene, rows rows, any act.
  • Go2WalkTask — The Go2 quadruped walking task: flat terrain, 45 observations, 12 joint targets.
  • RolloutResult — One generation of the shared Go2 environment, with its metrics and its profile.

evoxphysics.task.go2.skills

evoxphysics.task.go1

  • Go1WalkTask — Walk the Unitree Go1 quadruped forward at target_speed in pure-evoxc graphs.

evoxphysics.task.g1

  • G1Rollout — Run the physics batch on the selected backend and score NumPy episode returns.
  • G1WalkTask
  • control_profile — Home angles and PD gains of a G1 control profile, in JOINT_NAMES order.
  • render_scene_spec — A fresh scene-spec mapping for a G1 task: the data a renderer rebuilds the scene from.

evoxphysics.task.anymal_c

  • AnymalCWalkTask — Walk the ANYmal C forward at the task’s fixed target_speed, in the evoxc graphs.

evoxphysics.task.ant

  • AntWalkTask — Walk the MJCF ant forward in world +x, with all runtime math in evoxc graphs.

evoxphysics.task.humanoid

  • HumanoidWalkTask — Walk the MJCF humanoid forward in world +x, with all runtime math in evoxc graphs.

evoxphysics.task.drone

  • DroneHoverTask — Fly the CF2X quadrotor to a seeded 3-D target and hold it: a pure-evoxc HoverEnv.

evoxphysics.net.mlp

  • BoundMLP — An MLP with its observation/action widths resolved from a task.
  • MLP — An obs_dim -> *hidden -> act_dim policy specification.

evoxphysics.net.layout

  • LayerParams — One linear layer’s slices of the flat parameter vector.
  • MLPLayout — The flat-vector layout of an obs_dim -> *hidden -> act_dim policy.

evoxphysics.net.graphs

  • ActGraph — A compiled, shape-keyed forward pass over one policy layout.
  • bind_device_act — Pack device parameters once and bind them for a rollout’s repeated policy calls.
  • build_act_graph — Build the ergonomic ActGraph for one layout and row count.
  • build_packed_act_graph — Compile the forward graph whose parameters arrive already packed per layer.
  • build_parameter_pack — Compile the flat-vector -> per-layer (weight, bias) packing graph.
  • build_population_act_graph — Compile the (pop, obs, mean, std) -> actions graph for a candidate population.
  • build_single_act_graph — Compile the (params, obs, mean, std) -> actions graph for one parameter vector.
  • run_act — Run one forward graph.
  • split_parameters — Slice a (n_policies, size) parameter batch into per-layer (weight, bias) tensors.
  • stage_operand — Stage one operand of a policy graph after checking its shape.

evoxphysics.ne.trainer

  • TrainResult — The outcome of one Trainer.run invocation.
  • Trainer — Train, evaluate, save and reload one algorithm on one task.

evoxphysics.ne.policy

  • Policy — A loaded, callable policy with the metadata needed to describe, save and re-render it.

evoxphysics.ne.es

  • ES — An Evolution-Strategy option facade that resolves to the RankES implementation.

evoxphysics.ne.adapters

  • EvoGP — EvoGP option adapter (tree representation) with a typed constructor.
  • TensorNEAT — TensorNEAT option adapter (graph representation) with a typed constructor.

evoxphysics.ne.callbacks

  • Callback — The optional observer hooks of a run.
  • ProgressLog — Print one status line every every generations and the final best fitness.
  • StopOnFitness — Stop the run once the best fitness of a generation reaches target.
  • StopTraining — Raised by a callback to stop the run early.
  • dispatch — Call the hook name on every callback that implements it, in order.

evoxphysics.ne.core.interfaces

  • Algorithm — One algorithm behind one representation, exposing a generation step and its checkpoints.
  • DeviceSpec — Where the algorithm’s numerics run: one EvoXC backend on one device.
  • EvalResult — The outcome of evaluating one checkpoint on a held-out seed table.
  • Rollout — One task’s batched-episode rollout: a generation of policies in, episode returns out.
  • RunSummary — The outcome of a training run, written as run.json into the run directory.
  • StepResult — What one generation step returns.
  • Task — A batched task: build a rollout for a device, then score whatever policy callable it is given.
  • as_record — Convert numpy/tensor-like values into JSON-serialisable Python objects.
  • default_accelerator_device — Default EvoXC accelerator device string for this host ("cuda:0" on NVIDIA, "rocm:0" on AMD/CPU).

evoxphysics.render.renderer

  • RenderResult — What one Renderer.record call produced.
  • Renderer — Replay a task’s policy into an MP4 (torch-free) or into the interactive viewer (PyTorch).

evoxphysics.render.camera

  • Camera — Where an offscreen recording looks from.
  • CameraAdapter — Duck-typed stand-in for evoxphysics.vis.Camera that the rasterizer consumes without PyTorch.

Type to search…

↑↓ navigate↵ selectEsc close