Logo ROOT   6.08/07
Reference Guide
TestBackpropagation.cxx
Go to the documentation of this file.
1 // @(#)root/tmva $Id$
2 // Author: Simon Pfreundschuh
3 
4 /*************************************************************************
5  * Copyright (C) 2016, Simon Pfreundschuh
6  * All rights reserved. *
7  * *
8  * For the licensing terms see $ROOTSYS/LICENSE. *
9  * For the list of contributors see $ROOTSYS/README/CREDITS. *
10  *************************************************************************/
11 
12 ////////////////////////////////////////////////////////////////////
13 // Concrete instantiation of the generic backpropagation test for //
14 // the reference architecture. //
15 ////////////////////////////////////////////////////////////////////
16 
17 #include <iostream>
19 #include "TestBackpropagation.h"
20 
21 using namespace TMVA::DNN;
22 
23 int main()
24 {
25  std::cout << "Testing Backpropagation:" << std::endl;
26 
27  double error;
28 
29  //
30  // Test backpropagation for linear net.
31  //
32 
33  error = testBackpropagationWeightsLinear<TReference<double>>(1.0);
34  if (error > 1e-3)
35  return 1;
36 
37  error = testBackpropagationL1Regularization<TReference<double>>(1e-2);
38  if (error > 1e-3)
39  return 1;
40 
41  error = testBackpropagationL2Regularization<TReference<double>>(1.0);
42  if (error > 1e-3)
43  return 1;
44 
45  error = testBackpropagationBiasesLinear<TReference<double>>(1.0);
46  if (error > 1e-3)
47  return 1;
48 
49  return 0;
50 }
Definition: Blas.h:58
int main()
you should not use this method at all Int_t Int_t Double_t Double_t Double_t e
Definition: TRolke.cxx:630