30 #ifndef ROOT_TMVA_MethodDNN 31 #define ROOT_TMVA_MethodDNN 54 #ifndef ROOT_TMVA_MethodBase 57 #ifndef TMVA_NEURAL_NET 104 void DeclareOptions();
105 void ProcessOptions();
127 static inline void WriteMatrixXML(
void *parent,
const char *
name,
129 static inline void ReadMatrixXML(
void *xml,
const char *
name,
133 void MakeClassSpecific( std::ostream&,
const TString& )
const;
134 void GetHelpMessage()
const;
156 template <
typename AFloat>
160 virtual const std::vector<Float_t>& GetRegressionValues();
161 virtual const std::vector<Float_t>& GetMulticlassValues();
166 void AddWeightsXMLTo (
void* parent )
const;
169 void ReadWeightsFromStream( std::istream & i );
170 void ReadWeightsFromXML (
void* wghtnode );
173 const Ranking* CreateRanking();
181 std::stringstream matrixStringStream(
"");
182 matrixStringStream.precision( 16 );
184 for (
size_t i = 0; i < (size_t) X.
GetNrows(); i++)
186 for (
size_t j = 0; j < (size_t) X.
GetNcols(); j++)
188 matrixStringStream << std::scientific <<
X(i,j) <<
" ";
191 std::string s = matrixStringStream.str();
210 std::stringstream matrixStringStream(matrixString);
212 for (
size_t i = 0; i < rows; i++)
214 for (
size_t j = 0; j < cols; j++)
216 matrixStringStream >>
X(i,j);
EOutputFunction fOutputFunction
typename Architecture_t::Matrix_t Matrix_t
const char * GetNodeContent(XMLNodePointer_t xmlnode)
get contents (if any) of xml node
std::vector< std::map< TString, TString >> KeyValueVector_t
#define ClassDef(name, id)
The reference architecture class.
ERegularization regularization
std::vector< Double_t > dropoutProbabilities
void Init(TClassEdit::TInterpreterLookupHelper *helper)
TString fArchitectureString
static void ReadMatrixXML(void *xml, const char *name, TMatrixT< Double_t > &X)
EInitialization fWeightInitialization
KeyValueVector_t fSettings
Bool_t AddRawLine(XMLNodePointer_t parent, const char *line)
Add just line into xml file Line should has correct xml syntax that later it can be decoded by xml pa...
static void WriteMatrixXML(void *parent, const char *name, const TMatrixT< Double_t > &X)
std::vector< std::pair< int, EActivationFunction >> LayoutVector_t
XMLAttrPointer_t NewAttr(XMLNodePointer_t xmlnode, XMLNsPointer_t, const char *name, const char *value)
creates new attribute for xmlnode, namespaces are not supported for attributes
EOutputFunction
Enum that represents output functions.
TString fTrainingStrategyString
TString fWeightInitializationString
std::vector< TTrainingSettings > fTrainingSettings
Abstract ClassifierFactory template that handles arbitrary types.
XMLNodePointer_t NewChild(XMLNodePointer_t parent, XMLNsPointer_t ns, const char *name, const char *content=0)
create new child element for parent node
ERegularization
Enum representing the regularization type applied for a given layer.
virtual void ReadWeightsFromStream(std::istream &)=0