Changeset 7170 for trunk/MagicSoft/Mars/mranforest/MRanForest.cc
- Timestamp:
- 06/27/05 10:45:56 (21 years ago)
- File:
-
- 1 edited
-
trunk/MagicSoft/Mars/mranforest/MRanForest.cc (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/MagicSoft/Mars/mranforest/MRanForest.cc
r2307 r7170 24 24 25 25 ///////////////////////////////////////////////////////////////////////////// 26 // // 27 // MRanForest // 28 // // 29 // ParameterContainer for Forest structure // 30 // // 31 // A random forest can be grown by calling GrowForest. // 32 // In advance SetupGrow must be called in order to initialize arrays and // 33 // do some preprocessing. // 34 // GrowForest() provides the training data for a single tree (bootstrap // 35 // aggregate procedure) // 36 // // 37 // Essentially two random elements serve to provide a "random" forest, // 38 // namely bootstrap aggregating (which is done in GrowForest()) and random // 39 // split selection (which is subject to MRanTree::GrowTree()) // 40 // // 26 // 27 // MRanForest 28 // 29 // ParameterContainer for Forest structure 30 // 31 // A random forest can be grown by calling GrowForest. 32 // In advance SetupGrow must be called in order to initialize arrays and 33 // do some preprocessing. 34 // GrowForest() provides the training data for a single tree (bootstrap 35 // aggregate procedure) 36 // 37 // Essentially two random elements serve to provide a "random" forest, 38 // namely bootstrap aggregating (which is done in GrowForest()) and random 39 // split selection (which is subject to MRanTree::GrowTree()) 40 // 41 // Version 2: 42 // + fUserVal 43 // 41 44 ///////////////////////////////////////////////////////////////////////////// 42 45 #include "MRanForest.h" … … 59 62 // Default constructor. 60 63 // 61 MRanForest::MRanForest(const char *name, const char *title) : fNumTrees(100), fRanTree(NULL),fUsePriors(kFALSE) 64 MRanForest::MRanForest(const char *name, const char *title) : fNumTrees(100), fRanTree(NULL),fUsePriors(kFALSE), fUserVal(-1) 62 65 { 63 66 fName = name ? name : "MRanForest";
Note:
See TracChangeset
for help on using the changeset viewer.
