SHOGUN  4.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ECOCLLBDecoder.cpp
Go to the documentation of this file.
2 
3 using namespace shogun;
4 
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 }
index_t vlen
Definition: SGVector.h:492
double float64_t
Definition: common.h:50
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18
virtual float64_t compute_distance(SGVector< float64_t > outputs, const int32_t *code)

SHOGUN Machine Learning Toolbox - Documentation