Description Usage Arguments Value Examples
generatePredictionsFile Generates predictions on the test data using the model passed as an argument and then writes them to a file for submission
1 | generate.predictions.file(model, test.data)
|
model |
model for generating predictions on test data |
filename - filename of generated predictions file (just written to disk)
1 2 3 4 | train <- remove.extra.cols(data('news_popularity_training'))
test <- data('news_popularity_test')
model <- train.randomForest(train)
generate.predictions.file(model, test)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.