SHOGUN  5.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules
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!") \
}
#define SG_ERROR(...)
Definition: SGIO.h:129
template class SGSparseVectorEntry
Definition: File.h:23

Definition at line 130 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!") \
}
#define SG_ERROR(...)
Definition: SGIO.h:129
double float64_t
Definition: common.h:50
template class SGSparseVectorEntry
Definition: File.h:23

Definition at line 156 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!") \
}
#define SG_ERROR(...)
Definition: SGIO.h:129

Definition at line 80 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!") \
}
#define SG_ERROR(...)
Definition: SGIO.h:129
double float64_t
Definition: common.h:50

Definition at line 105 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!") \
}
#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.

Definition at line 30 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!") \
}
#define SG_ERROR(...)
Definition: SGIO.h:129
double float64_t
Definition: common.h:50

Definition at line 55 of file StreamingFile.cpp.


SHOGUN Machine Learning Toolbox - Documentation