Go to the documentation of this file.
10 #ifndef __STREAMING_ASCIIFILE_H__
11 #define __STREAMING_ASCIIFILE_H__
60 return (atoi(str)!=0);
63 #define GET_VECTOR_DECL(sg_type) \
64 virtual void get_vector \
65 (sg_type*& vector, int32_t& len); \
67 virtual void get_vector_and_label \
68 (sg_type*& vector, int32_t& len, float64_t& label); \
70 virtual void get_string \
71 (sg_type*& vector, int32_t& len); \
73 virtual void get_string_and_label \
74 (sg_type*& vector, int32_t& len, float64_t& label); \
76 virtual void get_sparse_vector \
77 (SGSparseVectorEntry<sg_type>*& vector, int32_t& len); \
79 virtual void get_sparse_vector_and_label \
80 (SGSparseVectorEntry<sg_type>*& vector, int32_t& len, float64_t& label);
95 #undef GET_VECTOR_DECL
100 return "StreamingAsciiFile";
111 template <
class T>
void append_item(
DynArray<T>* items,
char* ptr_data,
char* ptr_item);
120 #endif //__STREAMING_ASCIIFILE_H__
SHOGUN Machine Learning Toolbox - Documentation