chainer.Summary

class chainer.Summary[source]

Online summarization of a sequence of scalars.

Summary computes the statistics of given scalars online.

Methods

add(value, weight=1)[source]

Adds a scalar value.

Parameters
  • value – Scalar value to accumulate. It is either a NumPy scalar or a zero-dimensional array (on CPU or GPU).

  • weight – An optional weight for the value. It is a NumPy scalar or a zero-dimensional array (on CPU or GPU). Default is 1 (integer).

compute_mean()[source]

Computes the mean.

make_statistics()[source]

Computes and returns the mean and standard deviation values.

Returns

Mean and standard deviation values.

Return type

tuple

serialize(serializer)[source]
__eq__(value, /)

Return self==value.

__ne__(value, /)

Return self!=value.

__lt__(value, /)

Return self<value.

__le__(value, /)

Return self<=value.

__gt__(value, /)

Return self>value.

__ge__(value, /)

Return self>=value.