30 #ifndef ROOT_TMVA_MethodDNN
31 #define ROOT_TMVA_MethodDNN
54 #ifndef ROOT_TMVA_MethodBase
57 #ifndef TMVA_NEURAL_NET
75 using namespace TMVA::DNN;
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;
140 const TString& methodTitle,
142 const TString& theOption);
144 const TString& theWeightFile);
159 virtual const std::vector<Float_t>& GetRegressionValues();
160 virtual const std::vector<Float_t>& GetMulticlassValues();
165 void AddWeightsXMLTo (
void* parent )
const;
168 void ReadWeightsFromStream( std::istream & i );
169 void ReadWeightsFromXML (
void* wghtnode );
172 const Ranking* CreateRanking();
180 std::stringstream matrixStringStream(
"");
181 matrixStringStream.precision( 16 );
183 for (
size_t i = 0; i < (size_t) X.
GetNrows(); i++)
185 for (
size_t j = 0; j < (size_t) X.
GetNcols(); j++)
187 matrixStringStream << std::scientific <<
X(i,j) <<
" ";
190 std::string s = matrixStringStream.str();
209 std::stringstream matrixStringStream(matrixString);
211 for (
size_t i = 0; i < rows; i++)
213 for (
size_t j = 0; j < cols; j++)
215 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
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