all.logging

class all.logging.DummyWriter

Bases: all.logging.Writer

A default Writer object that performs no logging and has no side effects.

add_evaluation(name, value, step='frame')

Log the evaluation metric.

Parameters
  • name (str) – The tag to associate with the loss

  • value (number) – The evaluation metric at the current step

  • step (str, optional) – Which step to use (e.g., “frame” or “episode”)

add_loss(name, value, step='frame')

Log the given loss metric at the current step.

Parameters
  • name (str) – The tag to associate with the loss

  • value (number) – The value of the loss at the current step

  • step (str, optional) – Which step to use (e.g., “frame” or “episode”)

add_scalar(name, value, step='frame')

Log an arbitrary scalar.

Parameters
  • name (str) – The tag to associate with the scalar

  • value (number) – The value of the scalar at the current step

  • step (str, optional) – Which step to use (e.g., “frame” or “episode”)

add_schedule(name, value, step='frame')

Log the current value of a hyperparameter according to some schedule.

Parameters
  • name (str) – The tag to associate with the hyperparameter schedule

  • value (number) – The value of the hyperparameter at the current step

  • step (str, optional) – Which step to use (e.g., “frame” or “episode”)

add_summary(name, mean, std, step='frame')

Log a summary statistic.

Parameters
  • name (str) – The tag to associate with the summary statistic

  • mean (float) – The mean of the statistic at the current step

  • std (float) – The standard deviation of the statistic at the current step

  • step (str, optional) – Which step to use (e.g., “frame” or “episode”)

close()

Close the writer and perform any necessary cleanup.

class all.logging.Writer

Bases: abc.ABC

abstract add_evaluation(name, value, step='frame')

Log the evaluation metric.

Parameters
  • name (str) – The tag to associate with the loss

  • value (number) – The evaluation metric at the current step

  • step (str, optional) – Which step to use (e.g., “frame” or “episode”)

abstract add_loss(name, value, step='frame')

Log the given loss metric at the current step.

Parameters
  • name (str) – The tag to associate with the loss

  • value (number) – The value of the loss at the current step

  • step (str, optional) – Which step to use (e.g., “frame” or “episode”)

abstract add_scalar(name, value, step='frame')

Log an arbitrary scalar.

Parameters
  • name (str) – The tag to associate with the scalar

  • value (number) – The value of the scalar at the current step

  • step (str, optional) – Which step to use (e.g., “frame” or “episode”)

abstract add_schedule(name, value, step='frame')

Log the current value of a hyperparameter according to some schedule.

Parameters
  • name (str) – The tag to associate with the hyperparameter schedule

  • value (number) – The value of the hyperparameter at the current step

  • step (str, optional) – Which step to use (e.g., “frame” or “episode”)

abstract add_summary(name, mean, std, step='frame')

Log a summary statistic.

Parameters
  • name (str) – The tag to associate with the summary statistic

  • mean (float) – The mean of the statistic at the current step

  • std (float) – The standard deviation of the statistic at the current step

  • step (str, optional) – Which step to use (e.g., “frame” or “episode”)

abstract close()

Close the writer and perform any necessary cleanup.

log_dir = 'runs'