EuclideanDistance

class EuclideanDistance(trim_series: bool = True)[source]

Bases: etna.clustering.distances.base.Distance

Euclidean distance handler.

Init EuclideanDistance.

Parameters

trim_series (bool) – if True, compare parts of series with common timestamp

Inherited-members

Methods

get_average(ts, **kwargs)

Get series that minimizes squared distance to given ones according to the Distance.

set_params(**params)

Return new object instance with modified parameters.

to_dict()

Collect all information about etna object in dict.