Returns self.
if isinstance(self.group, Euclidean):
mean = linear_mean(points=X, weights=weights)[0]
// TODO(nguigs): use closed form expression for special euclidean
// group as before PR /릱
else:
mean = _default_gradient_descent(
points=X, weights=weights, group=self.group,
max_iter=self.max_iter,
epsilon=self.epsilon,
step=self.step,
verbose=self.verbose)
self.estimate_ = mean
return self
After Change
Returns self.
if isinstance(self.group, Euclidean):
mean = linear_mean(points=X, weights=weights)
// TODO(nguigs): use closed form expression for special euclidean
// group as before PR /릱
else:
mean = _default_gradient_descent(
points=X, weights=weights, group=self.group,
max_iter=self.max_iter,
epsilon=self.epsilon,
step=self.step,
verbose=self.verbose)
self.estimate_ = mean
return self