def __init__(self, model_dir, every_n_steps=1):
    'Create a FeatureImportanceSummarySaver Hook.\n\n    This hook creates scalar summaries representing feature importance\n    for each feature column during training.\n\n    Args:\n      model_dir: model base output directory.\n      every_n_steps: frequency, in number of steps, for logging summaries.\n\n    Raises:\n      ValueError: If one of the arguments is invalid.\n    '
    if (model_dir is None):
        raise ValueError('model dir must be specified.')
    self._model_dir = model_dir
    self._every_n_steps = every_n_steps
    self._last_triggered_step = None
Create a FeatureImportanceSummarySaver Hook.

This hook creates scalar summaries representing feature importance
for each feature column during training.

Args:
  model_dir: model base output directory.
  every_n_steps: frequency, in number of steps, for logging summaries.

Raises:
  ValueError: If one of the arguments is invalid.
def __init__(self, model_dir, every_n_steps=1):
    'Create a FeatureImportanceSummarySaver Hook.\n\n    This hook creates scalar summaries representing feature importance\n    for each feature column during training.\n\n    Args:\n      model_dir: model base output directory.\n      every_n_steps: frequency, in number of steps, for logging summaries.\n\n    Raises:\n      ValueError: If one of the arguments is invalid.\n    '
    if (model_dir is None):
        raise ValueError('model dir must be specified.')
    self._model_dir = model_dir
    self._every_n_steps = every_n_steps
    self._last_triggered_step = None