Handles EDA report generation and visualization for a Meridian model.
meridian
.
model
.
eda
.
meridian_eda
.
MeridianEDA
(
meridian
:
model
.
Meridian
,
*
,
n_draws_prior
:
int
=
eda_constants
.
DEFAULT_PRIOR_N_DRAW
,
seed
:
int
=
eda_constants
.
DEFAULT_PRIOR_SEED
)
Methods
generate_and_save_report
generate_and_save_report
(
filename
:
str
,
filepath
:
str
)
->
None
Generates and saves a HTML report containing EDA findings.
filename
filepath
plot_controls_and_non_media_boxplot
plot_controls_and_non_media_boxplot
(
geos
:
Geos
=
1
,
max_vars
:
(
int
|
None
)
=
None
)
->
alt
.
Chart
Plots the boxplots for controls and non-media treatments variation.
plot_cost_per_media_unit_time_series
plot_cost_per_media_unit_time_series
(
geos
:
Geos
=
1
,
channels
:
(
Sequence
[
str
]
|
None
)
=
None
)
->
alt
.
Chart
Plots cost per media unit time series for paid media channels.
geos
channels
plot_kpi_boxplot
plot_kpi_boxplot
(
geos
:
Geos
=
1
)
->
alt
.
Chart
Plots the boxplot for KPI variation.
plot_national_kpi_with_knots_time_series
plot_national_kpi_with_knots_time_series
()
->
alt
.
Chart
Plots the national scaled KPI with knots time series plot.
plot_pairwise_correlation
plot_pairwise_correlation
(
geos
:
Geos
=
1
,
max_vars
:
(
int
|
None
)
=
None
)
->
alt
.
Chart
Plots the Pairwise Correlation data.
geos
max_vars
ValueError
max_vars
is less than or equal to 1. plot_population_raw_media_correlation
plot_population_raw_media_correlation
()
->
alt
.
Chart
Plots Spearman correlation between population and raw media units.
eda_engine_module.GeoLevelCheckOnNationalModelError
plot_population_treatment_correlation
plot_population_treatment_correlation
()
->
alt
.
Chart
Plots the Spearman correlation of population vs treatments or controls.
eda_engine_module.GeoLevelCheckOnNationalModelError
plot_prior_mean
plot_prior_mean
()
->
alt
.
Chart
Plots the prior mean of contribution by channel.
eda_engine_module.GeoLevelCheckOnNationalModelError
plot_relative_impression_share_barchart
plot_relative_impression_share_barchart
(
geos
:
Geos
=
1
,
n_channels
:
(
int
|
None
)
=
None
,
ascending
:
bool
=
True
)
->
alt
.
Chart
Plots a bar chart of the relative impression share per media channel.
geos
n_channels
ascending
plot_relative_spend_share_barchart
plot_relative_spend_share_barchart
(
geos
:
Geos
=
1
,
n_channels
:
(
int
|
None
)
=
None
,
ascending
:
bool
=
True
)
->
alt
.
Chart
Plots a bar chart of the relative spend share per paid media channel.
geos
n_channels
ascending
plot_treatments_without_non_media_boxplot
plot_treatments_without_non_media_boxplot
(
geos
:
Geos
=
1
,
max_vars
:
(
int
|
None
)
=
None
)
->
alt
.
Chart
Plots the boxplot for treatments variation, excluding non-media.



