Skip to content

Commit 3e56870

Browse files
committed
display the loss with 'live_info'
1 parent b44ff41 commit 3e56870

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

adaptive/notebook_integration.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,9 @@ def _info_html(runner):
174174
with suppress(Exception):
175175
info.append(('# of points', runner.learner.npoints))
176176

177+
with suppress(Exception):
178+
info.append(('latest loss', f'{runner.learner._cache["loss"]:.3f}'))
179+
177180
template = '<dt>{}</dt><dd>{}</dd>'
178181
table = '\n'.join(template.format(k, v) for k, v in info)
179182

0 commit comments

Comments
 (0)