-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
parallel forest trainer: bug fixing parallel forest trainer: enabling with PPL
- Loading branch information
Showing
10 changed files
with
633 additions
and
697 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,17 +3,19 @@ | |
#pragma once | ||
|
||
#include "TrainNode.h" | ||
#include "sherwood\Sherwood.h" | ||
|
||
|
||
namespace sw = MicrosoftResearch::Cambridge::Sherwood; | ||
#ifdef USE_SHERWOOD | ||
|
||
namespace MicrosoftResearch { namespace Cambridge { namespace Sherwood { | ||
class LinearFeatureResponse; | ||
class HistogramAggregator; | ||
class DataPointCollection; | ||
template<class F, class S> class Forest; | ||
struct TrainingParameters; | ||
}}} | ||
|
||
namespace sw = MicrosoftResearch::Cambridge::Sherwood; | ||
|
||
namespace DirectGraphicalModels | ||
{ | ||
///@brief Microsoft Research Random Forest parameters | ||
|
@@ -43,6 +45,7 @@ namespace DirectGraphicalModels | |
* @ingroup moduleTrainNode | ||
* @brief Microsoft Sherwood Random Forest training class | ||
* @details This class is based on the <a href="http://research.microsoft.com/en-us/downloads/52d5b9c3-a638-42a1-94a5-d549e2251728/">Sherwood C++ code library for decision forests</a> v.1.0.0 | ||
* > In order to use the Sherwood library, DGM must be build with the \b USE_SHERWOOD flag | ||
* @author Sergey G. Kosov, [email protected] | ||
*/ | ||
class CTrainNodeMsRF : public CTrainNode | ||
|
@@ -100,7 +103,8 @@ namespace DirectGraphicalModels | |
|
||
|
||
private: | ||
sw::TrainingParameters m_params; | ||
std::auto_ptr<sw::TrainingParameters> m_pParams; | ||
size_t m_maxSamples; | ||
}; | ||
} | ||
#endif |
Oops, something went wrong.