stub class just for initializing in basf2 begin_run
Definition at line 106 of file TfData.py.
◆ __init__()
def __init__ |
( |
|
self, |
|
|
|
batch_size, |
|
|
|
feature_number, |
|
|
|
event_number, |
|
|
|
train_fraction |
|
) |
| |
declare for initialization required batch parameters
Definition at line 111 of file TfData.py.
111 def __init__(self, batch_size, feature_number, event_number, train_fraction):
112 """
113 declare for initialization required batch parameters
114 """
115
116 self.batch_size = batch_size
117
118
119 self.feature_number = feature_number
120
121
122 self.batches = (event_number * train_fraction) // self.batch_size
123
124
125 self.train_events = int(train_fraction * event_number)
126
127
128 self.valid_events = int((1 - train_fraction) * event_number)
◆ batch_size
◆ batches
◆ feature_number
◆ train_events
number of training training events
Definition at line 125 of file TfData.py.
◆ valid_events
number of validation events
Definition at line 128 of file TfData.py.
The documentation for this class was generated from the following file: