SHOGUN
v1.1.0
|
Class CVwNativeCacheWriter writes a cache exactly as that which would be produced by VW's default cache format.
Definition at line 26 of file VwNativeCacheWriter.h.
Public Member Functions | |
CVwNativeCacheWriter () | |
CVwNativeCacheWriter (char *fname, CVwEnvironment *env_to_use) | |
virtual | ~CVwNativeCacheWriter () |
virtual void | set_file (int32_t f) |
virtual void | cache_example (VwExample *&ex) |
virtual const char * | get_name () const |
![]() | |
CVwCacheWriter () | |
CVwCacheWriter (char *fname, CVwEnvironment *env_to_use) | |
CVwCacheWriter (int32_t f, CVwEnvironment *env_to_use) | |
virtual | ~CVwCacheWriter () |
virtual void | set_env (CVwEnvironment *env_to_use) |
virtual CVwEnvironment * | get_env () |
![]() | |
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 |
IOBuffer used for writing. | |
![]() | |
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 VwNativeCacheWriter.cpp.
CVwNativeCacheWriter | ( | 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 VwNativeCacheWriter.cpp.
|
virtual |
Destructor
Definition at line 35 of file VwNativeCacheWriter.cpp.
|
virtual |
Cache one example
ex | example to write to cache |
Implements CVwCacheWriter.
Definition at line 166 of file VwNativeCacheWriter.cpp.
|
virtual |
Return the name of the object.
Implements CSGObject.
Definition at line 66 of file VwNativeCacheWriter.h.
|
virtual |
Set the file descriptor to use
f | descriptor of cache file |
Reimplemented from CVwCacheWriter.
Definition at line 41 of file VwNativeCacheWriter.cpp.
|
protected |
IOBuffer used for writing.
Definition at line 146 of file VwNativeCacheWriter.h.