ExplanationLogScenario
Statistics scenarios · Implementation: mlsysim/engine/scenario_definitions/statistics.py.
Construct this scenario with keyword inputs. The fields below show the types and defaults declared by this class.
Logging an explanation with every prediction: predictions_per_day for days_per_month, each a map_size_low to map_size_high attribution map (or tabular attributions of attribution_bytes_low to attribution_bytes_high per feature).
Notes
Equation: Prediction count times days gives monthly count; multiplying by map bytes gives stored volume.
Assumptions: Fixed daily prediction count, month length, and explanation sizes.
Excludes: Compression, replication, retention beyond one month, and explanation-generation compute.
References
Derivation: Prediction count times days gives monthly count; multiplying by map bytes gives stored volume. 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.ImageExplanationLog
>>> round(float(scenario.predictions_per_month), 4)
30000000.0Attributes
| Name | Description |
|---|---|
| attribution_bytes_high | |
| attribution_bytes_low | |
| days_per_month | |
| map_size_high | |
| map_size_low | |
| monthly_high | Decimal TB of monthly explanations at the upper per-explanation size. |
| monthly_low | Decimal TB of monthly explanations at the lower per-explanation size. |
| predictions_per_day | |
| predictions_per_month | Prediction count during the supplied number of billing days. |
predictions_per_day
Type: float.
Declared default: required.
days_per_month
Type: float.
Declared default: required.
map_size_low
Type: Quantity.
Declared default: required.
map_size_high
Type: Quantity.
Declared default: required.
attribution_bytes_low
Type: Quantity.
Declared default: required.
attribution_bytes_high
Type: Quantity.
Declared default: required.
predictions_per_month
engine.scenario_types.ExplanationLogScenario.predictions_per_month
Prediction count during the supplied number of billing days.
Equation: predictions_per_day * days_per_month.
monthly_low
engine.scenario_types.ExplanationLogScenario.monthly_low
Decimal TB of monthly explanations at the lower per-explanation size.
Equation: (predictions_per_month * map_size_low).to('TB').
monthly_high
engine.scenario_types.ExplanationLogScenario.monthly_high
Decimal TB of monthly explanations at the upper per-explanation size.
Equation: (predictions_per_month * map_size_high).to('TB').