14 from __future__
import division, print_function, generators
21 handles data, necessary for the training
24 def __init__(self, train_x, train_y, valid_x, valid_y, batch_size, seed=None, epoch_random_shuffle=True):
26 declaration of class variables
72 checks for a binary classification problem
73 transforms the two class labels to {0,1}
76 assert len(np.unique(self.
train_y)) == 2
78 assert np.array_equal(np.unique(self.
train_y), np.unique(self.
valid_y))
96 iterator to provide training batches
112 stub class just for initializing in basf2 begin_run
115 def __init__(self, batch_size, feature_number, event_number, train_fraction):
117 declare for initialization required batch parameters