Skip to content

Commit

Permalink
use 2-norm for mkl regression R example
Browse files Browse the repository at this point in the history
  • Loading branch information
Soeren Sonnenburg committed Dec 12, 2011
1 parent 8d20d53 commit a05d132
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/undocumented/r_static/mkl_regression_sine.R
Expand Up @@ -10,6 +10,7 @@ library(sg)
# Parameter for the SVMs.
C <- 10 # obtained via model selection (not included in the script)
cache_size <- 10
mkl_norm <- 2
mkl_eps <- 1e-3 # threshold for precision
svm_eps <- 1e-3
svr_tube_eps <- 1e-2
Expand Down Expand Up @@ -41,7 +42,8 @@ for (kk in 1:length(f)) { # big loop for the different learning problems

# initialize MKL-SVR
sg('new_classifier', 'MKL_REGRESSION')
sg('mkl_parameters', mkl_eps, 0)
sg('mkl_parameters', mkl_eps, 0, mkl_norm)

sg('c', C)
sg('svm_epsilon', svm_eps)
sg('svr_tube_epsilon', svr_tube_eps)
Expand Down

0 comments on commit a05d132

Please sign in to comment.