class_docstr: Abstract class for model trainers.
class_docstr_tok: ["Abstract","class","for","model","trainers","."]
code: def __init__(
      self,
      model,
      abs_loss_chg_tol=1e-10,
      rel_loss_chg_tol=1e-5,
      loss_chg_iter_below_tol=10,
  ):
      self.model = model
      self.abs_loss_chg_tol = abs_loss_chg_tol
      self.rel_loss_chg_tol = rel_loss_chg_tol
      self.loss_chg_iter_below_tol = loss_chg_iter_below_tol
  
file_path: neural-structured-learning/research/gam/gam/trainer/trainer_base.py
imports: from __future__ import absolute_import
  from __future__ import division
  from __future__ import print_function
  import abc
  import numpy
  import tensorflow
label_desc: Use image node_id 1 to create a new Trainer object from inherited base classes: object with example: obj = Trainer(model, abs_loss_chg_tol, rel_loss_chg_tol, loss_chg_iter_below_tol)