Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
R
Root
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
为了安全,强烈建议开启2FA双因子认证:User Settings -> Account -> Enable two-factor authentication!!!
Show more breadcrumbs
cxwx
Root
Commits
1c0f2a7b
Commit
1c0f2a7b
authored
8 years ago
by
Olivier Couet
Browse files
Options
Downloads
Patches
Plain Diff
- Doxygen format
- white spaces
parent
96a87ba6
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tmva/tmva/src/CrossEntropy.cxx
+17
-14
17 additions, 14 deletions
tmva/tmva/src/CrossEntropy.cxx
tmva/tmva/src/CrossValidation.cxx
+8
-0
8 additions, 0 deletions
tmva/tmva/src/CrossValidation.cxx
with
25 additions
and
14 deletions
tmva/tmva/src/CrossEntropy.cxx
+
17
−
14
View file @
1c0f2a7b
// @(#)root/tmva $Id$
// Author: Andreas Hoecker, Joerg Stelzer, Helge Voss, Kai Voss
// @(#)root/tmva $Id$
// Author: Andreas Hoecker, Joerg Stelzer, Helge Voss, Kai Voss
/**********************************************************************************
* Project: TMVA - a Root-integrated toolkit for multivariate data analysis *
...
...
@@ -8,7 +8,7 @@
* Web : http://tmva.sourceforge.net *
* *
* Description: Implementation of the CrossEntropy as separation criterion *
* -p log (p) - (1-p)log(1-p); p=purity *
* -p log (p) - (1-p)log(1-p); p=purity *
* *
* *
* Authors (alphabetical): *
...
...
@@ -17,29 +17,32 @@
* Kai Voss <Kai.Voss@cern.ch> - U. of Victoria, Canada *
* *
* Copyright (c) 2005: *
* CERN, Switzerland *
* U. of Victoria, Canada *
* Heidelberg U., Germany *
* CERN, Switzerland *
* U. of Victoria, Canada *
* Heidelberg U., Germany *
* *
* Redistribution and use in source and binary forms, with or without *
* modification, are permitted according to the terms listed in LICENSE *
* (http://tmva.sourceforge.net/LICENSE) *
**********************************************************************************/
//_______________________________________________________________________
//
// Implementation of the CrossEntropy as separation criterion
// -p log (p) - (1-p)log(1-p); p=purity
//_______________________________________________________________________
/*! \class TMVA::CrossEntropy
\ingroup TMVA
Implementation of the CrossEntropy as separation criterion
-p log (p) - (1-p)log(1-p); p=purity
*/
#include
"TMath.h"
#include
"TMVA/CrossEntropy.h"
ClassImp
(
TMVA
::
CrossEntropy
)
////////////////////////////////////////////////////////////////////////////////
/// Cross Entropy defined as
/// -p log (p) - (1-p)log(1-p); p=purity = s/(s+b)
/// Cross Entropy defined as:
///
/// -p log (p) - (1-p)log(1-p); p=purity = s/(s+b)
Double_t
TMVA
::
CrossEntropy
::
GetSeparationIndex
(
const
Double_t
&
s
,
const
Double_t
&
b
)
{
...
...
This diff is collapsed.
Click to expand it.
tmva/tmva/src/CrossValidation.cxx
+
8
−
0
View file @
1c0f2a7b
...
...
@@ -21,6 +21,14 @@
#include
<iostream>
#include
<memory>
/*! \class TMVA::CrossValidationResult
\ingroup TMVA
*/
/*! \class TMVA::CrossValidation
\ingroup TMVA
*/
TMVA
::
CrossValidationResult
::
CrossValidationResult
()
:
fROCCurves
(
new
TMultiGraph
())
{
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment