30#ifndef ROOT_TMVA_MethodLD
31#define ROOT_TMVA_MethodLD
58 const TString& theOption =
"LD");
#define ClassDef(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.
virtual void ReadWeightsFromStream(std::istream &)=0
void GetSum(void)
Calculates the matrix transposed(X)*W*X with W being the diagonal weight matrix and X the coordinates...
void GetHelpMessage() const
get help message text
Double_t GetMvaValue(Double_t *err=nullptr, Double_t *errUpper=nullptr)
Returns the MVA classification output.
const Ranking * CreateRanking()
computes ranking of input variables
Int_t fNRegOut
size of the output
Bool_t HasAnalysisType(Types::EAnalysisType type, UInt_t numberClasses, UInt_t numberTargets)
LD can handle classification with 2 classes and regression with one regression-target.
TMatrixD * fCoeffMatx
Matrix of coefficients.
std::vector< std::vector< Double_t > * > * fLDCoeff
LD coefficients.
void DeclareOptions()
MethodLD options.
void GetLDCoeff(void)
Calculates the coefficients used for classification/regression.
virtual const std::vector< Float_t > & GetRegressionValues()
Calculates the regression output.
void ReadWeightsFromStream(std::istream &i)
read LD coefficients from weight file
void ReadWeightsFromXML(void *wghtnode)
read coefficients from xml weight file
TMatrixD * fSumValMatx
Sum of values multiplied by coordinates.
void Init(void)
default initialization called by all constructors
TMatrixD * fSumMatx
Sum of coordinates product matrix.
void ProcessOptions()
this is the preparation for training
void PrintCoefficients(void)
Display the classification/regression coefficients for each variable.
void Train(void)
compute fSumMatx
virtual ~MethodLD(void)
destructor
void AddWeightsXMLTo(void *parent) const
create XML description for LD classification and regression (for arbitrary number of output classes/t...
void MakeClassSpecific(std::ostream &, const TString &) const
write LD-specific classifier response
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.
Ranking for variables in method (implementation)
create variable transformations