ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes | Private Attributes | List of all members
TMVA::ConvergenceTest Class Reference

Definition at line 48 of file ConvergenceTest.h.

Public Member Functions

 ConvergenceTest ()
 constructor More...
 
 ~ConvergenceTest ()
 destructor More...
 
void SetConvergenceParameters (Int_t steps, Double_t improvement)
 
void SetCurrentValue (Float_t value)
 
Float_t GetCurrentValue ()
 
void ResetConvergenceCounter ()
 
Bool_t HasConverged (Bool_t withinConvergenceBand=kFALSE)
 gives back true if the last "steps" steps have lead to an improvement of the "fitness" of the "individuals" of at least "improvement" More...
 
Float_t Progress ()
 returns a float from 0 (just started) to 1 (finished) More...
 
Float_t SpeedControl (UInt_t ofSteps)
 this function provides the ability to change the learning rate according to the success of the last generations. More...
 

Protected Attributes

Float_t fCurrentValue
 
Float_t fImprovement
 current value More...
 
Int_t fSteps
 minimum improvement which counts as improvement More...
 

Private Attributes

Int_t fCounter
 number of steps without improvement required for convergence More...
 
Float_t fConvValue
 counts the number of steps without improvement More...
 
Int_t fMaxCounter
 the best "fitness" value More...
 
Float_t fBestResult
 maximum value for the counter so far More...
 
Float_t fLastResult
 
std::deque< Short_tfSuccessList
 

#include <TMVA/ConvergenceTest.h>

Inheritance diagram for TMVA::ConvergenceTest:
[legend]

Constructor & Destructor Documentation

TMVA::ConvergenceTest::ConvergenceTest ( )

constructor

Definition at line 35 of file ConvergenceTest.cxx.

TMVA::ConvergenceTest::~ConvergenceTest ( )

destructor

Definition at line 50 of file ConvergenceTest.cxx.

Member Function Documentation

Float_t TMVA::ConvergenceTest::GetCurrentValue ( )
inline

Definition at line 59 of file ConvergenceTest.h.

Bool_t TMVA::ConvergenceTest::HasConverged ( Bool_t  withinConvergenceBand = kFALSE)

gives back true if the last "steps" steps have lead to an improvement of the "fitness" of the "individuals" of at least "improvement"

this gives a simple measure of if the estimator of the MLP is converging and no major improvement is to be expected.

Definition at line 64 of file ConvergenceTest.cxx.

Float_t TMVA::ConvergenceTest::Progress ( )

returns a float from 0 (just started) to 1 (finished)

Definition at line 89 of file ConvergenceTest.cxx.

void TMVA::ConvergenceTest::ResetConvergenceCounter ( )
inline

Definition at line 60 of file ConvergenceTest.h.

void TMVA::ConvergenceTest::SetConvergenceParameters ( Int_t  steps,
Double_t  improvement 
)
inline

Definition at line 56 of file ConvergenceTest.h.

void TMVA::ConvergenceTest::SetCurrentValue ( Float_t  value)
inline

Definition at line 58 of file ConvergenceTest.h.

Float_t TMVA::ConvergenceTest::SpeedControl ( UInt_t  ofSteps)

this function provides the ability to change the learning rate according to the success of the last generations.

Parameters: int ofSteps : = if OF the number of STEPS given in this variable (ofSteps) the rate of improvement has to be calculated

using this function one can increase the stepSize of the mutation when we have good success (to pass fast through the easy phase-space) and reduce the learning rate if we are in a difficult "territory" of the phase-space.

Definition at line 110 of file ConvergenceTest.cxx.

Member Data Documentation

Float_t TMVA::ConvergenceTest::fBestResult
private

maximum value for the counter so far

Definition at line 83 of file ConvergenceTest.h.

Float_t TMVA::ConvergenceTest::fConvValue
private

counts the number of steps without improvement

Definition at line 78 of file ConvergenceTest.h.

Int_t TMVA::ConvergenceTest::fCounter
private

number of steps without improvement required for convergence

Definition at line 77 of file ConvergenceTest.h.

Referenced by ResetConvergenceCounter().

Float_t TMVA::ConvergenceTest::fCurrentValue
protected

Definition at line 70 of file ConvergenceTest.h.

Referenced by GetCurrentValue(), and SetCurrentValue().

Float_t TMVA::ConvergenceTest::fImprovement
protected

current value

Definition at line 72 of file ConvergenceTest.h.

Referenced by SetConvergenceParameters().

Float_t TMVA::ConvergenceTest::fLastResult
private

Definition at line 84 of file ConvergenceTest.h.

Int_t TMVA::ConvergenceTest::fMaxCounter
private

the best "fitness" value

Definition at line 79 of file ConvergenceTest.h.

Referenced by ResetConvergenceCounter().

Int_t TMVA::ConvergenceTest::fSteps
protected

minimum improvement which counts as improvement

Definition at line 73 of file ConvergenceTest.h.

Referenced by SetConvergenceParameters().

std::deque<Short_t> TMVA::ConvergenceTest::fSuccessList
private

Definition at line 85 of file ConvergenceTest.h.

Collaboration diagram for TMVA::ConvergenceTest:
[legend]

The documentation for this class was generated from the following files: