Closed unnamedplay-r closed 6 years ago
Good call. I just inspected the source-code to figure out what it is used for (note that I don't even know what a Barycenter is, so this is just a guess).
if init is None:
if check_equal_size(X_):
barycenter = euclidean_barycenter(X_, weights)
else:
resampled_X = TimeSeriesResampler(sz=X_.shape[1]).fit_transform(X_)
barycenter = euclidean_barycenter(resampled_X, weights)
else:
barycenter = init
So I guess the init-parameter is used when you already pre-computed this guy called Barycenter, else, it will calculate it for you.
Thanks for the report. Should be fixed now.
Thanks @rtavenar!
@GillesVandewiele, you're correct. A barycenter is just a average (aka mean, center) of a time-series sample. The use of barycenter in this package most likely stems from one of the more tractable averaging algorithms that uses the DTW measure, DBA (DTW Barycenter Averaging).
See the docs.