ROOT
6.06/08
Reference Guide
tmva
tmva
inc
TMVA
MisClassificationError.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 : MisClassificationError *
8
* Web : http://tmva.sourceforge.net *
9
* *
10
* Description: *
11
* Implementation of the MisClassificationError as separation *
12
* criterion: 1-max(p, 1-p) *
13
* *
14
* *
15
* Authors (alphabetical): *
16
* Andreas Hoecker <Andreas.Hocker@cern.ch> - CERN, Switzerland *
17
* Helge Voss <Helge.Voss@cern.ch> - MPI-K Heidelberg, Germany *
18
* Kai Voss <Kai.Voss@cern.ch> - U. of Victoria, Canada *
19
* *
20
* Copyright (c) 2005: *
21
* CERN, Switzerland *
22
* U. of Victoria, Canada *
23
* Heidelberg U., Germany *
24
* *
25
* Redistribution and use in source and binary forms, with or without *
26
* modification, are permitted according to the terms listed in LICENSE *
27
* (http://tmva.sourceforge.net/LICENSE) *
28
**********************************************************************************/
29
30
#ifndef ROOT_TMVA_MisClassificationError
31
#define ROOT_TMVA_MisClassificationError
32
33
//////////////////////////////////////////////////////////////////////////
34
// //
35
// MisClassificationError //
36
// //
37
// Implementation of the MisClassificationError as separation criterion //
38
// //
39
// criterion: 1-max(p, 1-p) //
40
//////////////////////////////////////////////////////////////////////////
41
42
#ifndef ROOT_TMVA_SeparationBase
43
#include "
TMVA/SeparationBase.h
"
44
#endif
45
46
namespace
TMVA
{
47
48
class
MisClassificationError
:
public
SeparationBase
{
49
50
public
:
51
52
// consturctor for the Misclassification error
53
MisClassificationError
() {
fName
=
"MisCl"
; }
54
55
// copy constructor
56
MisClassificationError
(
const
MisClassificationError
&
g
):
SeparationBase
(g) {}
57
58
// destructor
59
virtual
~MisClassificationError
() {}
60
61
// Return the separation index: 1-max(p,1-p)
62
virtual
Double_t
GetSeparationIndex
(
const
Double_t
&s,
const
Double_t
&b );
63
protected
:
64
65
ClassDef
(
MisClassificationError
,0)
// Implementation of the MisClassificationError as separation criterion
66
};
67
68
}
// namespace TMVA
69
70
#endif
71
72
TMVA::MisClassificationError::~MisClassificationError
virtual ~MisClassificationError()
Definition:
MisClassificationError.h:59
_pythonization.g
g
Definition:
_pythonization.py:167
TMVA::MisClassificationError::GetSeparationIndex
virtual Double_t GetSeparationIndex(const Double_t &s, const Double_t &b)
Misclassifiacton error criterion: 1-max(p, 1-p) (p: purity= s/(s+b))
Definition:
MisClassificationError.cxx:42
ClassDef
#define ClassDef(name, id)
Definition:
Rtypes.h:254
SeparationBase.h
TMVA::MisClassificationError::MisClassificationError
MisClassificationError()
Definition:
MisClassificationError.h:53
TMVA::MisClassificationError
Definition:
MisClassificationError.h:48
TMVA::SeparationBase
Definition:
SeparationBase.h:88
Double_t
double Double_t
Definition:
RtypesCore.h:55
TMVA
Abstract ClassifierFactory template that handles arbitrary types.
Definition:
MethodPyAdaBoost.h:29
TMVA::MisClassificationError::MisClassificationError
MisClassificationError(const MisClassificationError &g)
Definition:
MisClassificationError.h:56
TMVA::SeparationBase::fName
TString fName
Definition:
SeparationBase.h:114