Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Merge pull request #698 from pluskid/multiclass
renaming java modular: euclidian => euclidean
- Loading branch information
Showing
5 changed files
with
38 additions
and
14 deletions.
There are no files selected for viewing
File renamed without changes.
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
34 changes: 34 additions & 0 deletions
34
src/shogun/multiclass/tree/ConditionalProbabilityTreeNodeData.h
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* This program is free software; you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation; either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* Written (W) 2012 Chiyuan Zhang | ||
* Copyright (C) 2012 Chiyuan Zhang | ||
*/ | ||
|
||
#ifndef CONDITIONALPROBABILITYTREENODEDATA_H__ | ||
#define CONDITIONALPROBABILITYTREENODEDATA_H__ | ||
|
||
namespace shogun | ||
{ | ||
|
||
struct ConditionalProbabilityTreeNodeData | ||
{ | ||
int32_t label; | ||
float64_t p_right; // prob of right subtree, used in prediction | ||
|
||
ConditionalProbabilityTreeNodeData():label(-1), p_right(0) {} | ||
|
||
static void print(const ConditionalProbabilityTreeNodeData &data) | ||
{ | ||
SG_SPRINT("label=%d\n", data.label); | ||
} | ||
}; | ||
|
||
|
||
} /* shogun */ | ||
|
||
#endif /* end of include guard: CONDITIONALPROBABILITYTREENODEDATA_H__ */ | ||
|