Created
February 13, 2020 16:29
-
-
Save BenHeubl/57cd30f8b24e53d927b8bc914bf1ef6d to your computer and use it in GitHub Desktop.
tut4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #load packages: | |
| install.packages('rpart') | |
| install.packages('rpart.plot') | |
| library(rpart) | |
| library(rpart.plot) | |
| #This is our base model: | |
| Brexit_model <- rpart(Percent.Leave ~ . , data = Brexit_train, method = "class", control = rpart.control(cp = 0)) | |
| Brexit_model |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment