16 #ifndef _VW_PARSER_H__
17 #define _VW_PARSER_H__
144 if (label != FLT_MAX)
202 virtual const char*
get_name()
const {
return "VwParser"; }
245 while (start != max && *start != v)
272 #endif // _VW_PARSER_H__
uint32_t(* hash_func_t)(substring, uint32_t)
Hash function typedef, takes a substring and seed as parameters.
void feature_value(substring &s, v_array< substring > &name, float32_t &v)
CVwCacheWriter is the base class for all VW cache creating classes.
char * safe_index(char *start, char v, char *max)
Class CVwEnvironment is the environment used by VW.
int32_t read_features(CIOBuffer *buf, VwExample *&ex)
CVwEnvironment * env
Environment of VW - used by parser.
CVwParser is the object which provides the functions to parse examples from buffered input...
float64_t min_label
Smallest label seen.
Class v_array taken directly from JL's implementation.
EVwCacheType get_cache_type()
void set_minmax(float64_t label)
CVwCacheWriter * cache_writer
Object which will be used for writing cache.
E_VW_PARSER_TYPE
The type of input to parse.
int32_t read_dense_features(CIOBuffer *buf, VwExample *&ae)
void set_write_cache(bool wr_cache)
CVwEnvironment * get_env()
struct Substring, specified by start position and end position.
float64_t max_label
Largest label seen.
void tokenize(char delim, substring s, v_array< substring > &ret)
bool write_cache
Whether to write cache or not.
Class SGObject is the base class of all shogun objects.
int32_t read_svmlight_features(CIOBuffer *buf, VwExample *&ae)
virtual const char * get_name() const
EVwCacheType cache_type
Type of cache.
all of classes and functions are contained in the shogun namespace
void noop_mm(float64_t label)
void set_mm(float64_t label)
void set_env(CVwEnvironment *env_to_use)
void init_cache(char *fname, EVwCacheType type=C_NATIVE)
hash_func_t hasher
Hash function to use, of type hash_func_t.
void set_cache_parameters(char *fname, EVwCacheType type=C_NATIVE)
Matrix::Scalar max(Matrix m)