0ff34ac18a47cdfa9878310b12ff6b5648106bd8,geomstats/learning/frechet_mean.py,,_adaptive_gradient_descent,#Any#Any#Any#Any#Any#Any#Any#,206
Before Change
logs = metric.log(point=points, base_point=next_mean)
next_tangent_mean = gs.einsum("nk,nj->j", weights, logs)
next_tangent_mean /= sum_weights
norm_next_tangent_mean = gs.linalg.norm(next_tangent_mean)
if norm_next_tangent_mean < norm_current_tangent_mean:
current_mean = next_mean
current_tangent_mean = next_tangent_mean
norm_current_tangent_mean = norm_next_tangent_mean
After Change
current_mean = next_mean
current_tangent_mean = next_tangent_mean
sq_norm_current_tangent_mean = sq_norm_next_tangent_mean
tau = min(TAU_MAX, TAU_MUL_UP * tau)
else:
tau = max(TAU_MIN, TAU_MUL_DOWN * tau)
if iteration == n_max_iterations:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances
Project Name: geomstats/geomstats
Commit Name: 0ff34ac18a47cdfa9878310b12ff6b5648106bd8
Time: 2020-04-02
Author: 59821822+xpennec@users.noreply.github.com
File Name: geomstats/learning/frechet_mean.py
Class Name:
Method Name: _adaptive_gradient_descent
Project Name: rtavenar/tslearn
Commit Name: 46cb0b5b2cf2d836a2cf96be95d4e25a4004675e
Time: 2018-10-22
Author: guillaume.androz@gmail.com
File Name: tslearn/clustering.py
Class Name: KShape
Method Name: _fit_one_init
Project Name: rtavenar/tslearn
Commit Name: 4e5383c92bf8cb6068439780fa91956d1e00df7c
Time: 2020-03-27
Author: francois-33
File Name: tslearn/nonmyopic.py
Class Name: NonMyopicEarlyClassification
Method Name: get_avg_dist