class_docstr: Base class inherited by all model classes.
  
  A model class implements interfaces that are compatible with
  :tf_main:`TF Estimator <estimator/Estimator>`. In particular,
  :meth:`_build` implements the
  :tf_main:`model_fn <estimator/Estimator#__init__>` interface; and
  :meth:`get_input_fn` is for the :attr:`input_fn` interface.
  
  .. document private functions
  .. automethod:: _build
code: def __init__(self, hparams=None):
      self._hparams = HParams(
          hparams, self.default_hparams(), allow_new_hparam=True
      )
  
file_path: texar/texar/tf/models/model_base.py
imports: from texar.tf.hyperparams import HParams
label_desc: Use image node_id 1 to create a new ModelBase object from inherited base classes: object with example: obj = ModelBase(hparams)