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

浏览源代码.

宏定义

#define GET_VECTOR(fname, conv, sg_type)
 
#define GET_VECTOR_AND_LABEL(fname, conv, 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_SPARSE_VECTOR (   fname,
  conv,
  sg_type 
)
值:
\
void CStreamingFile::get_sparse_vector \
(SGSparseVectorEntry<sg_type>*& vector, int32_t& num_feat) \
{ \
vector=NULL; \
num_feat=-1; \
SG_ERROR("Read function not supported by the feature type!") \
}
#define SG_ERROR(...)
Definition: SGIO.h:129
template class SGSparseVectorEntry
Definition: File.h:23

在文件 StreamingFile.cpp130 行定义.

#define GET_SPARSE_VECTOR_AND_LABEL (   fname,
  conv,
  sg_type 
)
值:
\
void CStreamingFile::get_sparse_vector_and_label \
int32_t& num_feat, \
float64_t& label) \
{ \
vector=NULL; \
num_feat=-1; \
SG_ERROR("Read function not supported by the feature type!") \
}
#define SG_ERROR(...)
Definition: SGIO.h:129
double float64_t
Definition: common.h:50
template class SGSparseVectorEntry
Definition: File.h:23

在文件 StreamingFile.cpp156 行定义.

#define GET_STRING (   fname,
  conv,
  sg_type 
)
值:
void CStreamingFile::get_string \
(sg_type*& vector, int32_t& num_feat) \
{ \
vector=NULL; \
num_feat=-1; \
SG_ERROR("Read function not supported by the feature type!") \
}
#define SG_ERROR(...)
Definition: SGIO.h:129

在文件 StreamingFile.cpp80 行定义.

#define GET_STRING_AND_LABEL (   fname,
  conv,
  sg_type 
)
值:
void CStreamingFile::get_string_and_label \
(sg_type*& vector, int32_t& num_feat, float64_t& label) \
{ \
vector=NULL; \
num_feat=-1; \
SG_ERROR("Read function not supported by the feature type!") \
}
#define SG_ERROR(...)
Definition: SGIO.h:129
double float64_t
Definition: common.h:50

在文件 StreamingFile.cpp105 行定义.

#define GET_VECTOR (   fname,
  conv,
  sg_type 
)
值:
void CStreamingFile::get_vector \
(sg_type*& vector, int32_t& num_feat) \
{ \
vector=NULL; \
num_feat=-1; \
SG_ERROR("Read function not supported by the feature type!") \
}
#define SG_ERROR(...)
Definition: SGIO.h:129

Dummy implementations of all the functions declared in the header file.

The derived class should reimplement whichever functions it needs to use.

If this is not done, the default implementation sets the vector to NULL and number of features to -1.

在文件 StreamingFile.cpp30 行定义.

#define GET_VECTOR_AND_LABEL (   fname,
  conv,
  sg_type 
)
值:
void CStreamingFile::get_vector_and_label \
(sg_type*& vector, int32_t& num_feat, float64_t& label) \
{ \
vector=NULL; \
num_feat=-1; \
SG_ERROR("Read function not supported by the feature type!") \
}
#define SG_ERROR(...)
Definition: SGIO.h:129
double float64_t
Definition: common.h:50

在文件 StreamingFile.cpp55 行定义.


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