ROOT
Version v6.32
master
v6.34
v6.30
v6.28
v6.26
v6.24
v6.22
v6.20
v6.18
v6.16
v6.14
v6.12
v6.10
v6.08
v6.06
Reference Guide
▼
ROOT
ROOT Reference Documentation
Tutorials
►
Functional Parts
►
Namespaces
►
All Classes
▼
Files
▼
File List
►
bindings
►
core
►
documentation
►
geom
►
graf2d
►
graf3d
►
gui
►
hist
►
html
►
io
►
main
►
math
►
montecarlo
►
net
►
proof
►
roofit
►
sql
▼
tmva
doc
►
pymva
►
rmva
►
sofie
►
sofie_parsers
▼
tmva
►
inc
▼
src
▼
DNN
▼
Architectures
►
Cpu
►
Cuda
►
Cudnn
▼
Reference
ActivationFunctions.hxx
Arithmetic.hxx
DataLoader.cxx
DenoisePropagation.hxx
Dropout.hxx
Initialization.hxx
LossFunctions.hxx
OutputFunctions.hxx
Propagation.hxx
RecurrentPropagation.hxx
Regularization.hxx
TensorDataLoader.cxx
Cpu.cxx
Cuda.cu
Cudnn.cu
Reference.cxx
BDTEventWrapper.cxx
BinarySearchTree.cxx
BinarySearchTreeNode.cxx
BinaryTree.cxx
CCPruner.cxx
CCTreeWrapper.cxx
►
Classification.cxx
ClassifierFactory.cxx
ClassInfo.cxx
Config.cxx
Configurable.cxx
ConvergenceTest.cxx
CostComplexityPruneTool.cxx
CrossEntropy.cxx
CrossValidation.cxx
CvSplit.cxx
DataInputHandler.cxx
DataLoader.cxx
DataSet.cxx
►
DataSetFactory.cxx
DataSetInfo.cxx
DataSetManager.cxx
►
DecisionTree.cxx
DecisionTreeNode.cxx
Envelope.cxx
Event.cxx
ExpectedErrorPruneTool.cxx
►
Factory.cxx
FitterBase.cxx
GeneticAlgorithm.cxx
GeneticFitter.cxx
GeneticGenes.cxx
GeneticPopulation.cxx
GeneticRange.cxx
GiniIndex.cxx
GiniIndexWithLaplace.cxx
HyperParameterOptimisation.cxx
IFitterTarget.cxx
IMethod.cxx
Interval.cxx
►
KDEKernel.cxx
LDA.cxx
LogInterval.cxx
LossFunction.cxx
MCFitter.cxx
MethodANNBase.cxx
►
MethodBase.cxx
MethodBayesClassifier.cxx
MethodBDT.cxx
MethodBoost.cxx
MethodCategory.cxx
MethodCFMlpANN.cxx
►
MethodCFMlpANN_Utils.cxx
MethodCompositeBase.cxx
MethodCrossValidation.cxx
MethodCuts.cxx
►
MethodDL.cxx
►
MethodDNN.cxx
MethodDT.cxx
MethodFDA.cxx
MethodFisher.cxx
MethodHMatrix.cxx
MethodKNN.cxx
MethodLD.cxx
MethodLikelihood.cxx
MethodMLP.cxx
MethodPDEFoam.cxx
MethodPDERS.cxx
MethodPlugins.cxx
MethodRuleFit.cxx
MethodSVM.cxx
►
MethodTMlpANN.cxx
MinuitFitter.cxx
MinuitWrapper.cxx
MisClassificationError.cxx
ModulekNN.cxx
►
MsgLogger.cxx
►
NeuralNet.cxx
Node.cxx
OptimizeConfigParameters.cxx
Option.cxx
OptionMap.cxx
►
PDEFoam.cxx
PDEFoamCell.cxx
PDEFoamDecisionTree.cxx
PDEFoamDecisionTreeDensity.cxx
PDEFoamDensityBase.cxx
PDEFoamDiscriminant.cxx
PDEFoamDiscriminantDensity.cxx
PDEFoamEvent.cxx
PDEFoamEventDensity.cxx
PDEFoamKernelBase.cxx
PDEFoamKernelGauss.cxx
PDEFoamKernelLinN.cxx
PDEFoamKernelTrivial.cxx
PDEFoamMultiTarget.cxx
PDEFoamTarget.cxx
PDEFoamTargetDensity.cxx
PDEFoamVect.cxx
PDF.cxx
QuickMVAProbEstimator.cxx
Ranking.cxx
RBDT.cxx
Reader.cxx
RegressionVariance.cxx
Results.cxx
ResultsClassification.cxx
ResultsMulticlass.cxx
ResultsRegression.cxx
ROCCalc.cxx
►
ROCCurve.cxx
RootFinder.cxx
Rule.cxx
RuleCut.cxx
RuleEnsemble.cxx
RuleFit.cxx
RuleFitAPI.cxx
►
RuleFitParams.cxx
SdivSqrtSplusB.cxx
SeparationBase.cxx
SimulatedAnnealing.cxx
SimulatedAnnealingFitter.cxx
SVEvent.cxx
SVKernelFunction.cxx
SVKernelMatrix.cxx
SVWorkingSet.cxx
TActivation.cxx
TActivationChooser.cxx
TActivationIdentity.cxx
TActivationRadial.cxx
TActivationReLU.cxx
TActivationSigmoid.cxx
TActivationTanh.cxx
Timer.cxx
►
TNeuron.cxx
TNeuronInput.cxx
TNeuronInputAbs.cxx
TNeuronInputChooser.cxx
TNeuronInputSqSum.cxx
TNeuronInputSum.cxx
Tools.cxx
TrainingHistory.cxx
TransformationHandler.cxx
TSpline1.cxx
TSpline2.cxx
►
TSynapse.cxx
►
Types.cxx
VariableDecorrTransform.cxx
VariableGaussTransform.cxx
VariableIdentityTransform.cxx
►
VariableImportance.cxx
VariableInfo.cxx
VariableNormalizeTransform.cxx
VariablePCATransform.cxx
VariableRearrangeTransform.cxx
►
VariableTransform.cxx
►
VariableTransformBase.cxx
VarTransformHandler.cxx
Volume.cxx
►
tmvagui
►
tree
►
tutorials
►
v6-32-00-patches
►
File Members
Release Notes
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
OutputFunctions.hxx
Go to the documentation of this file.
1
// @(#)root/tmva/tmva/dnn:$Id$
2
// Author: Simon Pfreundschuh 11/07/16
3
4
/*************************************************************************
5
* Copyright (C) 2016, Simon Pfreundschuh *
6
* All rights reserved. *
7
* *
8
* For the licensing terms see $ROOTSYS/LICENSE. *
9
* For the list of contributors see $ROOTSYS/README/CREDITS. *
10
*************************************************************************/
11
12
////////////////////////////////////////////////////////////////
13
// Explicit instantiation of the TReference architecture class //
14
// template for Double_t scalar types. //
15
////////////////////////////////////////////////////////////////
16
17
#include "
TMVA/DNN/Architectures/Reference.h
"
18
19
namespace
TMVA
{
20
namespace
DNN {
21
22
template
<
typename
AReal>
23
void
TReference<AReal>::Sigmoid
(
TMatrixT<AReal>
& B,
24
const
TMatrixT<AReal>
& A)
25
{
26
size_t
m
,
n
;
27
m
= A.GetNrows();
28
n
= A.GetNcols();
29
30
for
(
size_t
i = 0; i <
m
; i++) {
31
for
(
size_t
j
= 0;
j
<
n
;
j
++) {
32
AReal
sig = 1.0 / (1.0 + std::exp(-A(i,
j
)));
33
B(i,
j
) = sig;
34
}
35
}
36
}
37
38
template
<
typename
AReal>
39
void
TReference<AReal>::Softmax
(
TMatrixT<AReal>
& B,
40
const
TMatrixT<AReal>
& A)
41
{
42
size_t
m
,
n
;
43
m
= A.GetNrows();
44
n
= A.GetNcols();
45
46
for
(
size_t
i = 0; i <
m
; i++) {
47
AReal
sum
= 0.0;
48
for
(
size_t
j
= 0;
j
<
n
;
j
++) {
49
sum
+= exp(A(i,
j
));
50
}
51
for
(
size_t
j
= 0;
j
<
n
;
j
++) {
52
B(i,
j
) = exp(A(i,
j
)) /
sum
;
53
}
54
}
55
}
56
57
}
// namespace TMVA
58
}
// namespace DNN
Reference.h
AReal
ROOT::Detail::TRangeCast
Definition
TCollection.h:311
TMVA::DNN::TReference::Softmax
static void Softmax(TMatrixT< AReal > &YHat, const TMatrixT< AReal > &)
Definition
OutputFunctions.hxx:39
TMVA::DNN::TReference::Sigmoid
static void Sigmoid(TMatrixT< AReal > &B)
n
const Int_t n
Definition
legend1.C:16
TMVA
create variable transformations
Definition
GeneticMinimizer.h:22
m
TMarker m
Definition
textangle.C:8
sum
static uint64_t sum(uint64_t i)
Definition
Factory.cxx:2345
tmva
tmva
src
DNN
Architectures
Reference
OutputFunctions.hxx
ROOT v6-32 - Reference Guide Generated on Wed Apr 2 2025 08:24:44 (GVA Time) using Doxygen 1.10.0