class_docstr: Computes the regret with respect to a baseline.
class_docstr_tok: ["Computes","the","regret","with","respect","to","a","baseline","."]
code: def result(self):
      return tf.identity(self.regret, name=self.name)
  
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  from typing import Callable, Optional, Text
  import gin
  import tensorflow
  from tf_agents.bandits.policies import constraints
  from tf_agents.bandits.specs import utils
  from tf_agents.metrics import tf_metric
  from tf_agents.typing import types
  from tf_agents.utils import common
label_desc: Use image node_id 3 for calling the RegretMetric obj's underlying member method code with example usage: obj.result() and returns: tf