SHOGUN  v3.2.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)
 

宏定义说明

§ GET_FLOAT_VECTOR

#define GET_FLOAT_VECTOR (   sg_type)

在文件 StreamingAsciiFile.cpp121 行定义.

§ GET_FLOAT_VECTOR_AND_LABEL

#define GET_FLOAT_VECTOR_AND_LABEL (   sg_type)

在文件 StreamingAsciiFile.cpp246 行定义.

§ GET_SPARSE_VECTOR

#define GET_SPARSE_VECTOR (   fname,
  conv,
  sg_type 
)

在文件 StreamingAsciiFile.cpp401 行定义.

§ GET_SPARSE_VECTOR_AND_LABEL

#define GET_SPARSE_VECTOR_AND_LABEL (   fname,
  conv,
  sg_type 
)

在文件 StreamingAsciiFile.cpp495 行定义.

§ GET_STRING

#define GET_STRING (   fname,
  conv,
  sg_type 
)
值:
void CStreamingAsciiFile::get_string(sg_type*& vector, int32_t& len) \
{ \
char* buffer = NULL; \
ssize_t bytes_read; \
\
SG_SET_LOCALE_C; \
bytes_read = buf->read_line(buffer); \
\
if (bytes_read<=1) \
{ \
vector=NULL; \
len=-1; \
SG_RESET_LOCALE; \
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; \
SG_RESET_LOCALE; \
}
#define SG_DEBUG(...)
Definition: SGIO.h:109

在文件 StreamingAsciiFile.cpp287 行定义.

§ GET_STRING_AND_LABEL

#define GET_STRING_AND_LABEL (   fname,
  conv,
  sg_type 
)

在文件 StreamingAsciiFile.cpp334 行定义.

§ GET_VECTOR

#define GET_VECTOR (   fname,
  conv,
  sg_type 
)

在文件 StreamingAsciiFile.cpp37 行定义.

§ GET_VECTOR_AND_LABEL

#define GET_VECTOR_AND_LABEL (   fname,
  conv,
  sg_type 
)

在文件 StreamingAsciiFile.cpp160 行定义.


SHOGUN Machine Learning Toolbox - Documentation