Belle II Software light-2406-ragdoll
TfDataBasf2Stub Class Reference

Public Member Functions

def __init__ (self, batch_size, feature_number, event_number, train_fraction)
 

Public Attributes

 batch_size
 batch size
 
 feature_number
 feature number
 
 batches
 number of batches
 
 train_events
 number of training training events
 
 valid_events
 number of validation events
 

Detailed Description

stub class just for initializing in basf2 begin_run

Definition at line 106 of file TfData.py.

Constructor & Destructor Documentation

◆ __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)

Member Data Documentation

◆ batch_size

batch_size

batch size

Definition at line 116 of file TfData.py.

◆ batches

batches

number of batches

Definition at line 122 of file TfData.py.

◆ feature_number

feature_number

feature number

Definition at line 119 of file TfData.py.

◆ train_events

train_events

number of training training events

Definition at line 125 of file TfData.py.

◆ valid_events

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: