class_docstr: Standard Error.
  
  Computes coefficient of determination. Useful to evaluate a linear
  regression.
  
  Examples:
      ```python
      # To be used with TFLearn estimators
      r2 = R2()
      regression = regression(net, metric=r2)
      ```
  
  Arguments:
      name: The name to display.
class_docstr_tok: ["Standard","Error",".","Computes","coefficient","of","determination",".","Useful","to","evaluate","a","linear","regression",".","Examples",":","``","`","python","#","To","be","used","with","TFLearn","estimators","r2","=","R2","(",")","regression","=","regression","(","net",",","metric=r2",")","``","`","Arguments",":","name",":","The","name","to","display","."]
code: def __init__(self, name=None):
      super(R2, self).__init__(name)
      self.name = "R2" if not name else name
  
imports: from __future__ import division, print_function, absolute_import
  from .utils import get_from_module
  import tensorflow.compat.v1
label_desc: Use image node_id 1 to create a new R2 object from inherited base classes: Metric with example: obj = R2(name)