Dao¶
Abstract class interfacing any kind of underlying data source.
Source code in epstats/toolkit/dao.py
class Dao:
"""
Abstract class interfacing any kind of underlying data source.
"""
def get_unit_goals(self, experiment: Experiment) -> pd.DataFrame:
"""
Get goals data pre-aggregated by `exp_variant_id`, `unit_type`, `agg_type`, `goal`,
`unit_id` and any dimension columns (in case of dimensional metrics).
See [`Experiment.evaluate_by_unit`][epstats.toolkit.experiment.Experiment.evaluate_by_unit] for column
descriptions and example result.
"""
pass
def get_agg_goals(self, experiment: Experiment) -> pd.DataFrame:
"""
Get goals data pre-aggregated by `exp_variant_id`, `unit_type`, `agg_type`, `goal`,
`unit_id` and any dimension columns (in case of dimensional metrics)
See [`Experiment.evaluate_agg`][epstats.toolkit.experiment.Experiment.evaluate_agg] for column
descriptions and example result.
"""
pass
def close(self) -> None:
"""
Close underlying data source connection and frees resources (if any).
"""
pass
close(self)
¶
Close underlying data source connection and frees resources (if any).
Source code in epstats/toolkit/dao.py
def close(self) -> None:
"""
Close underlying data source connection and frees resources (if any).
"""
pass
get_agg_goals(self, experiment)
¶
Get goals data pre-aggregated by exp_variant_id
, unit_type
, agg_type
, goal
,
unit_id
and any dimension columns (in case of dimensional metrics)
See Experiment.evaluate_agg
for column
descriptions and example result.
Source code in epstats/toolkit/dao.py
def get_agg_goals(self, experiment: Experiment) -> pd.DataFrame:
"""
Get goals data pre-aggregated by `exp_variant_id`, `unit_type`, `agg_type`, `goal`,
`unit_id` and any dimension columns (in case of dimensional metrics)
See [`Experiment.evaluate_agg`][epstats.toolkit.experiment.Experiment.evaluate_agg] for column
descriptions and example result.
"""
pass
get_unit_goals(self, experiment)
¶
Get goals data pre-aggregated by exp_variant_id
, unit_type
, agg_type
, goal
,
unit_id
and any dimension columns (in case of dimensional metrics).
See Experiment.evaluate_by_unit
for column
descriptions and example result.
Source code in epstats/toolkit/dao.py
def get_unit_goals(self, experiment: Experiment) -> pd.DataFrame:
"""
Get goals data pre-aggregated by `exp_variant_id`, `unit_type`, `agg_type`, `goal`,
`unit_id` and any dimension columns (in case of dimensional metrics).
See [`Experiment.evaluate_by_unit`][epstats.toolkit.experiment.Experiment.evaluate_by_unit] for column
descriptions and example result.
"""
pass