Skip to content

Commit

Permalink
fix a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
yorkerlin committed Jul 6, 2016
1 parent 6f35ebe commit ffae144
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion examples/undocumented/libshogun/streaming_vwfeatures.cpp
Expand Up @@ -39,7 +39,6 @@ int main()
sgd->set_lambda(0.1);
sgd->train();

train_file->close();

// Now we want to test on other data
const char* test_file_name = "../data/fm_test_sparsereal.dat";
Expand Down
2 changes: 1 addition & 1 deletion src/shogun/io/streaming/StreamingVwCacheFile.cpp
Expand Up @@ -24,7 +24,7 @@ CStreamingVwCacheFile::CStreamingVwCacheFile(EVwCacheType cache_type)
init(cache_type);
}

CStreamingVwCacheFile::CStreamingVwCacheFile(char* fname, char rw, EVwCacheType cache_type)
CStreamingVwCacheFile::CStreamingVwCacheFile(const char* fname, char rw, EVwCacheType cache_type)
: CStreamingFile(fname, rw)
{
init(cache_type);
Expand Down
2 changes: 1 addition & 1 deletion src/shogun/io/streaming/StreamingVwCacheFile.h
Expand Up @@ -53,7 +53,7 @@ class CStreamingVwCacheFile: public CStreamingFile
* @param rw read/write mode
* @param cache_type type of cache - C_NATIVE or C_PROTOBUF
*/
CStreamingVwCacheFile(char* fname, char rw='r', EVwCacheType cache_type = C_NATIVE);
CStreamingVwCacheFile(const char* fname, char rw='r', EVwCacheType cache_type = C_NATIVE);

/**
* Destructor
Expand Down

0 comments on commit ffae144

Please sign in to comment.