Skip to content

Commit

Permalink
Merge pull request #3779 from iglesias/fix/libsvr-example
Browse files Browse the repository at this point in the history
Remove kernel cache size set to 0 in libshogun libsvr example.
  • Loading branch information
vigsterkr committed Apr 23, 2017
2 parents 24e6a24 + 720a55b commit 80a5a1a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/undocumented/libshogun/regression_libsvr.cpp
Expand Up @@ -18,7 +18,6 @@ using namespace shogun;

void test_libsvr()
{
const int32_t kernel_cache=0;
const float64_t rbf_width=10;
const float64_t svm_C=10;
const float64_t svm_nu=0.01;
Expand Down Expand Up @@ -48,7 +47,7 @@ void test_libsvr()
CDenseFeatures<float64_t>* features_test=new CDenseFeatures<float64_t>(
feat_test);

CGaussianKernel* kernel=new CGaussianKernel(kernel_cache, rbf_width);
CGaussianKernel* kernel=new CGaussianKernel(rbf_width);
kernel->init(features_train, features_train);

// also epsilon svr possible here
Expand Down

0 comments on commit 80a5a1a

Please sign in to comment.