17 handles data, necessary for the training
20 def __init__(self, train_x, train_y, valid_x, valid_y, batch_size, seed=None, epoch_random_shuffle=True):
68 checks for a binary classification problem
69 transforms the two
class labels to {0,1}
72 assert len(np.unique(self.
train_y)) == 2
74 assert np.array_equal(np.unique(self.
train_y), np.unique(self.
valid_y))
92 iterator to provide training batches
108 stub class just for initializing in
basf2 begin_run
111 def __init__(self, batch_size, feature_number, event_number, train_fraction):
113 declare for initialization required batch parameters
train_events
number of training training events
def __init__(self, batch_size, feature_number, event_number, train_fraction)
feature_number
feature number
valid_events
number of validation events
epoch_random_shuffle
bool, enables shuffling
random_state
set random generator
valid_y
validation targets
train_events
number of training events
def __init__(self, train_x, train_y, valid_x, valid_y, batch_size, seed=None, epoch_random_shuffle=True)
seed
random generator seed
def sanitize_labels(self)
batch_train_y
np ndarray for training batch of targets
valid_x
validation features
train_idx
indices required for shuffling
feature_number
number of features
valid_events
number of validation events
batch_train_x
np ndarray for training batch features