class_docstr: Base Metric Class.
  
  Metric class is meant to be used by TFLearn models class. It can be
  first initialized with desired parameters, and a model class will
  build it later using the given network output and targets.
  
  Attributes:
      tensor: `Tensor`. The metric tensor.
class_docstr_tok: ["Base","Metric","Class",".","Metric","class","is","meant","to","be","used","by","TFLearn","models","class",".","It","can","be","first","initialized","with","desired","parameters",",","and","a","model","class","will","build","it","later","using","the","given","network","output","and","targets",".","Attributes",":","tensor",":","`","Tensor","`",".","The","metric","tensor","."]
docstr: build.
  
  Build metric method, with common arguments to all Metrics.
  
  Arguments:
      prediction: `Tensor`. The network to perform prediction.
      targets: `Tensor`. The targets (labels).
      inputs: `Tensor`. The input data.
docstr_tok: ["build",".","Build","metric","method",",","with","common","arguments","to","all","Metrics",".","Arguments",":","prediction",":","`","Tensor","`",".","The","network","to","perform","prediction",".","targets",":","`","Tensor","`",".","The","targets","(","labels",")",".","inputs",":","`","Tensor","`",".","The","input","data","."]
code: def build(self, predictions, targets, inputs):
      """build.
  
      Build metric method, with common arguments to all Metrics.
  
      Arguments:
          prediction: `Tensor`. The network to perform prediction.
          targets: `Tensor`. The targets (labels).
          inputs: `Tensor`. The input data.
  
      """
      raise NotImplementedError
  
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 2 for calling the Metric obj's underlying member method code with example usage: obj.build(predictions, targets, inputs) without return types