/usr/include/shogun/multiclass/tree/ConditionalProbabilityTreeNodeData.h is in libshogun-dev 3.1.1-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 | /*
* 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
{
/** @brief struct to store data of node of
* conditional probability tree
*/
struct ConditionalProbabilityTreeNodeData
{
/** labels */
int32_t label;
/** prob of right subtree used in prediction */
float64_t p_right;
/** constructor */
ConditionalProbabilityTreeNodeData(): label(-1), p_right(0)
{
}
/** print data */
static void print_data(const ConditionalProbabilityTreeNodeData &data)
{
SG_SPRINT("label=%d\n", data.label)
}
};
} /* shogun */
#endif /* end of include guard: CONDITIONALPROBABILITYTREENODEDATA_H__ */
|