SHOGUN
6.0.0
src
shogun
optimization
lbfgs
lbfgscommon.h
Go to the documentation of this file.
1
#ifndef __LBFGSCOMMON_H__
2
#define __LBFGSCOMMON_H__
3
4
#include <shogun/lib/config.h>
5
#include <
shogun/lib/common.h
>
6
#include <
shogun/io/SGIO.h
>
7
8
9
namespace
shogun
10
{
11
13
enum
ELBFGSLineSearch
14
{
15
MORETHUENTE
=0,
16
BACKTRACKING_ARMIJO
=1,
17
BACKTRACKING_WOLFE
=2,
18
BACKTRACKING_STRONG_WOLFE
=3
19
};
20
21
#ifndef DOXYGEN_SHOULD_SKIP_THIS
22
struct
LBFGSLineSearchHelper
23
{
24
static
int8_t get_lbfgs_linear_search_id(
ELBFGSLineSearch
method)
25
{
26
return
(int8_t) method;
27
}
28
29
static
ELBFGSLineSearch
get_lbfgs_linear_search(int8_t method_id)
30
{
31
REQUIRE
(method_id>=0 && method_id<4,
"Unsupported method id (%d)\n"
, method_id);
32
return
(
ELBFGSLineSearch
) method_id;
33
}
34
};
35
#endif
36
37
}
// namespace shogun
38
39
#endif
/*__LBFGSCOMMON_H__*/
shogun::BACKTRACKING_ARMIJO
Definition:
lbfgscommon.h:16
SGIO.h
REQUIRE
#define REQUIRE(x,...)
Definition:
SGIO.h:205
shogun::BACKTRACKING_STRONG_WOLFE
Definition:
lbfgscommon.h:18
shogun::BACKTRACKING_WOLFE
Definition:
lbfgscommon.h:17
shogun
all of classes and functions are contained in the shogun namespace
Definition:
class_list.h:18
shogun::ELBFGSLineSearch
ELBFGSLineSearch
Definition:
lbfgscommon.h:13
common.h
shogun::MORETHUENTE
Definition:
lbfgscommon.h:15
SHOGUN
Machine Learning Toolbox - Documentation