class_docstr: Base class for univariate ranking network.
class_docstr_tok: ["Base","class","for","univariate","ranking","network","."]
docstr: Univariate scoring of context and one example to generate a score.
  
  Args:
    context_features: (dict) context feature names to 2D tensors of shape
      [batch_size, ...].
    example_features: (dict) example feature names to 2D tensors of shape
      [batch_size, ...].
    training: (bool) whether in training or inference mode.
  
  Returns:
    (tf.Tensor) A score tensor of shape [batch_size, 1].
docstr_tok: ["Univariate","scoring","of","context","and","one","example","to","generate","a","score",".","Args",":","context_features",":","(","dict",")","context","feature","names","to","2D","tensors","of","shape","[","batch_size",",","...","]",".","example_features",":","(","dict",")","example","feature","names","to","2D","tensors","of","shape","[","batch_size",",","...","]",".","training",":","(","bool",")","whether","in","training","or","inference","mode",".","Returns",":","(","tf.Tensor",")","A","score","tensor","of","shape","[","batch_size",",","1","]","."]
code: def score(
      self, context_features=None, example_features=None, training=None
  ):
      """Univariate scoring of context and one example to generate a score.
  
      Args:
        context_features: (dict) context feature names to 2D tensors of shape
          [batch_size, ...].
        example_features: (dict) example feature names to 2D tensors of shape
          [batch_size, ...].
        training: (bool) whether in training or inference mode.
  
      Returns:
        (tf.Tensor) A score tensor of shape [batch_size, 1].
      """
      raise NotImplementedError(
          "Calling an abstract method, "
          "tfr.keras.UnivariateRankingModel.score()."
      )
  
imports: import abc
  import six
  import tensorflow.compat.v2
  from tensorflow_ranking.python import utils
  from tensorflow_ranking.python.keras import feature
label_desc: Use image node_id 2 for calling the UnivariateRankingNetwork obj's underlying member method code with example usage: obj.score(context_features, example_features, training) without return types