Skip to content

Instantly share code, notes, and snippets.

@sriyoda
Created March 30, 2016 15:22
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 sriyoda/2eeb85c362ec0f2e6e11877101b00edc to your computer and use it in GitHub Desktop.
Save sriyoda/2eeb85c362ec0f2e6e11877101b00edc to your computer and use it in GitHub Desktop.
test.id <- test$ID
newtest$TARGET <- -1
test <- sparse.model.matrix(TARGET ~ ., data = newtest)
preds <- predict(clf, test)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment