def build_estimator(self, model_dir=None, params=None):
    """Produce an Estimator for this Model.

    Args:
      model_dir: passed in to Estimator - location of tmp files used by
        Estimator to checkpoint models
      params: passed in to estimator - dict of model_fn parameters

    Returns:
      a tf.estimator.Estimator
    """
    return tf_estimator.Estimator(
        model_fn=self.build_model_fn(), model_dir=model_dir, params=params)
Produce an Estimator for this Model.

    Args:
      model_dir: passed in to Estimator - location of tmp files used by
        Estimator to checkpoint models
      params: passed in to estimator - dict of model_fn parameters

    Returns:
      a tf.estimator.Estimator
    
language/nql/nql/util.py