 |
Belle II Software
release-05-01-25
|
20 void addSample(
const std::vector<float>& input,
const std::vector<float>& target)
ClassDef(GRLMLPData, 1)
Needed to make the ROOT object storable.
Struct for training data of a single MLP for the neuro trigger.
const std::vector< float > & getTarget(unsigned i) const
get target value of sample i
unsigned nSamples() const
get number of samples (same for input and target)
std::vector< std::vector< float > > inputSamples
list of input vectors for network training.
Abstract base class for different kinds of events.
std::vector< std::vector< float > > targetSamples
list of target values for network training.
GRLMLPData()
default constructor.
~GRLMLPData()
destructor, empty because we don't allocate memory anywhere.
const std::vector< float > & getInput(unsigned i) const
get input vector of sample i
void addSample(const std::vector< float > &input, const std::vector< float > &target)
add a pair of input and target