# NOT RUN {
model <- ns(toyml, "RANDOM")
pred <- predict(model, toyml)
# }
# NOT RUN {
# Use a specific chain with C5.0 classifier
mychain <- sample(rownames(toyml$labels))
model <- ns(toyml, 'C5.0', mychain)
# Set a specific parameter
model <- ns(toyml, 'KNN', k=5)
# }
Run the code above in your browser using DataLab