ROOT
6.06/08
Reference Guide
tmva
tmva
inc
TMVA
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
* Web : http://tmva.sourceforge.net *
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
* (http://tmva.sourceforge.net/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
#ifndef ROOT_TMVA_SeparationBase
40
#include "
TMVA/SeparationBase.h
"
41
#endif
42
43
namespace
TMVA
{
44
45
class
CrossEntropy
:
public
SeparationBase
{
46
47
public
:
48
49
// default constructor
50
CrossEntropy
():
SeparationBase
() {
fName
=
"CE"
; }
51
52
// copy constructor
53
CrossEntropy
(
const
CrossEntropy
&
g
):
SeparationBase
(g) {}
54
55
// destructor
56
virtual
~CrossEntropy
(){}
57
58
// return the separation Index -p log (p) - (1-p)log(1-p); p=purity = s/(s+b)
59
virtual
Double_t
GetSeparationIndex
(
const
Double_t
&s,
const
Double_t
&b );
60
61
protected
:
62
63
ClassDef
(
CrossEntropy
,0)
// Implementation of the CrossEntropy as separation criterion
64
};
65
66
}
// namespace TMVA
67
68
#endif
69
_pythonization.g
g
Definition:
_pythonization.py:167
TMVA::CrossEntropy::~CrossEntropy
virtual ~CrossEntropy()
Definition:
CrossEntropy.h:56
TMVA::CrossEntropy
Definition:
CrossEntropy.h:45
ClassDef
#define ClassDef(name, id)
Definition:
Rtypes.h:254
SeparationBase.h
TMVA::CrossEntropy::CrossEntropy
CrossEntropy()
Definition:
CrossEntropy.h:50
TMVA::CrossEntropy::GetSeparationIndex
virtual Double_t GetSeparationIndex(const Double_t &s, const Double_t &b)
Cross Entropy defined as -p log (p) - (1-p)log(1-p); p=purity = s/(s+b)
Definition:
CrossEntropy.cxx:44
TMVA::SeparationBase
Definition:
SeparationBase.h:88
Double_t
double Double_t
Definition:
RtypesCore.h:55
TMVA::CrossEntropy::CrossEntropy
CrossEntropy(const CrossEntropy &g)
Definition:
CrossEntropy.h:53
TMVA
Abstract ClassifierFactory template that handles arbitrary types.
Definition:
MethodPyAdaBoost.h:29
TMVA::SeparationBase::fName
TString fName
Definition:
SeparationBase.h:114