29 #ifndef ROOT_TMVA_MsgLogger
32 #ifndef ROOT_TMVA_VariableRearrangeTransform
35 #ifndef ROOT_TMVA_Tools
38 #ifndef ROOT_TMVA_DataSet
47 TMVA::VariableRearrangeTransform::VariableRearrangeTransform( DataSetInfo& dsi )
48 : VariableTransformBase( dsi, Types::kRearranged, "Rearrange" )
70 if (!IsEnabled() || IsCreated())
return kTRUE;
72 UInt_t nvars = 0, ntgts = 0, nspcts = 0;
73 CountVariableTypes( nvars, ntgts, nspcts );
74 if (ntgts>0)
Log() <<
kFATAL <<
"Targets used in Rearrange-transformation." <<
Endl;
84 if (!IsEnabled())
return ev;
87 if (!IsCreated())
Log() <<
kFATAL <<
"Transformation not yet created" <<
Endl;
89 if (fTransformedEvent==0) fTransformedEvent =
new Event();
92 std::vector<Char_t> mask;
93 GetInput( ev, input, mask );
94 SetOutput( fTransformedEvent, input, mask, ev );
96 return fTransformedEvent;
103 if (!IsEnabled())
return ev;
106 if (!IsCreated())
Log() <<
kFATAL <<
"Transformation not yet created" <<
Endl;
108 if (fBackTransformedEvent==0) fBackTransformedEvent =
new Event( *ev );
111 std::vector<Char_t> mask;
112 GetInput( ev, input, mask,
kTRUE );
113 SetOutput( fBackTransformedEvent, input, mask, ev,
kTRUE );
115 return fBackTransformedEvent;
124 const UInt_t size = fGet.size();
125 std::vector<TString>* strVec =
new std::vector<TString>(size);
147 void* inpnode =
NULL;
151 Log() <<
kFATAL <<
"Unknown weight file format for transformations. (tried to read in 'rearrange' transform)" <<
Endl;
MsgLogger & Endl(MsgLogger &ml)
Abstract ClassifierFactory template that handles arbitrary types.