_DummyMetric¶
- class _DummyMetric(mode: str = MetricAggregationMode.per_segment, **kwargs)[source]¶
Bases:
etna.metrics.base.Metric
Dummy metric that is created only for implementation of BasePipeline._forecast_prediction_interval.
Init Metric.
- Parameters
metric_fn – functional metric
mode (str) –
“macro” or “per-segment”, way to aggregate metric values over segments:
if “macro” computes average value
if “per-segment” – does not aggregate metrics
kwargs – functional metric’s params
- Raises
NotImplementedError: – it non existent mode is used
- Inherited-members
Methods
set_params
(**params)Return new object instance with modified parameters.
to_dict
()Collect all information about etna object in dict.
Attributes
Whether higher metric value is better.
name
Name of the metric for representation.
- property greater_is_better: bool¶
Whether higher metric value is better.