class_docstr: Base class for ranking networks in Keras.
class_docstr_tok: ["Base","class","for","ranking","networks","in","Keras","."]
docstr: Initializes the base ranking network with feature columns.
  
  Args:
    context_feature_columns: (dict) context feature names to columns.
    example_feature_columns: (dict) example feature names to columns.
    name: (string) name of the model.
    **kwargs: keyword arguments.
docstr_tok: ["Initializes","the","base","ranking","network","with","feature","columns",".","Args",":","context_feature_columns",":","(","dict",")","context","feature","names","to","columns",".","example_feature_columns",":","(","dict",")","example","feature","names","to","columns",".","name",":","(","string",")","name","of","the","model",".","*","*","kwargs",":","keyword","arguments","."]
code: def __init__(
      self,
      context_feature_columns=None,
      example_feature_columns=None,
      name="ranking_network",
      **kwargs,
  ):
      """Initializes the base ranking network with feature columns.
  
      Args:
        context_feature_columns: (dict) context feature names to columns.
        example_feature_columns: (dict) example feature names to columns.
        name: (string) name of the model.
        **kwargs: keyword arguments.
      """
      super(RankingNetwork, self).__init__(name=name, **kwargs)
      self._context_feature_columns = context_feature_columns or {}
      self._example_feature_columns = example_feature_columns or {}
      self._listwise_dense_layer = feature.EncodeListwiseFeatures(
          context_feature_columns=self._context_feature_columns,
          example_feature_columns=self._example_feature_columns,
      )
  
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 1 to create a new RankingNetwork object from inherited base classes: tf.keras.layers with example: obj = RankingNetwork(context_feature_columns, example_feature_columns, name)