class_docstr: Neural Collaborative Filtering (NCF) implementation
  
  :Citation:
  
      He, Xiangnan, Lizi Liao, Hanwang Zhang, Liqiang Nie, Xia Hu, and Tat-Seng Chua. "Neural collaborative filtering."
      In Proceedings of the 26th International Conference on World Wide Web, pp. 173-182. International World Wide Web
      Conferences Steering Committee, 2017. Link: https://www.comp.nus.edu.sg/~xiangnan/papers/ncf.pdf
class_docstr_tok: ["Neural","Collaborative","Filtering","(","NCF",")","implementation",":","Citation",":","He",",","Xiangnan",",","Lizi","Liao",",","Hanwang","Zhang",",","Liqiang","Nie",",","Xia","Hu",",","and","Tat-Seng","Chua",".","``","Neural","collaborative","filtering",".","''","In","Proceedings","of","the","26th","International","Conference","on","World","Wide","Web",",","pp",".","173-182.","International","World","Wide","Web","Conferences","Steering","Committee",",","2017",".","Link",":","https",":","\/\/www.comp.nus.edu.sg\/~xiangnan\/papers\/ncf.pdf"]
docstr: Save model parameters in `dir_name`
  
  Args:
      dir_name (str): directory name, which should be a folder name instead of file name
          we will create a new directory if not existing.
docstr_tok: ["Save","model","parameters","in","`","dir_name","`","Args",":","dir_name","(","str",")",":","directory","name",",","which","should","be","a","folder","name","instead","of","file","name","we","will","create","a","new","directory","if","not","existing","."]
code: def save(self, dir_name):
      """Save model parameters in `dir_name`
  
      Args:
          dir_name (str): directory name, which should be a folder name instead of file name
              we will create a new directory if not existing.
      """
      # save trained model
      if not os.path.exists(dir_name):
          os.makedirs(dir_name)
      saver = tf.compat.v1.train.Saver()
      saver.save(self.sess, os.path.join(dir_name, MODEL_CHECKPOINT))
  
file_path: recommenders/recommenders/models/ncf/ncf_singlenode.py
imports: import os
  import numpy
  import tensorflow
  import tf_slim
  from time import time
  import logging
label_desc: Use image node_id 3 for calling the NCF obj's underlying member method code with example usage: obj.save(dir_name) without return types