SHOGUN  4.1.0
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
BinaryLabels.h
浏览该文件的文档.
1 /*
2  * This program is free software; you can redistribute it and/or modify
3  * it under the terms of the GNU General Public License as published by
4  * the Free Software Foundation; either version 3 of the License, or
5  * (at your option) any later version.
6  *
7  * Written (W) 1999-2009 Soeren Sonnenburg
8  * Written (W) 1999-2008 Gunnar Raetsch
9  * Written (W) 2011-2012 Heiko Strathmann
10  * Copyright (C) 1999-2009 Fraunhofer Institute FIRST and Max-Planck-Society
11  */
12 
13 #ifndef _BINARY_LABELS__H__
14 #define _BINARY_LABELS__H__
15 
16 #include <shogun/lib/config.h>
17 
18 #include <shogun/lib/common.h>
21 
22 namespace shogun
23 {
24 class CFile;
25 template <class T> class SGVector;
26 
38 {
39 public:
41  CBinaryLabels();
42 
47  CBinaryLabels(int32_t num_labels);
48 
49 #if !defined(SWIGJAVA) && !defined(SWIGCSHARP)
50 
56 
63 #endif
64 
72  CBinaryLabels(SGVector<float64_t> src, float64_t threshold = 0.0);
73 
78  CBinaryLabels(CFile * loader);
79 
86  virtual void ensure_valid(const char * context = NULL);
87 
92  virtual ELabelType get_label_type() const;
93 
112  void scores_to_probabilities(float64_t a = 0, float64_t b = 0);
113 
115  virtual const char * get_name() const
116  {
117  return "BinaryLabels";
118  }
119 };
120 }
121 #endif
double float64_t
Definition: common.h:50
A File access base class.
Definition: File.h:34
virtual void ensure_valid(const char *context=NULL)
virtual const char * get_name() const
Definition: BinaryLabels.h:115
all of classes and functions are contained in the shogun namespace
Definition: class_list.h:18
void scores_to_probabilities(float64_t a=0, float64_t b=0)
Binary Labels for binary classification.
Definition: BinaryLabels.h:37
Dense integer or floating point labels.
Definition: DenseLabels.h:35
ELabelType
Definition: LabelTypes.h:15
virtual ELabelType get_label_type() const

SHOGUN 机器学习工具包 - 项目文档