Skip to content

Commit

Permalink
Merge pull request #750 from pluskid/multiclass
Browse files Browse the repository at this point in the history
added doc to kill warnings
  • Loading branch information
lisitsyn committed Aug 21, 2012
2 parents 4ec5ff5 + 2590cf5 commit 4cbdfa4
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/shogun/features/DenseSubsetFeatures.h
Expand Up @@ -21,6 +21,7 @@ template<class ST> class CDenseFeatures;
template<class ST> class SGVector;
class CDotFeatures;

/** SubsetFeatures wrap features but only uses a subset of the variables */
template<class ST> class CDenseSubsetFeatures: public CDotFeatures
{
public:
Expand Down
2 changes: 2 additions & 0 deletions src/shogun/machine/BaseMulticlassMachine.h
Expand Up @@ -18,6 +18,8 @@ namespace shogun

class CMachine;

/** Base class of all Multiclass Machines.
*/
class CBaseMulticlassMachine: public CMachine
{
public:
Expand Down
1 change: 1 addition & 0 deletions src/shogun/multiclass/ShareBoostOptimizer.h
Expand Up @@ -16,6 +16,7 @@
namespace shogun
{

/** Utility for ShareBoost to handle optimization */
class ShareBoostOptimizer
{
public:
Expand Down
2 changes: 2 additions & 0 deletions src/shogun/multiclass/tree/RandomConditionalProbabilityTree.h
Expand Up @@ -16,6 +16,8 @@
namespace shogun
{

/** Conditional Probability Tree, decide subtree by a random strategy.
*/
class CRandomConditionalProbabilityTree: public CConditionalProbabilityTree
{
public:
Expand Down
1 change: 1 addition & 0 deletions src/shogun/multiclass/tree/RelaxedTreeNodeData.h
Expand Up @@ -16,6 +16,7 @@
namespace shogun
{

/** Data for the tree nodes in a RelaxedTree */
struct RelaxedTreeNodeData
{
/** mu */
Expand Down
1 change: 1 addition & 0 deletions src/shogun/multiclass/tree/RelaxedTreeUtil.h
Expand Up @@ -19,6 +19,7 @@
namespace shogun
{

/** Utility class for CRelaxedTree */
class RelaxedTreeUtil
{
public:
Expand Down
4 changes: 3 additions & 1 deletion src/shogun/multiclass/tree/TreeMachineNode.h
Expand Up @@ -17,6 +17,7 @@
namespace shogun
{

/** The node of the tree structure forming a TreeMachine */
template <typename T>
class CTreeMachineNode
: public CSGObject
Expand Down Expand Up @@ -104,10 +105,10 @@ class CTreeMachineNode
/** extra data carried by the tree node */
T data;

typedef void (*data_print_func_t) (const T&);
/** debug print the tree structure
* @param data_print_func the function to print the data payload
*/
typedef void (*data_print_func_t) (const T&);
void debug_print(data_print_func_t data_print_func)
{
debug_print_impl(data_print_func, this, 0);
Expand All @@ -119,6 +120,7 @@ class CTreeMachineNode
CTreeMachineNode *m_parent; ///< parent node
int32_t m_machine; ///< machine index associated with this node

/** implementation of printing the tree for debugging purpose */
static void debug_print_impl(data_print_func_t data_print_func, CTreeMachineNode<T> *node, int32_t depth)
{
for (int32_t i=0; i < depth; ++i)
Expand Down
2 changes: 2 additions & 0 deletions src/shogun/multiclass/tree/VwConditionalProbabilityTree.h
Expand Up @@ -19,6 +19,7 @@
namespace shogun
{

/** Tree Data for Vowpal Wabbit Conditional Probability Tree */
struct VwConditionalProbabilityTreeNodeData
{
int32_t label;
Expand All @@ -27,6 +28,7 @@ struct VwConditionalProbabilityTreeNodeData
VwConditionalProbabilityTreeNodeData():label(-1), p_right(0) {}
};

/** Conditional Probability Tree using Vowpal Wabbit for base machine. */
class CVwConditionalProbabilityTree: public CTreeMachine<VwConditionalProbabilityTreeNodeData>
{
public:
Expand Down

0 comments on commit 4cbdfa4

Please sign in to comment.