def get_hyperparams()

in recommended-item-search/softmax_main.py [0:0]


def get_hyperparams():
  """Get hyper params which are used in model function."""
  return tf.contrib.training.HParams(
      metadata_path=FLAGS.metadata_path,
      hidden_dims=[int(dim) for dim in FLAGS.hidden_dims],
      activation_name=FLAGS.activation,
      learning_rate=FLAGS.learning_rate,
      lr_decay_steps=FLAGS.lr_decay_steps,
      lr_decay_rate=FLAGS.lr_decay_rate,
  )