ThroughputCostScenario
Reliability scenarios · Implementation: mlsysim/engine/scenario_definitions/reliability.py.
Construct this scenario with keyword inputs. The fields below show the types and defaults declared by this class.
The same workload and resource budget served at baseline_rate without a set of controls and at controlled_rate with them.
Notes
Equation: Subtract rates for lost throughput and normalize by the baseline for fractional overhead.
Assumptions: The two rates describe the same workload and resource allocation.
Excludes: Causal attribution of observed rate changes or a latency model.
References
Derivation: Subtract rates for lost throughput and normalize by the baseline for fractional overhead. Individual property contracts identify the exact accounting expression or reusable calculation. Registry entries supply the scenario inputs; this class does not turn them into measured outcomes.
Examples
Evaluate a named scenario using its declared inputs.
>>> from mlsysim import Scenarios
>>> scenario = Scenarios.SecureMultiTenantServing
>>> round(float(scenario.rate_lost.magnitude), 4)
150.0Attributes
| Name | Description |
|---|---|
| baseline_rate | |
| controlled_rate | |
| overhead | Fraction of baseline throughput lost under the controls, for the same workload and |
| rate_lost | Throughput removed by controls, expressed in the baseline rate’s units. |
baseline_rate
Type: Quantity.
Declared default: required.
controlled_rate
Type: Quantity.
Declared default: required.
rate_lost
engine.scenario_types.ThroughputCostScenario.rate_lost
Throughput removed by controls, expressed in the baseline rate’s units.
Equation: (baseline_rate - controlled_rate).to(baseline_rate.units).
overhead
engine.scenario_types.ThroughputCostScenario.overhead
Fraction of baseline throughput lost under the controls, for the same workload and resource budget.
Equation: (1 - controlled_rate / baseline_rate).to('').magnitude.