38 CUAIFile(FILE* f,
const char* name=NULL);
46 CUAIFile(
int fd,
const char* mode,
const char* name=NULL);
54 CUAIFile(
const char* fname,
char rw=
'r',
const char* name=NULL);
117 int32_t& num_factors,
126 #ifndef SWIG // SWIG should skip this
134 virtual void get_vector(int8_t*& vector, int32_t& len);
135 virtual void get_vector(uint8_t*& vector, int32_t& len);
136 virtual void get_vector(
char*& vector, int32_t& len);
137 virtual void get_vector(int32_t*& vector, int32_t& len);
138 virtual void get_vector(uint32_t*& vector, int32_t& len);
142 virtual void get_vector(int16_t*& vector, int32_t& len);
143 virtual void get_vector(uint16_t*& vector, int32_t& len);
144 virtual void get_vector(int64_t*& vector, int32_t& len);
145 virtual void get_vector(uint64_t*& vector, int32_t& len);
158 virtual void set_vector(
const int8_t* vector, int32_t len);
159 virtual void set_vector(
const uint8_t* vector, int32_t len);
160 virtual void set_vector(
const char* vector, int32_t len);
161 virtual void set_vector(
const int32_t* vector, int32_t len);
162 virtual void set_vector(
const uint32_t* vector, int32_t len);
166 virtual void set_vector(
const int16_t* vector, int32_t len);
167 virtual void set_vector(
const uint16_t* vector, int32_t len);
168 virtual void set_vector(
const int64_t* vector, int32_t len);
169 virtual void set_vector(
const uint64_t* vector, int32_t len);
172 #endif // #ifndef SWIG // SWIG should skip this
174 virtual const char*
get_name()
const {
return "UAIFile"; }
181 void init_with_defaults();
virtual void set_factors_table(int32_t num_factors, const SGVector< float64_t > *factors_table)
SGVector< float64_t > * m_factors_table
SGVector< int32_t > m_vars_card
virtual void set_vector(const int8_t *vector, int32_t len)
virtual void get_preamble(SGVector< char > &net_type, int32_t &num_vars, SGVector< int32_t > &vars_card, int32_t &num_factors, SGVector< int32_t > *&factors_scope)
CLineReader * m_line_reader
virtual const char * get_name() const
SGVector< char > m_net_type
Class for buffered reading from a ascii file.
virtual void get_factors_table(SGVector< float64_t > *&factors_table)
virtual void get_vector(int8_t *&vector, int32_t &len)
CDelimiterTokenizer * m_tokenizer
SGVector< int32_t > * m_factors_scope
Class for reading from a string.
A File access base class.
virtual void set_num_vars(int32_t num_vars)
CDelimiterTokenizer * m_line_tokenizer
virtual void set_vars_card(SGVector< int32_t > vars_card)
virtual void set_factors_scope(int32_t num_factors, const SGVector< int32_t > *factors_scope)
all of classes and functions are contained in the shogun namespace
The class CDelimiterTokenizer is used to tokenize a SGVector into tokens using custom chars as ...
virtual void set_num_factors(int32_t num_vars)
Class UAIFILE used to read data from UAI files. See http://graphmod.ics.uci.edu/uai08/FileFormat for ...
virtual void set_net_type(const char *net_type)