Skip to main content

CenteredRewardScenario

Training scenarios · Implementation: mlsysim/engine/scenario_definitions/training.py.

Construct this scenario with keyword inputs. The fields below show the types and defaults declared by this class.

Binary terminal rewards centered on a fixed baseline.

Notes

Equation: Composition of mlsysim.solvers.CenteredRewardModel.solve.

Assumptions: Inputs are routed to CenteredRewardModel.solve; their documented regimes and units apply to this configuration.

Excludes: Additional mechanisms beyond the linked solver contracts; the scenario does not collect measurements.

References

Derivation: This scenario binds named inputs to CenteredRewardModel. The linked solver contracts own equations, sources, and result-unit definitions.

Examples

Evaluate the named configuration and display a modeled result.

>>> from mlsysim import Scenarios
>>> case = Scenarios.BinaryRewardFixedBaseline
>>> value = case.result.passing_score
>>> print(f"{value:.3g}")
0.75

Attributes

Name Description
baseline
failing_reward
passing_reward
result Evaluate the stated centered reward case through CenteredRewardModel.solve; returns its typed result and quantity units.

baseline

Type: float.

Declared default: required.

passing_reward

Type: float.

Declared default: required.

failing_reward

Type: float.

Declared default: required.

result

engine.scenario_types.CenteredRewardScenario.result

Evaluate the stated centered reward case through CenteredRewardModel.solve; returns its typed result and quantity units.

Calculation: mlsysim.solvers.CenteredRewardModel.solve.

Back to top