Logo ROOT   6.14/05
Reference Guide
TActivationChooser.h
Go to the documentation of this file.
1 // @(#)root/tmva $Id$
2 // Author: Matt Jachowski
3 
4 /**********************************************************************************
5  * Project: TMVA - a Root-integrated toolkit for multivariate data analysis *
6  * Package: TMVA *
7  * Class : TMVA::TActivationChooser *
8  * Web : http://tmva.sourceforge.net *
9  * *
10  * Description: *
11  * Class for easily choosing activation functions. *
12  * *
13  * Authors (alphabetical): *
14  * Matt Jachowski <jachowski@stanford.edu> - Stanford University, USA *
15  * *
16  * Copyright (c) 2005: *
17  * CERN, Switzerland *
18  * *
19  * Redistribution and use in source and binary forms, with or without *
20  * modification, are permitted according to the terms listed in LICENSE *
21  * (http://tmva.sourceforge.net/LICENSE) *
22  **********************************************************************************/
23 
24 
25 #ifndef ROOT_TMVA_TActivationChooser
26 #define ROOT_TMVA_TActivationChooser
27 
28 //////////////////////////////////////////////////////////////////////////
29 // //
30 // TActivationChooser //
31 // //
32 // Class for easily choosing activation functions //
33 // //
34 //////////////////////////////////////////////////////////////////////////
35 
36 #include <vector>
37 #include "TString.h"
38 
39 namespace TMVA {
40 
41  class TActivation;
42  class MsgLogger;
43 
45  public:
46 
52  };
53 
55  virtual ~TActivationChooser();
56 
59  std::vector<TString>* GetAllActivationNames() const;
60 
61  private:
62 
63  TString fLINEAR; // activation function name
64  TString fSIGMOID; // activation function name
65  TString fTANH; // activation function name
66  TString fRELU; // activation function name
67  TString fRADIAL; // activation function name
68 
69  mutable MsgLogger* fLogger; //! message logger
70  MsgLogger& Log() const { return *fLogger; }
71 
72  ClassDef(TActivationChooser,0); // Class for choosing activation functions
73  };
74 
75 } // namespace TMVA
76 
77 #endif
Basic string class.
Definition: TString.h:131
MsgLogger & Log() const
message logger
#define ClassDef(name, id)
Definition: Rtypes.h:320
TActivation * CreateActivation(EActivationType type) const
instantiate the correct activation object according to the type chosen (given as the enumeration type...
virtual ~TActivationChooser()
Destructor.
TActivationChooser()
Default constructor.
int type
Definition: TGX11.cxx:120
ostringstream derivative to redirect and format output
Definition: MsgLogger.h:59
std::vector< TString > * GetAllActivationNames() const
returns the names of all know activation functions
Abstract ClassifierFactory template that handles arbitrary types.
Class for easily choosing activation functions.
Interface for TNeuron activation function classes.
Definition: TActivation.h:42