ROOT
git-r3/HEAD
Reference Guide
Loading...
Searching...
No Matches
CrossEntropy.h
Go to the documentation of this file.
1
// @(#)root/tmva $Id$
2
// Author: Andreas Hoecker, Joerg Stelzer, Helge Voss, Kai Voss
3
4
/**********************************************************************************
5
* Project: TMVA - a Root-integrated toolkit for multivariate data analysis *
6
* Package: TMVA *
7
* Class : CrossEntropy *
8
* *
9
* *
10
* Description: Implementation of the CrossEntropy as separation criterion *
11
* *
12
* Authors (alphabetical): *
13
* Andreas Hoecker <Andreas.Hocker@cern.ch> - CERN, Switzerland *
14
* Helge Voss <Helge.Voss@cern.ch> - MPI-K Heidelberg, Germany *
15
* Kai Voss <Kai.Voss@cern.ch> - U. of Victoria, Canada *
16
* *
17
* Copyright (c) 2005: *
18
* CERN, Switzerland *
19
* U. of Victoria, Canada *
20
* Heidelberg U., Germany *
21
* *
22
* Redistribution and use in source and binary forms, with or without *
23
* modification, are permitted according to the terms listed in LICENSE *
24
* (see tmva/doc/LICENSE) *
25
**********************************************************************************/
26
27
#ifndef ROOT_TMVA_CrossEntropy
28
#define ROOT_TMVA_CrossEntropy
29
30
//////////////////////////////////////////////////////////////////////////
31
// //
32
// CrossEntropy //
33
// //
34
// Implementation of the CrossEntropy as separation criterion //
35
// -p log (p) - (1-p)log(1-p); p=purity = s/(s+b) //
36
// //
37
//////////////////////////////////////////////////////////////////////////
38
39
#include "
TMVA/SeparationBase.h
"
40
41
namespace
TMVA
{
42
43
class
CrossEntropy
:
public
SeparationBase
{
44
45
public
:
46
47
// default constructor
48
CrossEntropy
():
SeparationBase
() {
fName
=
"CE"
; }
49
50
// copy constructor
51
CrossEntropy
(
const
CrossEntropy
&
g
):
SeparationBase
(
g
) {}
52
53
// destructor
54
virtual
~CrossEntropy
(){}
55
56
// return the separation Index -p log (p) - (1-p)log(1-p); p=purity = s/(s+b)
57
Double_t
GetSeparationIndex
(
const
Double_t
s,
const
Double_t
b
)
override
;
58
59
protected
:
60
61
ClassDefOverride
(
CrossEntropy
,0);
// Implementation of the CrossEntropy as separation criterion
62
};
63
64
}
// namespace TMVA
65
66
#endif
67
b
#define b(i)
Definition
RSha256.hxx:100
g
#define g(i)
Definition
RSha256.hxx:105
Double_t
double Double_t
Double 8 bytes.
Definition
RtypesCore.h:73
ClassDefOverride
#define ClassDefOverride(name, id)
Definition
Rtypes.h:348
SeparationBase.h
TMVA::CrossEntropy::CrossEntropy
CrossEntropy(const CrossEntropy &g)
Definition
CrossEntropy.h:51
TMVA::CrossEntropy::~CrossEntropy
virtual ~CrossEntropy()
Definition
CrossEntropy.h:54
TMVA::CrossEntropy::GetSeparationIndex
Double_t GetSeparationIndex(const Double_t s, const Double_t b) override
Cross Entropy defined as:
Definition
CrossEntropy.cxx:46
TMVA::CrossEntropy::CrossEntropy
CrossEntropy()
Definition
CrossEntropy.h:48
TMVA::SeparationBase::fName
TString fName
Definition
SeparationBase.h:108
TMVA::SeparationBase::SeparationBase
SeparationBase()
Constructor.
Definition
SeparationBase.cxx:75
TMVA
create variable transformations
Definition
GeneticMinimizer.h:22
tmva
tmva
inc
TMVA
CrossEntropy.h
ROOTgit-r3/HEAD - Reference Guide Generated on
(GVA Time) using Doxygen 1.16.1