MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / reset

Method reset

pager_lib/tqdm/std.py:1360–1380  ·  view source on GitHub ↗

Resets to 0 iterations for repeated use. Consider combining with `leave=True`. Parameters ---------- total : int or float, optional. Total to use for the new bar.

(self, total=None)

Source from the content-addressed store, hash-verified

1358 self.last_print_t = cur_t
1359
1360 def reset(self, total=None):
1361 """
1362 Resets to 0 iterations for repeated use.
1363
1364 Consider combining with `leave=True`.
1365
1366 Parameters
1367 ----------
1368 total : int or float, optional. Total to use for the new bar.
1369 """
1370 self.n = 0
1371 if total is not None:
1372 self.total = total
1373 if self.disable:
1374 return
1375 self.last_print_n = 0
1376 self.last_print_t = self.start_t = self._time()
1377 self._ema_dn = EMA(self.smoothing)
1378 self._ema_dt = EMA(self.smoothing)
1379 self._ema_miniters = EMA(self.smoothing)
1380 self.refresh()
1381
1382 def set_description(self, desc=None, refresh=True):
1383 """

Callers 5

on_train_beginMethod · 0.45
on_epoch_beginMethod · 0.45
handleChangePasswordFunction · 0.45
initTerminalFunction · 0.45
handleChangePasswordFunction · 0.45

Calls 2

refreshMethod · 0.95
EMAClass · 0.85

Tested by

no test coverage detected