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:335
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
ostringstream derivative to redirect and format output
Definition: MsgLogger.h:57
Class for easily choosing activation functions.
TString fSIGMOID
activation function name
TString fRADIAL
activation function name
std::vector< TString > * GetAllActivationNames() const
returns the names of all know activation functions
virtual ~TActivationChooser()
Destructor.
TActivationChooser()
Default constructor.
MsgLogger & Log() const
TActivation * CreateActivation(EActivationType type) const
instantiate the correct activation object according to the type chosen (given as the enumeration type...
TString fTANH
activation function name
MsgLogger * fLogger
! message logger
TString fRELU
activation function name
TString fLINEAR
activation function name
Interface for TNeuron activation function classes.
Definition: TActivation.h:42
Basic string class.
Definition: TString.h:136
create variable transformations