 |
Belle II Software
release-05-01-25
|
11 #include <mva/methods/Regression.h>
19 Dataset(general_options), m_cutValue(cutValue), m_childDataSet(dataset)
std::vector< float > getSpectator(unsigned int iSpectator) override
Return a specific spectator from the real dataset.
Abstract base class of all Datasets given to the MVA interface The current event can always be access...
RegressionDataSet(const GeneralOptions &general_options, Dataset *dataSet, double cutValue)
Create a new regression data set out of the general options, a pointer to the real dataset and the cu...
virtual unsigned int getNumberOfFeatures() const =0
Returns the number of features in this dataset.
virtual void loadEvent(unsigned int iEvent)=0
Load the event number iEvent.
virtual std::vector< float > getFeature(unsigned int iFeature)
Returns all values of one feature in a std::vector<float>
virtual std::vector< float > getSpectator(unsigned int iSpectator)
Returns all values of one spectator in a std::vector<float>
virtual std::vector< float > getWeights()
Returns all weights.
virtual unsigned int getNumberOfSpectators() const =0
Returns the number of spectators in this dataset.
std::vector< float > getWeights() override
Return the weights from the real dataset.
unsigned int getNumberOfFeatures() const override
Return the number of features from the real dataset.
std::vector< float > getFeature(unsigned int iFeature) override
Return a specific feature from the real dataset.
std::vector< float > getTargets() override
Return the targets from the real dataset.
Dataset * m_childDataSet
The real data set (our child)
Abstract base class for different kinds of events.
unsigned int getNumberOfEvents() const override
Return the number of events from the real dataset.
std::vector< float > m_input
Contains all feature values of the currently loaded event.
std::vector< float > m_spectators
Contains all spectators values of the currently loaded event.
General options which are shared by all MVA trainings.
double m_cutValue
The cut value.
unsigned int getNumberOfSpectators() const override
Return the number of spectators from the real dataset.
virtual std::vector< float > getTargets()
Returns all targets.
float m_weight
Contains the weight of the currently loaded event.
bool m_isSignal
Defines if the currently loaded event is signal or background.
virtual unsigned int getNumberOfEvents() const =0
Returns the number of events in this dataset.
float m_target
Contains the target value of the currently loaded event.
void loadEvent(unsigned int iEvent) override
Load an event. Sets all internal variables and sets the isSignal variable dependent on the cut value.