nsml.report

nsml.report(summary=False, scope=None, **kwargs)

It is used to record the variation of variable and to draw graph on scalar, tensorboard, visdom on the web.

Parameters
  • summary (bool or None) – If the value is True, nsml ps will show the value.

  • scope – If you give value with locals(), the scope value can be accessed with the nsml exec. Alternatively, you can access the session with eval in python.

  • step – Sets the x-axis value to be displayed in the scalar graph.

  • **kwargs (str or None) – Enter the variable to be tracked in key=value format. (ex. loss=loss) (walltime key value is automatically set to time.time() internally, so if walltime = variable is passed, value is overwritten with time.time() value)

Raises

TypeError – If you pass a value that can not be json serializable to the variable to be tracked (ex. Tensortype), an error occurs