Skip to content

Instantly share code, notes, and snippets.

@yujingma45
Created March 22, 2016 02:52
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/05befa748bc33493fea3 to your computer and use it in GitHub Desktop.
Save yujingma45/05befa748bc33493fea3 to your computer and use it in GitHub Desktop.
> tuning.rg(ntrn,lambda,10,0.7)
[1] "=== cross validation error estimation ==="
[1] "lambda= 0.0001 : error= 11.0574771599181 +- 1.5911393576281"
[1] "lambda= 0.001 : error= 11.0554573634712 +- 1.59159985887222"
[1] "lambda= 0.01 : error= 11.0377334394576 +- 1.59698319488323"
[1] "lambda= 0.1 : error= 11.0537037442444 +- 1.70124419652984"
[1] "lambda= 1 : error= 14.7438810915394 +- 2.85190527401637"
[1] "lambda= 10 : error= 24.6020816723033 +- 5.47557805542126"
[1] "lambda= 100 : error= 40.0103673810083 +- 9.25347219989225"
[1] "lambda= 1000 : error= 56.4994813733851 +- 9.68175560688852"
[1] "lambda= 10000 : error= 61.7886340465619 +- 9.57833571234911"
[1] "lambda= 100000 : error= 62.4693812043716 +- 9.56137138319671"
[1] "lambda= 1000000 : error= 62.539471175857 +- 9.55958407895257"
[1] "lambda= 10000000 : error= 62.5465009852284 +- 9.55940440620494"
[1] "lambda= 100000000 : error= 62.547204174969 +- 9.55938642947216"
[1] 0.01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment