SHOGUN  v2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Macros
StreamingFile.cpp File Reference

Go to the source code of this file.

Macros

#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)

Macro Definition Documentation

#define GET_SPARSE_VECTOR (   fname,
  conv,
  sg_type 
)
Value:
\
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!"); \
}

Definition at line 129 of file StreamingFile.cpp.

#define GET_SPARSE_VECTOR_AND_LABEL (   fname,
  conv,
  sg_type 
)
Value:
\
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!"); \
}

Definition at line 155 of file StreamingFile.cpp.

#define GET_STRING (   fname,
  conv,
  sg_type 
)
Value:
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!"); \
}

Definition at line 79 of file StreamingFile.cpp.

#define GET_STRING_AND_LABEL (   fname,
  conv,
  sg_type 
)
Value:
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!"); \
}

Definition at line 104 of file StreamingFile.cpp.

#define GET_VECTOR (   fname,
  conv,
  sg_type 
)
Value:
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!"); \
}

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.

Definition at line 29 of file StreamingFile.cpp.

#define GET_VECTOR_AND_LABEL (   fname,
  conv,
  sg_type 
)
Value:
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!"); \
}

Definition at line 54 of file StreamingFile.cpp.


SHOGUN Machine Learning Toolbox - Documentation