SHOGUN
4.1.0
首页
相关页面
模块
类
文件
文件列表
文件成员
全部
类
命名空间
文件
函数
变量
类型定义
枚举
枚举值
友元
宏定义
组
页
src
shogun
features
宏定义
StringFeatures.cpp 文件参考
浏览源代码.
宏定义
#define
LOAD
(f_load, sg_type)
#define
SAVE
(f_write, sg_type)
宏定义说明
#define LOAD
(
f_load,
sg_type
)
值:
template
<>
void
CStringFeatures<sg_type>::load(CFile* loader) \
{
\
SG_INFO
(
"loading...\n"
) \
\
SG_SET_LOCALE_C
; \
SGString<sg_type>* strs; \
int32_t num_str; \
int32_t max_len; \
loader->f_load(strs, num_str, max_len); \
set_features(strs, num_str, max_len);
\
SG_RESET_LOCALE
; \
}
SG_INFO
#define SG_INFO(...)
Definition:
SGIO.h:118
SG_RESET_LOCALE
#define SG_RESET_LOCALE
Definition:
SGIO.h:86
SG_SET_LOCALE_C
#define SG_SET_LOCALE_C
Definition:
SGIO.h:85
在文件
StringFeatures.cpp
第
1921
行定义.
#define SAVE
(
f_write,
sg_type
)
值:
template
<>
void
CStringFeatures<sg_type>::save(CFile* writer) \
{ \
if (m_subset_stack->has_subsets()) \
SG_ERROR
(
"save() is not possible on subset"
)
\
SG_SET_LOCALE_C
;
\
ASSERT
(writer) \
writer->f_write(features, num_vectors);
\
SG_RESET_LOCALE
; \
}
SG_RESET_LOCALE
#define SG_RESET_LOCALE
Definition:
SGIO.h:86
SG_ERROR
#define SG_ERROR(...)
Definition:
SGIO.h:129
SG_SET_LOCALE_C
#define SG_SET_LOCALE_C
Definition:
SGIO.h:85
ASSERT
#define ASSERT(x)
Definition:
SGIO.h:201
在文件
StringFeatures.cpp
第
1950
行定义.
SHOGUN
机器学习工具包 - 项目文档