Skip to content

Commit

Permalink
fix static octave examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Soeren Sonnenburg committed Oct 13, 2011
1 parent 18a93b9 commit 6356f26
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
8 changes: 7 additions & 1 deletion examples/undocumented/matlab_and_octave/classifier_lpboost.m
Expand Up @@ -14,7 +14,13 @@
sg('c', C);
sg('svm_use_bias', false);
sg('svm_epsilon', epsilon);
sg('new_classifier', 'LPBOOST');

try
sg('new_classifier', 'LPBOOST');
catch
return
end_try_catch

tic;
sg('train_classifier');
timelpboost=toc
Expand Down
8 changes: 7 additions & 1 deletion examples/undocumented/matlab_and_octave/classifier_lpm.m
Expand Up @@ -13,7 +13,13 @@
sg('set_labels', 'TRAIN', trainlab);
sg('c', C);
sg('svm_use_bias', true);
sg('new_classifier', 'LPM');

try
sg('new_classifier', 'LPM');
catch
return
end_try_catch

tic;
sg('train_classifier');
timelpm=toc
Expand Down
10 changes: 5 additions & 5 deletions examples/undocumented/matlab_and_octave/kernel_linearbyte.m
Expand Up @@ -10,8 +10,8 @@
sg('set_kernel', 'LINEAR', 'BYTE', size_cache);

sg('set_features', 'TRAIN', fm_train_byte, 'RAWBYTE');
km=sg('get_kernel_matrix', 'TRAIN');

sg('set_features', 'TEST', fm_test_byte, 'RAWBYTE');
km=sg('get_kernel_matrix', 'TEST');

%km=sg('get_kernel_matrix', 'TRAIN');
%
%sg('set_features', 'TEST', fm_test_byte, 'RAWBYTE');
%km=sg('get_kernel_matrix', 'TEST');
%

0 comments on commit 6356f26

Please sign in to comment.