Join the newly launched
Discord community for real-time discussions, peer support, and direct interaction with the Meridian team!
schema.processors.model_processor.OptimizationSpec
Stay organized with collections
Save and categorize content based on your preferences.
A dated spec for optimization.
Inherits From: DatedSpec
schema.processors.model_processor.OptimizationSpec(
start_date: (datetime.date | None) = None,
end_date: (datetime.date | None) = None,
date_interval_tag: str = '',
*,
optimization_name: str,
grid_name: str,
group_id: (str | None) = None,
confidence_level: float = c.DEFAULT_CONFIDENCE_LEVEL
)
Attributes |
optimization_name
|
The name of the optimization in this spec.
|
grid_name
|
The name of the optimization grid.
|
group_id
|
An optional group ID for linking related optimizations.
|
confidence_level
|
The threshold for computing confidence intervals. Defaults
to 0.9. Must be a number between 0 and 1.
|
start_date
|
Dataclass field
|
end_date
|
Dataclass field
|
date_interval_tag
|
Dataclass field
|
Methods
resolver
View source
resolver(
time_coordinates: tc.TimeCoordinates
) -> 'DatedSpecResolver'
Returns a date resolver for this spec, with the given Meridian model.
validate
View source
validate()
Check optimization parameters are valid.
__eq__
__eq__(
other
)
Return self==value.
Class Variables |
|
confidence_level
|
0.9
|
|
date_interval_tag
|
''
|
|
end_date
|
None
|
|
group_id
|
None
|
|
start_date
|
None
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-09 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-12-09 UTC."],[],[]]