SHOGUN
3.2.1
首页
相关页面
模块
类
文件
文件列表
文件成员
全部
类
命名空间
文件
函数
变量
类型定义
枚举
枚举值
友元
宏定义
组
页
src
shogun
structure
BmrmStatistics.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
* Copyright (C) 2012 Michal Uricar, uricamic@cmp.felk.cvut.cz
8
*
9
*/
10
11
#ifndef BMRM_RETURN_VALUE_H_
12
#define BMRM_RETURN_VALUE_H_
13
14
#include <
shogun/lib/common.h
>
15
#include <
shogun/io/SerializableFile.h
>
16
#include <
shogun/lib/SGVector.h
>
17
18
namespace
shogun
19
{
20
22
struct
BmrmStatistics
23
{
25
BmrmStatistics
()
26
{
27
nIter
= 0;
28
nCP
= 0;
29
nzA
= 0;
30
Fp
= 0;
31
Fd
= 0;
32
qp_exitflag
= 0;
33
exitflag
= 0;
34
};
35
37
virtual
~BmrmStatistics
() { };
38
40
bool
load_serializable
(
CSerializableFile
* file,
const
char
* prefix=
""
) {
return
false
; }
41
43
bool
save_serializable
(
CSerializableFile
* file,
const
char
* prefix=
""
) {
return
false
; }
44
46
uint32_t
nIter
;
47
49
uint32_t
get_n_iters
()
const
{
return
nIter
; }
50
52
uint32_t
nCP
;
53
55
uint32_t
nzA
;
56
58
float64_t
Fp
;
59
61
float64_t
Fd
;
62
64
int8_t
qp_exitflag
;
65
71
int8_t
exitflag
;
72
74
SGVector< float64_t >
hist_Fp
;
75
77
SGVector< float64_t >
get_hist_Fp_vector
()
const
{
return
hist_Fp
; };
78
80
SGVector< float64_t >
hist_Fd
;
81
83
SGVector< float64_t >
get_hist_Fd_vector
()
const
{
return
hist_Fd
; };
84
86
SGVector< float64_t >
hist_wdist
;
87
89
SGVector< float64_t >
get_hist_wdist_vector
()
const
{
return
hist_wdist
; };
90
};
91
92
}
93
#endif
SHOGUN
机器学习工具包 - 项目文档