# NOT RUN {
# Example with data(harvest)
## Phalanx-formation using a base classifier with 50 trees (default = 500)
# }
# NOT RUN {
set.seed(761)
model <- epx(x = harvest[, -4], y = harvest[, 4],
classifier.args = list(ntree = 50))
## Hit curve for model with default settings
model.hc <- plot(model)
## In the top 100 ranked observations selected, the number that are truly
## relevant is
model.hc$nhitlast
## Hit curve with max.cutoff at 150 (Note: Commented off for time.)
model.hc.150 <- plot(model, max.cutoff = 150)
model.hc.150$nhitlast # Number of hits in top 150 ranked observations.
# }
Run the code above in your browser using DataLab