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