SHOGUN
3.2.1
首页
相关页面
模块
类
文件
文件列表
文件成员
全部
类
命名空间
文件
函数
变量
类型定义
枚举
枚举值
友元
宏定义
组
页
src
shogun
transfer
domain_adaptation
DomainAdaptationMulticlassLibLinear.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) 2012 Sergey Lisitsyn
8
* Copyright (C) 2012 Sergey Lisitsyn
9
*/
10
11
#ifndef _DOMAINADAPTATIONMULTICLASSLIBLINEAR_H___
12
#define _DOMAINADAPTATIONMULTICLASSLIBLINEAR_H___
13
#include <
shogun/lib/config.h
>
14
#ifdef HAVE_LAPACK
15
#include <
shogun/multiclass/MulticlassLibLinear.h
>
16
17
namespace
shogun
18
{
19
23
class
CDomainAdaptationMulticlassLibLinear
:
public
CMulticlassLibLinear
24
{
25
public
:
27
CDomainAdaptationMulticlassLibLinear
();
28
35
CDomainAdaptationMulticlassLibLinear
(
float64_t
target_C,
36
CDotFeatures
* target_features,
CLabels
* target_labels,
37
CLinearMulticlassMachine
* source_machine);
38
40
virtual
~CDomainAdaptationMulticlassLibLinear
();
41
43
virtual
CBinaryLabels
*
get_submachine_outputs
(int32_t);
44
46
virtual
const
char
*
get_name
()
const
47
{
48
return
"DomainAdaptationMulticlassLibLinear"
;
49
}
50
54
float64_t
get_source_bias
()
const
;
58
void
set_source_bias
(
float64_t
source_bias);
59
63
float64_t
get_train_factor
()
const
;
67
void
set_train_factor
(
float64_t
train_factor);
68
72
CLinearMulticlassMachine
*
get_source_machine
()
const
;
76
void
set_source_machine
(
CLinearMulticlassMachine
* source_machine);
77
78
protected
:
79
81
virtual
SGMatrix<float64_t>
obtain_regularizer_matrix
()
const
;
82
83
private
:
84
86
void
init_defaults();
87
89
void
register_parameters();
90
91
protected
:
92
94
float64_t
m_train_factor
;
95
97
float64_t
m_source_bias
;
98
100
CLinearMulticlassMachine
*
m_source_machine
;
101
};
102
}
103
#endif
/* HAVE_LAPACK */
104
#endif
SHOGUN
机器学习工具包 - 项目文档