Skip to content

Instantly share code, notes, and snippets.

@ekoontz
Created February 4, 2011 07:35
Show Gist options
  • Save ekoontz/810846 to your computer and use it in GitHub Desktop.
Save ekoontz/810846 to your computer and use it in GitHub Desktop.
Here's the result of running the missclassrate() on all possible splits:
> a3
[1] 1 6 5 4 7 3 8 7 5
> target_class
[1] "+" "+" "-" "+" "-" "-" "-" "+" "-"
> missclassrate(2.0, a3, target_class)
[1] 0.25
> missclassrate(3.0, a3, target_class)
[1] 0.25
> missclassrate(4.0, a3, target_class)
[1] 0.25
> missclassrate(5.0, a3, target_class)
[1] 0.5
> missclassrate(6.0, a3, target_class)
[1] 0.6
> missclassrate(7.0, a3, target_class)
[1] 0.75
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment