class_docstr: Restricted  Boltzmann Machine
class_docstr_tok: ["Restricted","Boltzmann","Machine"]
docstr: Define the data pipeline
docstr_tok: ["Define","the","data","pipeline"]
code: def data_pipeline(self):
      """Define the data pipeline"""
  
      # placeholder for the batch_size
      self.batch_size = tf.compat.v1.placeholder(tf.int64)
  
      # Create the data pipeline for faster training
      self.dataset = tf.data.Dataset.from_tensor_slices(self.vu)
  
      self.dataset = self.dataset.shuffle(
          buffer_size=50, reshuffle_each_iteration=True, seed=self.seed
      )  # randomize the batch
  
      self.dataset = self.dataset.batch(
          batch_size=self.batch_size
      ).repeat()
  
      # define iterator
      self.iter = tf.compat.v1.data.make_initializable_iterator(
          self.dataset
      )
      self.v = self.iter.get_next()
  
imports: import numpy
  import tensorflow
  import logging
  import os
  from pathlib import Path
label_desc: Use image node_id 13 for calling the RBM obj's underlying member method code with example usage: obj.data_pipeline() without return types