49 fRankingDiscriminatorName( "" ),
60 fRankingDiscriminatorName( rankingDiscriminatorName ),
97 for (
UInt_t i=0; i<sizeofarray; i++) {
98 for (
UInt_t j=sizeofarray-1; j>i; j--) {
114 for (std::vector<Rank>::const_iterator ir =
fRanking.begin(); ir !=
fRanking.end(); ir++ )
115 if ((*ir).GetVariable().Length() > maxL) maxL = (*ir).GetVariable().Length();
119 Log() <<
kHEADER <<
"Ranking result (top variable is best ranked)" <<
Endl;
121 Log() <<
kINFO << std::setiosflags(std::ios::left)
122 << std::setw(5) <<
"Rank : " 123 << std::setw(maxL+0) <<
"Variable " 124 << std::resetiosflags(std::ios::right)
127 for (std::vector<Rank>::const_iterator ir =
fRanking.begin(); ir !=
fRanking.end(); ir++ ) {
129 <<
Form(
"%4i : ",(*ir).GetRank() )
130 << std::setw(
TMath::Max(maxL+0,9)) << (*ir).GetVariable().Data()
131 <<
Form(
" : %3.3e", (*ir).GetRankValue() ) << Endl;
142 : fVariable( variable ),
143 fRankValue( rankValue ),
MsgLogger & Endl(MsgLogger &ml)
Bool_t operator<(const Rank &other) const
comparison operator <
virtual ~Rank()
destructor
void SetContext(const TString &context)
std::vector< std::vector< double > > Data
std::vector< TMVA::Rank > fRanking
Rank(const TString &variable, Double_t rankValue)
constructor
char * Form(const char *fmt,...)
virtual void Print() const
get maximum length of variable names
virtual ~Ranking()
destructor
Bool_t operator>(const Rank &other) const
comparison operator >
void SetSource(const std::string &source)
Abstract ClassifierFactory template that handles arbitrary types.
Ranking()
default constructor
virtual void AddRank(const Rank &rank)
Add a new rank take ownership of it.
Short_t Max(Short_t a, Short_t b)
MsgLogger & Log() const
message logger
const char * Data() const
TString fRankingDiscriminatorName