SHOGUN
3.2.1
首页
相关页面
模块
类
文件
文件列表
文件成员
全部
类
命名空间
文件
函数
变量
类型定义
枚举
枚举值
友元
宏定义
组
页
src
shogun
structure
PlifBase.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-2008 Gunnar Raetsch
8
* Copyright (C) 1999-2009 Fraunhofer Institute FIRST and Max-Planck-Society
9
*/
10
11
#ifndef __PLIF_BASE_H__
12
#define __PLIF_BASE_H__
13
14
#include <
shogun/lib/common.h
>
15
#include <
shogun/base/SGObject.h
>
16
#include <
shogun/mathematics/Math.h
>
17
18
namespace
shogun
19
{
21
class
CPlifBase
:
public
CSGObject
22
{
23
public
:
25
CPlifBase
() {};
26
virtual
~CPlifBase
() {};
27
36
virtual
float64_t
lookup_penalty
(
37
float64_t
p_value,
float64_t
* svm_values)
const
=0;
38
47
virtual
float64_t
lookup_penalty
(
48
int32_t p_value,
float64_t
* svm_values)
const
=0;
49
54
virtual
void
penalty_clear_derivative
()=0;
55
64
virtual
void
penalty_add_derivative
(
65
float64_t
p_value,
float64_t
* svm_values,
float64_t
factor)=0 ;
66
73
virtual
float64_t
get_max_value
()
const
= 0;
74
81
virtual
float64_t
get_min_value
()
const
= 0;
82
87
virtual
void
get_used_svms
(int32_t* num_svms, int32_t* svm_ids) = 0;
88
95
virtual
bool
uses_svm_values
()
const
= 0;
96
103
virtual
int32_t
get_max_id
()
const
= 0;
104
109
virtual
void
list_plif
()
const
= 0 ;
110
111
};
112
}
113
#endif
SHOGUN
机器学习工具包 - 项目文档