Skip to content

Create function to batch/shuffle training data.

  • Concat feature set and class label (X, y) into single dataframe.
  • Shuffle rows.
  • Must have a parameter for batch size and number of epochs.
  • Split X, y sets.
  • Returns a tuple of shuffled X, y training data.
Edited by pjm363 (Philip Monaco)