Skip to content

Commit 2f70e6a

Browse files
committed
fix listings formatting
1 parent c69c3f3 commit 2f70e6a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

paper.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,8 @@ while queue.max_priority() < target_loss:
163163
if loss.n_neighbors > 0:
164164
subdomains_to_update = set()
165165
for d in new_subdomains:
166-
subdomains_to_update.update(domain.neighbors(d, loss.n_neighbors))
166+
neighbors = domain.neighbors(d, loss.n_neighbors)
167+
subdomains_to_update.update(neighbors)
167168
subdomains_to_update -= set(new_subdomains)
168169
for subdomain in subdomains_to_update:
169170
queue.update(subdomain, priority=loss(domain, subdomain, data))
@@ -228,7 +229,8 @@ while executor.n_outstanding_points > 0:
228229
if loss.n_neighbors > 0:
229230
subdomains_to_update = set()
230231
for d in new_subdomains:
231-
subdomains_to_update.update(domain.neighbors(d, loss.n_neighbors))
232+
neighbors = domain.neighbors(d, loss.n_neighbors)
233+
subdomains_to_update.update(neighbors)
232234
subdomains_to_update -= set(new_subdomains)
233235
for subdomain in subdomains_to_update:
234236
queue.update(subdomain, priority=scaled_loss(domain, subdomain, data))

0 commit comments

Comments
 (0)