def config_model(self, model, feature_ph_dict, labels_ph, params=None):
    """Configure an existing Model.

    model.context should be already be set when this is called.

    Args:
      model: model to configure
      feature_ph_dict: maps feature names to placeholders that will hold the
        corresponding inputs.
      labels_ph: a placeholder that will hold the target labels
      params: optional parameters to be passed to the config_* methods.
    """

    self.config_model_prediction(model, feature_ph_dict, params=params)
    self.config_model_training(model, labels_ph, params=params)
    self.config_model_evaluation(model, labels_ph, params=params)
Configure an existing Model.

    model.context should be already be set when this is called.

    Args:
      model: model to configure
      feature_ph_dict: maps feature names to placeholders that will hold the
        corresponding inputs.
      labels_ph: a placeholder that will hold the target labels
      params: optional parameters to be passed to the config_* methods.
    
language/nql/nql/util.py