MCPcopy
hub / github.com/DLR-RM/stable-baselines3 / record

Method record

stable_baselines3/common/logger.py:506–517  ·  view source on GitHub ↗

Log a value of some diagnostic Call this once for each diagnostic quantity, each iteration If called many times, last value will be used. :param key: save to log this key :param value: save to log this value :param exclude: outputs to be excluded

(self, key: str, value: Any, exclude: str | tuple[str, ...] | None = None)

Source from the content-addressed store, hash-verified

504 return (string_or_tuple,)
505
506 def record(self, key: str, value: Any, exclude: str | tuple[str, ...] | None = None) -> None:
507 """
508 Log a value of some diagnostic
509 Call this once for each diagnostic quantity, each iteration
510 If called many times, last value will be used.
511
512 :param key: save to log this key
513 :param value: save to log this value
514 :param exclude: outputs to be excluded
515 """
516 self.name_to_value[key] = value
517 self.name_to_excluded[key] = self.to_tuple(exclude)
518
519 def record_mean(self, key: str, value: float | None, exclude: str | tuple[str, ...] | None = None) -> None:
520 """

Callers 12

trainMethod · 0.80
trainMethod · 0.80
trainMethod · 0.80
trainMethod · 0.80
_on_stepMethod · 0.80
trainMethod · 0.80
_update_learning_rateMethod · 0.80
_on_stepMethod · 0.80
dump_logsMethod · 0.80
dump_logsMethod · 0.80
_on_training_startMethod · 0.80
test_mainFunction · 0.80

Calls 1

to_tupleMethod · 0.95

Tested by 2

_on_training_startMethod · 0.64
test_mainFunction · 0.64