[ VIGRA Homepage | Function Index | Class Index | Namespaces | File List | Main Page ]
![]() |
StopIfConverging | ![]() |
#include <vigra/random_forest/rf_earlystopping.hxx>
Public Member Functions | |
template<class WeightIter, class T, class C> | |
bool | after_prediction (WeightIter iter, int k, MultiArrayView< 2, T, C > const &prob, double totalCt) |
StopIfConverging (double thresh, int num=10) |
StopIfConverging | ( | double | thresh, | |
int | num = 10 | |||
) |
Constructor
thresh,: | If the two norm of the probabilites changes less then thresh then stop | |
num | : look at atleast num trees before stopping |
template<class WeightIter, class T, class C> | ||||
bool after_prediction | ( | WeightIter | , | |
int | k, | |||
MultiArrayView< 2, T, C > const & | , | |||
double | ||||
) |
called after the prediction of a tree was added to the total prediction
WeightIter | Iterator to the weights delivered by current tree. | |
k | after kth tree | |
prob | Total probability array | |
totalCt | sum of probability array. |
Reimplemented from StopBase.
© Ullrich Köthe (ullrich.koethe@iwr.uni-heidelberg.de) |
html generated using doxygen and Python
|