Skip to content

Commit 49b811d

Browse files
authored
replace +1 by inf (#297)
1 parent 899ef47 commit 49b811d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

metric_learn/mmc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def _fit_diag(self, pairs, y):
204204
obj = (np.dot(s_sum, w_tmp) + self.diagonal_c *
205205
self._D_objective(neg_pairs, w_tmp))
206206
assert_all_finite(obj)
207-
obj_previous = obj + 1 # just to get the while-loop started
207+
obj_previous = np.inf # just to get the while-loop started
208208

209209
inner_it = 0
210210
while obj < obj_previous:

0 commit comments

Comments
 (0)