SHOGUN  4.1.0
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义  
宏定义
StreamingAsciiFile.cpp 文件参考

浏览源代码.

宏定义

#define GET_VECTOR(fname, conv, sg_type)
 
#define GET_FLOAT_VECTOR(sg_type)
 
#define GET_VECTOR_AND_LABEL(fname, conv, sg_type)
 
#define GET_FLOAT_VECTOR_AND_LABEL(sg_type)
 
#define GET_STRING(fname, conv, sg_type)
 
#define GET_STRING_AND_LABEL(fname, conv, sg_type)
 
#define GET_SPARSE_VECTOR(fname, conv, sg_type)
 
#define GET_SPARSE_VECTOR_AND_LABEL(fname, conv, sg_type)
 

宏定义说明

#define GET_FLOAT_VECTOR (   sg_type)

在文件 StreamingAsciiFile.cpp123 行定义.

#define GET_FLOAT_VECTOR_AND_LABEL (   sg_type)

在文件 StreamingAsciiFile.cpp248 行定义.

#define GET_SPARSE_VECTOR (   fname,
  conv,
  sg_type 
)

在文件 StreamingAsciiFile.cpp403 行定义.

#define GET_SPARSE_VECTOR_AND_LABEL (   fname,
  conv,
  sg_type 
)

在文件 StreamingAsciiFile.cpp497 行定义.

#define GET_STRING (   fname,
  conv,
  sg_type 
)
值:
void CStreamingAsciiFile::get_string(sg_type*& vector, int32_t& len) \
{ \
char* buffer = NULL; \
ssize_t bytes_read; \
\
bytes_read = buf->read_line(buffer); \
\
if (bytes_read<=1) \
{ \
vector=NULL; \
len=-1; \
return; \
} \
SG_DEBUG("Line read from the file:\n%s\n", buffer) \
/* Remove the terminating \n */ \
if (buffer[bytes_read-1]=='\n') \
{ \
len=bytes_read-1; \
buffer[bytes_read-1]='\0'; \
} \
else \
len=bytes_read; \
vector=(sg_type *) buffer; \
}
#define SG_RESET_LOCALE
Definition: SGIO.h:86
#define SG_SET_LOCALE_C
Definition: SGIO.h:85
#define SG_DEBUG(...)
Definition: SGIO.h:107

在文件 StreamingAsciiFile.cpp289 行定义.

#define GET_STRING_AND_LABEL (   fname,
  conv,
  sg_type 
)

在文件 StreamingAsciiFile.cpp336 行定义.

#define GET_VECTOR (   fname,
  conv,
  sg_type 
)

在文件 StreamingAsciiFile.cpp39 行定义.

#define GET_VECTOR_AND_LABEL (   fname,
  conv,
  sg_type 
)

在文件 StreamingAsciiFile.cpp162 行定义.


SHOGUN 机器学习工具包 - 项目文档