Skip to content

Commit

Permalink
Fulfilled a few doc to avoid warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
lisitsyn committed Aug 16, 2012
1 parent ef5cfce commit 2fecaab
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/shogun/multiclass/tree/ConditionalProbabilityTreeNodeData.h
Expand Up @@ -16,11 +16,17 @@ namespace shogun

struct ConditionalProbabilityTreeNodeData
{
/** labels */
int32_t label;
float64_t p_right; // prob of right subtree, used in prediction
/** prob of right subtree used in prediction */
float64_t p_right;

ConditionalProbabilityTreeNodeData():label(-1), p_right(0) {}
/** constructor */
ConditionalProbabilityTreeNodeData(): label(-1), p_right(0)
{
}

/** print data */
static void print_data(const ConditionalProbabilityTreeNodeData &data)
{
SG_SPRINT("label=%d\n", data.label);
Expand Down
2 changes: 2 additions & 0 deletions src/shogun/multiclass/tree/TreeMachine.h
Expand Up @@ -20,6 +20,7 @@ namespace shogun
template <class T> class CTreeMachine: public CBaseMulticlassMachine
{
public:
/** node_t type */
typedef CTreeMachineNode<T> node_t;

/** constructor */
Expand All @@ -39,6 +40,7 @@ template <class T> class CTreeMachine: public CBaseMulticlassMachine
virtual const char* get_name() const { return "TreeMachine"; }

protected:
/** tree root */
CTreeMachineNode<T> *m_root;
};

Expand Down

0 comments on commit 2fecaab

Please sign in to comment.