Skip to content

Commit b0562b3

Browse files
Minor style tweaks
1 parent 0649dcf commit b0562b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

metric_learn/scml.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ def _fit(self, triplets, basis=None, n_basis=None):
7676

7777
n_triplets = triplets.shape[0]
7878

79-
if self.warm_start is False or not hasattr(self, "w_"):
79+
if not self.warm_start or not hasattr(self, "w_"):
8080
# weight vector
8181
self.w_ = np.zeros((1, n_basis))
82-
# avarage obj gradient wrt weights
82+
# average obj gradient wrt weights
8383
self.avg_grad_w_ = np.zeros((1, n_basis))
8484
# l2 norm in time of all obj gradients wrt weights
8585
self.ada_grad_w_ = np.zeros((1, n_basis))

0 commit comments

Comments
 (0)