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