Skip to content

Instantly share code, notes, and snippets.

@verajosemanuel
Last active November 14, 2017 09:40
Show Gist options
  • Save verajosemanuel/5d0a0dafab615bada37fca4c4fd1a6dc to your computer and use it in GitHub Desktop.
Save verajosemanuel/5d0a0dafab615bada37fca4c4fd1a6dc to your computer and use it in GitHub Desktop.
#FFTrees #packages #R #ML
df <- read.csv("data.csv", sep = ";", stringsAsFactors = FALSE)
library("FFTrees")
## Recoding
pdf$recoded <- pdf$original
pdf$recoded[pdf$TIPO == "no"] <- "0"
pdf$recoded[pdf$TIPO == "yes"] <- "1"
pdf$recoded <- as.numeric(pdf$recoded)
## just some columns to use
dfclean <- df[,c("column1","column2","column3","column4","column5","recoded")]
fft <- FFTrees(formula = recoded ~. , data = dfclean)
plot(fft, decision.names = c("no", "yes"))
fft
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment