Skip to main content

AmdahlScenario

Optimization scenarios · Implementation: mlsysim/engine/scenario_definitions/optimization.py.

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

A sequential request path whose stage is made speedup times faster.

Notes

Equation: Compose mlsysim.solvers.AmdahlModel.

Assumptions: The stated fields are inputs to mlsysim.solvers.AmdahlModel; its documented validity regime, units, and modeling choices apply unchanged.

Excludes: This scenario adds no measurement, empirical calibration, or mechanisms beyond mlsysim.solvers.AmdahlModel.

References

Derivation: this scenario binds its input fields to the referenced implementation contracts: mlsysim.solvers.AmdahlModel. The methods below identify any additional arithmetic.

Examples

>>> from mlsysim import Scenarios
>>> case = Scenarios.ModelSpeedupRequestPath
>>> type(case.result).__name__
'AmdahlResult'

Attributes

Name Description
result Evaluate this scenario through mlsysim.solvers.AmdahlModel.solve. Equation: pass the
speedup
stage
stages

stages

Type: Dict[str, Quantity].

Declared default: required.

stage

Type: str.

Declared default: required.

speedup

Type: float.

Declared default: required.

result

engine.scenario_types.AmdahlScenario.result

Evaluate this scenario through mlsysim.solvers.AmdahlModel.solve. Equation: pass the stated fields to that implementation; its contract defines the calculation and feasibility tests. Units: each returned field follows the referenced result schema; no independent equation is evaluated by this wrapper.

Back to top