Last active
January 31, 2017 08:14
-
-
Save HackerEarthBlog/0c297c11f945e7061330000ba4863d11 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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