Skip to main content

DesignTradeoffScenario

Data scenarios · Implementation: mlsysim/engine/scenario_definitions/data.py.

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

One design-space move of a knob from baseline to alternative, with an illustrative quality gain from gain_low to gain_high (fractions); costs scale by ratio.

Notes

Equation: cost multiplier = alternative knob value / baseline knob value.

Assumptions: The scenario stipulates proportional cost scaling and a nonzero baseline; quality-gain ranges are supplied.

Excludes: A fitted cost curve or a calculation establishing the quality gains.

References

Derivation: cost multiplier = alternative knob value / baseline knob value. The individual properties state units and intermediate accounting; this class introduces no fitted coefficient.

Examples

The named scenario supplies illustrative inputs; the output is calculated.

>>> from mlsysim import Scenarios
>>> case = Scenarios.KeywordSpotterSampleRateChoice
>>> round(float(case.ratio), 3)
2.0

Attributes

Name Description
alternative
baseline
gain_high
gain_low
ratio Alternative knob value divided by baseline, the stipulated cost-scaling factor.

baseline

Type: float.

Declared default: required.

alternative

Type: float.

Declared default: required.

gain_low

Type: float.

Declared default: required.

gain_high

Type: float.

Declared default: required.

ratio

engine.scenario_types.DesignTradeoffScenario.ratio

Alternative knob value divided by baseline, the stipulated cost-scaling factor.

Equation: return alternative / baseline.

Back to top