30#ifndef ROOT_TMVA_MethodLD
31#define ROOT_TMVA_MethodLD
70 void Train(
void )
override;
104 void Init(
void )
override;
#define ClassDefOverride(name, id)
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
Class that contains all the data information.
Virtual base Class for all MVA method.
void ReadWeightsFromStream(std::istream &) override=0
void GetSum(void)
Calculates the matrix transposed(X)*W*X with W being the diagonal weight matrix and X the coordinates...
void ReadWeightsFromStream(std::istream &i) override
read LD coefficients from weight file
Int_t fNRegOut
size of the output
void Init(void) override
default initialization called by all constructors
TMatrixD * fCoeffMatx
Matrix of coefficients.
MethodLD(const TString &jobName, const TString &methodTitle, DataSetInfo &dsi, const TString &theOption="LD")
standard constructor for the LD
std::vector< std::vector< Double_t > * > * fLDCoeff
LD coefficients.
Bool_t HasAnalysisType(Types::EAnalysisType type, UInt_t numberClasses, UInt_t numberTargets) override
LD can handle classification with 2 classes and regression with one regression-target.
void MakeClassSpecific(std::ostream &, const TString &) const override
write LD-specific classifier response
void ReadWeightsFromXML(void *wghtnode) override
read coefficients from xml weight file
void GetLDCoeff(void)
Calculates the coefficients used for classification/regression.
void GetHelpMessage() const override
get help message text
const Ranking * CreateRanking() override
computes ranking of input variables
void DeclareOptions() override
MethodLD options.
TMatrixD * fSumValMatx
Sum of values multiplied by coordinates.
const std::vector< Float_t > & GetRegressionValues() override
Calculates the regression output.
Double_t GetMvaValue(Double_t *err=nullptr, Double_t *errUpper=nullptr) override
Returns the MVA classification output.
TMatrixD * fSumMatx
Sum of coordinates product matrix.
void PrintCoefficients(void)
Display the classification/regression coefficients for each variable.
void AddWeightsXMLTo(void *parent) const override
create XML description for LD classification and regression (for arbitrary number of output classes/t...
virtual ~MethodLD(void)
destructor
void Train(void) override
compute fSumMatx
void InitMatrices(void)
Initialization method; creates global matrices and vectors.
void GetSumVal(void)
Calculates the vector transposed(X)*W*Y with Y being the target vector.
void ProcessOptions() override
this is the preparation for training
Ranking for variables in method (implementation)
create variable transformations