Skip to content

Instantly share code, notes, and snippets.

@HackerEarthBlog
Last active January 31, 2017 08:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save HackerEarthBlog/0c297c11f945e7061330000ba4863d11 to your computer and use it in GitHub Desktop.
Save HackerEarthBlog/0c297c11f945e7061330000ba4863d11 to your computer and use it in GitHub Desktop.
#predict on test
pred_dp <- predict(dp_model,test.x)
str(pred_dp) #contains 2 rows and 16281 columns
#transpose the pred matrix
pred.val <- max.col(t(pred_dp))-1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment