ROOT
v6-30
Reference Guide
Loading...
Searching...
No Matches
TActivationIdentity.cxx
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 : TActivationIdentity *
8
* Web : http://tmva.sourceforge.net *
9
* *
10
* Description: *
11
* Identity activation function for TNeuron *
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
/*! \class TMVA::TActivationIdentity
25
\ingroup TMVA
26
Identity activation function for TNeuron
27
*/
28
29
#include "
TMVA/TActivationIdentity.h
"
30
31
#include "
Rtypes.h
"
32
#include "
TString.h
"
33
34
#include <iostream>
35
36
class
TString
;
37
38
ClassImp
(
TMVA::TActivationIdentity
);
39
40
////////////////////////////////////////////////////////////////////////////////
41
/// writes the identity function source code
42
43
void
TMVA::TActivationIdentity::MakeFunction
( std::ostream& fout,
const
TString
& fncName )
44
{
45
fout <<
"double "
<< fncName <<
"(double x) const {"
<< std::endl;
46
fout <<
" // identity"
<< std::endl;
47
fout <<
" return x;"
<< std::endl;
48
fout <<
"}"
<< std::endl;
49
}
Rtypes.h
ClassImp
#define ClassImp(name)
Definition
Rtypes.h:377
TActivationIdentity.h
TString.h
TMVA::TActivationIdentity
Identity activation function for TNeuron.
Definition
TActivationIdentity.h:41
TMVA::TActivationIdentity::MakeFunction
virtual void MakeFunction(std::ostream &fout, const TString &fncName)
writes the identity function source code
Definition
TActivationIdentity.cxx:43
TString
Basic string class.
Definition
TString.h:139
tmva
tmva
src
TActivationIdentity.cxx
ROOT v6-30 - Reference Guide Generated on Fri Aug 9 2024 10:45:21 (GVA Time) using Doxygen 1.9.8