ROOT logo
// @(#)root/tmva $Id: TActivationChooser.h 29195 2009-06-24 10:39:49Z brun $
// Author: Matt Jachowski 

/**********************************************************************************
 * Project: TMVA - a Root-integrated toolkit for multivariate data analysis       *
 * Package: TMVA                                                                  *
 * Class  : TMVA::TActivationChooser                                              *
 * Web    : http://tmva.sourceforge.net                                           *
 *                                                                                *
 * Description:                                                                   *
 *      Class for easily choosing activation functions.                           *
 *                                                                                *
 * Authors (alphabetical):                                                        *
 *      Matt Jachowski  <jachowski@stanford.edu> - Stanford University, USA       *
 *                                                                                *
 * Copyright (c) 2005:                                                            *
 *      CERN, Switzerland                                                         *
 *                                                                                *
 * Redistribution and use in source and binary forms, with or without             *
 * modification, are permitted according to the terms listed in LICENSE           *
 * (http://tmva.sourceforge.net/LICENSE)                                          *
 **********************************************************************************/
 

#ifndef ROOT_TMVA_TActivationChooser
#define ROOT_TMVA_TActivationChooser

//////////////////////////////////////////////////////////////////////////
//                                                                      //
// TActivationChooser                                                   //
//                                                                      //
// Class for easily choosing activation functions                       //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

#include <vector>
#ifndef ROOT_TString
#include "TString.h"
#endif

namespace TMVA {

   class TActivation;
   class MsgLogger;
   
   class TActivationChooser {
   public:

      enum EActivationType { kLinear = 0,
                             kSigmoid,
                             kTanh,
                             kRadial
      };

      TActivationChooser();
      virtual ~TActivationChooser();

      TActivation* CreateActivation(EActivationType type) const;
      TActivation* CreateActivation(const TString& type) const;
      std::vector<TString>* GetAllActivationNames() const;

   private:

      TString fLINEAR;  // activation function name
      TString fSIGMOID; // activation function name
      TString fTANH;    // activation function name
      TString fRADIAL;  // activation function name

      mutable MsgLogger* fLogger;                     //! message logger
      MsgLogger& Log() const { return *fLogger; }                       

      ClassDef(TActivationChooser,0) // Class for choosing activation functions
   };

} // namespace TMVA

#endif
 TActivationChooser.h:1
 TActivationChooser.h:2
 TActivationChooser.h:3
 TActivationChooser.h:4
 TActivationChooser.h:5
 TActivationChooser.h:6
 TActivationChooser.h:7
 TActivationChooser.h:8
 TActivationChooser.h:9
 TActivationChooser.h:10
 TActivationChooser.h:11
 TActivationChooser.h:12
 TActivationChooser.h:13
 TActivationChooser.h:14
 TActivationChooser.h:15
 TActivationChooser.h:16
 TActivationChooser.h:17
 TActivationChooser.h:18
 TActivationChooser.h:19
 TActivationChooser.h:20
 TActivationChooser.h:21
 TActivationChooser.h:22
 TActivationChooser.h:23
 TActivationChooser.h:24
 TActivationChooser.h:25
 TActivationChooser.h:26
 TActivationChooser.h:27
 TActivationChooser.h:28
 TActivationChooser.h:29
 TActivationChooser.h:30
 TActivationChooser.h:31
 TActivationChooser.h:32
 TActivationChooser.h:33
 TActivationChooser.h:34
 TActivationChooser.h:35
 TActivationChooser.h:36
 TActivationChooser.h:37
 TActivationChooser.h:38
 TActivationChooser.h:39
 TActivationChooser.h:40
 TActivationChooser.h:41
 TActivationChooser.h:42
 TActivationChooser.h:43
 TActivationChooser.h:44
 TActivationChooser.h:45
 TActivationChooser.h:46
 TActivationChooser.h:47
 TActivationChooser.h:48
 TActivationChooser.h:49
 TActivationChooser.h:50
 TActivationChooser.h:51
 TActivationChooser.h:52
 TActivationChooser.h:53
 TActivationChooser.h:54
 TActivationChooser.h:55
 TActivationChooser.h:56
 TActivationChooser.h:57
 TActivationChooser.h:58
 TActivationChooser.h:59
 TActivationChooser.h:60
 TActivationChooser.h:61
 TActivationChooser.h:62
 TActivationChooser.h:63
 TActivationChooser.h:64
 TActivationChooser.h:65
 TActivationChooser.h:66
 TActivationChooser.h:67
 TActivationChooser.h:68
 TActivationChooser.h:69
 TActivationChooser.h:70
 TActivationChooser.h:71
 TActivationChooser.h:72
 TActivationChooser.h:73
 TActivationChooser.h:74
 TActivationChooser.h:75
 TActivationChooser.h:76
 TActivationChooser.h:77