{"action":"closed","issue":{"url":"https://api.github.com/repos/topepo/caret/issues/586","repository_url":"https://api.github.com/repos/topepo/caret","labels_url":"https://api.github.com/repos/topepo/caret/issues/586/labels{/name}","comments_url":"https://api.github.com/repos/topepo/caret/issues/586/comments","events_url":"https://api.github.com/repos/topepo/caret/issues/586/events","html_url":"https://github.com/topepo/caret/issues/586","id":204493621,"number":586,"title":"error with \"tunegrid\" with no resampling","user":{"login":"smsaladi","id":2942215,"avatar_url":"https://avatars.githubusercontent.com/u/2942215?v=3","gravatar_id":"","url":"https://api.github.com/users/smsaladi","html_url":"https://github.com/smsaladi","followers_url":"https://api.github.com/users/smsaladi/followers","following_url":"https://api.github.com/users/smsaladi/following{/other_user}","gists_url":"https://api.github.com/users/smsaladi/gists{/gist_id}","starred_url":"https://api.github.com/users/smsaladi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smsaladi/subscriptions","organizations_url":"https://api.github.com/users/smsaladi/orgs","repos_url":"https://api.github.com/users/smsaladi/repos","events_url":"https://api.github.com/users/smsaladi/events{/privacy}","received_events_url":"https://api.github.com/users/smsaladi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-02-01T04:14:41Z","updated_at":"2017-02-01T04:22:09Z","closed_at":"2017-02-01T04:22:09Z","body":"When I train a model without any resampling but where there is more than 1 tuning parameter, I run into an error:\r\n\r\n```R\r\nlibrary(caret)\r\nset.seed(1)\r\ndat <- twoClassSim(100)\r\nX <- dat[,1:5]\r\ny <- dat[[\"Class\"]]\r\n\r\nmodel_class <- train(\r\n  X, y, \r\n  metric='ROC',\r\n  trControl=trainControl(\r\n    method=\"none\",\r\n    summaryFunction=twoClassSummary\r\n    )\r\n)\r\n```\r\n\r\n    Error in train.default(X, y, metric = \"ROC\", trControl = trainControl(method = \"none\",  :\r\n      Only one model should be specified in tuneGrid with no resampling\r\n \r\n"}}
{"actor":{"display_login":"smsaladi"}}