Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 445c6f1

Browse filesBrowse files
committed
improve comment
1 parent d401cbb commit 445c6f1
Copy full SHA for 445c6f1

File tree

1 file changed

+3
-1
lines changed
Filter options

1 file changed

+3
-1
lines changed

‎adaptive/learner/new_learnerND.py

Copy file name to clipboardExpand all lines: adaptive/learner/new_learnerND.py
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,9 @@ def tell_many(self, xs, ys):
368368
)
369369
subdomains_to_update -= to_add
370370
for subdomain in subdomains_to_update:
371-
del self.losses[subdomain] # Force loss recomputation
371+
# We have more data, so we must force a loss recomputation by
372+
# removing the subdomain from the loss cache.
373+
del self.losses[subdomain]
372374
self.queue.update(subdomain, priority=self.priority(subdomain))
373375

374376
def _update_codomain_bounds(self, ys):

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.