SHOGUN
4.1.0
首页
相关页面
模块
类
文件
文件列表
文件成员
全部
类
命名空间
文件
函数
变量
类型定义
枚举
枚举值
友元
宏定义
组
页
src
shogun
multiclass
ecoc
ECOCLLBDecoder.cpp
浏览该文件的文档.
1
#include <
shogun/multiclass/ecoc/ECOCLLBDecoder.h
>
2
3
using namespace
shogun
;
4
5
float64_t
CECOCLLBDecoder::compute_distance
(
SGVector<float64_t>
outputs,
const
int32_t *code)
6
{
7
float64_t
loss = 0;
8
for
(int32_t i=0; i < outputs.
vlen
; ++i)
9
loss += outputs[i]*code[i];
10
return
-loss;
11
}
shogun::SGVector::vlen
index_t vlen
Definition:
SGVector.h:494
shogun::SGVector< float64_t >
float64_t
double float64_t
Definition:
common.h:50
ECOCLLBDecoder.h
shogun
all of classes and functions are contained in the shogun namespace
Definition:
class_list.h:18
shogun::CECOCLLBDecoder::compute_distance
virtual float64_t compute_distance(SGVector< float64_t > outputs, const int32_t *code)
Definition:
ECOCLLBDecoder.cpp:5
SHOGUN
机器学习工具包 - 项目文档