Logo ROOT  
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
39namespace 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
#define ClassDef(name, id)
Definition: Rtypes.h:326
int type
Definition: TGX11.cxx:120
ostringstream derivative to redirect and format output
Definition: MsgLogger.h:59
Class for easily choosing activation functions.
std::vector< TString > * GetAllActivationNames() const
returns the names of all know activation functions
virtual ~TActivationChooser()
Destructor.
TActivationChooser()
Default constructor.
MsgLogger & Log() const
message logger
TActivation * CreateActivation(EActivationType type) const
instantiate the correct activation object according to the type chosen (given as the enumeration type...
Interface for TNeuron activation function classes.
Definition: TActivation.h:42
Basic string class.
Definition: TString.h:131
create variable transformations