SHOGUN  6.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:128
template class SGSparseVectorEntry
Definition: File.h:23

Definition at line 133 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:128
double float64_t
Definition: common.h:60
template class SGSparseVectorEntry
Definition: File.h:23

Definition at line 159 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:128

Definition at line 83 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:128
double float64_t
Definition: common.h:60

Definition at line 108 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:128

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 33 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:128
double float64_t
Definition: common.h:60

Definition at line 58 of file StreamingFile.cpp.


SHOGUN Machine Learning Toolbox - Documentation