PSB2Fitness

Fitness adapters preserve one objective per training example, at any count. Keep one objective per example; convert integer/float errors consistently. Lazy, deterministic dataset fixture. Only this boundary owns Python values; benchmark functions receive native Aeon List values and correctly typed scalars.
Imports
import Array;
Table of Contents

Types

Cases

(type)
Lazy, deterministic dataset fixture. Only this boundary owns Python values; benchmark functions receive native Aeon List values and correctly typed scalars.
type Cases

Functions

cases

def cases (problem : String) (count : Int | count > 0) : {c : Cases | caseCount c = count}

meanError

def meanError (1 errors : (Array Float)) : Float

per_example_errors

def per_example_errors (1 values : (Array Float)) : {errors : (Array Float) | Array.size errors = Array.size values}

per_example_errors_int

def per_example_errors_int (1 values : (Array Int)) : {errors : (Array Float) | Array.size errors = Array.size values}

per_example_errors_50

Compatibility name: the length now comes from the input, like the main adapter.
def per_example_errors_50 (1 values : (Array Float)) : {errors : (Array Float) | Array.size errors = Array.size values}

Uninterpreted

Functions declared as def f ... = uninterpreted: only their signature is known to the verifier; they have no body.

caseCount

uninterpreted
def caseCount : (cases : Cases) → Int