Join the newly launched Discord
community for real-time discussions, peer support, and direct interaction with the Meridian team!
meridian.model.eda.eda_spec.AggregationConfig Stay organized with collections
Save and categorize content based on your preferences.
A configuration for customizing variable aggregation functions.
meridian
.
model
.
eda
.
eda_spec
.
AggregationConfig
(
*
,
control_variables
:
AggregationMap
=
dataclasses
.
field
(
default_factory
=
dict
),
non_media_treatments
:
AggregationMap
=
dataclasses
.
field
(
default_factory
=
dict
)
)
The aggregation function can be called in the form f(x, axis=axis, **kwargs)
to return the result of reducing an np.ndarray
over an integer valued axis.
It's recommended to explicitly define the aggregation functions instead of
using lambdas.
A dictionary mapping control variable names to
aggregation functions. Defaults to np.sum
if a variable is not
specified.
A dictionary mapping non-media variable names to
aggregation functions. Defaults to np.sum
if a variable is not
specified.
Methods
__eq__
__eq__
(
other
)
Return self==value.
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."],[],[]]