class_docstr: DeCov loss (https://arxiv.org/abs/1511.06068)
class_docstr_tok: ["DeCov","loss","(","https",":","\/\/arxiv.org\/abs\/1511.06068",")"]
code: def __init__(self, reduce="half_squared_sum"):
      self.h_centered = None
      self.covariance = None
      if reduce not in ("half_squared_sum", "no"):
          raise ValueError(
              "only 'half_squared_sum' and 'no' are valid "
              "for 'reduce', but '%s' is given" % reduce
          )
      self.reduce = reduce
  
file_path: chainer/chainer/functions/loss/decov.py
imports: from chainer import backend
  from chainer import function
  from chainer import utils
  from chainer.utils import type_check
label_desc: Use image node_id 1 to create a new DeCov object from inherited base classes: function with example: obj = DeCov(reduce)