Skip to content

Instantly share code, notes, and snippets.

@yujingma45
Created March 22, 2016 02:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yujingma45/88c2bc9347ea76ddc218 to your computer and use it in GitHub Desktop.
Save yujingma45/88c2bc9347ea76ddc218 to your computer and use it in GitHub Desktop.
> tuning.svm("normalized data",ntrn,cvec,10,0.7)
[1] "normalized data"
[1] "#########linear SVM#################"
[1] "parameter= 1 the best cost= 3.2 the error = 13.0911820319358"
[1] "########polynomial kernel SVM##########"
[1] "parameter= 2 the best cost= 1 the error = 36.0239737549915"
[1] "parameter= 3 the best cost= 1 the error = 15.5345486240454"
[1] "parameter= 4 the best cost= 0.32 the error = 33.5509708662857"
[1] "parameter= 5 the best cost= 0.32 the error = 41.9638713171909"
[1] "parameter= 6 the best cost= 0.032 the error = 45.8911349089365"
[1] "parameter= 7 the best cost= 0.01 the error = 52.4204054549299"
[1] "########RBF kernel SVM###############"
[1] "parameter= 0.05 the best cost= 100 the error = 73.8399571148679"
[1] "parameter= 0.1 the best cost= 100 the error = 76.136578442901"
[1] "parameter= 0.2 the best cost= 3.2 the error = 67.1695151573611"
[1] "parameter= 0.3 the best cost= 100 the error = 58.8905466491342"
[1] "parameter= 0.4 the best cost= 100 the error = 49.190563732546"
[1] "parameter= 0.5 the best cost= 100 the error = 39.3667236728242"
[1] "parameter= 0.8 the best cost= 3.2 the error = 32.1457803322543"
[1] "parameter= 5 the best cost= 32 the error = 6.90665923311557"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment