SHOGUN
v1.1.0
|
Class CVwNativeCacheReader reads from a cache exactly as that which has been produced by VW's default cache format.
It is compatible with VW version 5.1.
Definition at line 39 of file VwNativeCacheReader.h.
Public Member Functions | |
CVwNativeCacheReader () | |
CVwNativeCacheReader (char *fname, CVwEnvironment *env_to_use) | |
CVwNativeCacheReader (int32_t f, CVwEnvironment *env_to_use) | |
virtual | ~CVwNativeCacheReader () |
virtual void | set_file (int32_t f) |
virtual bool | read_cached_example (VwExample *const ae) |
void | check_cache_metadata () |
virtual const char * | get_name () const |
![]() | |
CVwCacheReader () | |
CVwCacheReader (char *fname, CVwEnvironment *env_to_use) | |
CVwCacheReader (int32_t f, CVwEnvironment *env_to_use) | |
virtual | ~CVwCacheReader () |
virtual void | set_env (CVwEnvironment *env_to_use) |
virtual CVwEnvironment * | get_env () |
virtual void | set_mm (float64_t label) |
virtual void | noop_mm (float64_t label) |
virtual void | set_minmax (float64_t label) |
![]() | |
CSGObject () | |
CSGObject (const CSGObject &orig) | |
virtual | ~CSGObject () |
virtual bool | is_generic (EPrimitiveType *generic) const |
template<class T > | |
void | set_generic () |
void | unset_generic () |
virtual void | print_serializable (const char *prefix="") |
virtual bool | save_serializable (CSerializableFile *file, const char *prefix="") |
virtual bool | load_serializable (CSerializableFile *file, const char *prefix="") |
void | set_global_io (SGIO *io) |
SGIO * | get_global_io () |
void | set_global_parallel (Parallel *parallel) |
Parallel * | get_global_parallel () |
void | set_global_version (Version *version) |
Version * | get_global_version () |
SGVector< char * > | get_modelsel_names () |
char * | get_modsel_param_descr (const char *param_name) |
index_t | get_modsel_param_index (const char *param_name) |
Protected Attributes | |
CIOBuffer | buf |
Buffer to read from. | |
![]() | |
int32_t | fd |
File descriptor. | |
CVwEnvironment * | env |
Environment. |
Additional Inherited Members | |
![]() | |
SGIO * | io |
Parallel * | parallel |
Version * | version |
Parameter * | m_parameters |
Parameter * | m_model_selection_parameters |
![]() | |
virtual void | load_serializable_pre () throw (ShogunException) |
virtual void | load_serializable_post () throw (ShogunException) |
virtual void | save_serializable_pre () throw (ShogunException) |
virtual void | save_serializable_post () throw (ShogunException) |
Default constructor
Definition at line 20 of file VwNativeCacheReader.cpp.
CVwNativeCacheReader | ( | char * | fname, |
CVwEnvironment * | env_to_use | ||
) |
Constructor, opens a file whose name is specified
fname | file name |
env_to_use | Environment to use |
Definition at line 26 of file VwNativeCacheReader.cpp.
CVwNativeCacheReader | ( | int32_t | f, |
CVwEnvironment * | env_to_use | ||
) |
Constructor, passed a file descriptor
f | descriptor of opened file |
env_to_use | Environment to use |
Definition at line 34 of file VwNativeCacheReader.cpp.
|
virtual |
Destructor
Definition at line 42 of file VwNativeCacheReader.cpp.
void check_cache_metadata | ( | ) |
Check whether cache is readable
Definition at line 63 of file VwNativeCacheReader.cpp.
|
virtual |
Return the name of the object.
Reimplemented from CVwCacheReader.
Definition at line 92 of file VwNativeCacheReader.h.
|
virtual |
Read one cached example
Implements CVwCacheReader.
Definition at line 143 of file VwNativeCacheReader.cpp.
|
virtual |
Set the file descriptor to use
f | descriptor of cache file |
Reimplemented from CVwCacheReader.
Definition at line 47 of file VwNativeCacheReader.cpp.
|
protected |
Buffer to read from.
Definition at line 153 of file VwNativeCacheReader.h.