{"action":"closed","issue":{"url":"https://api.github.com/repos/topepo/caret/issues/35","labels_url":"https://api.github.com/repos/topepo/caret/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/topepo/caret/issues/35/comments","events_url":"https://api.github.com/repos/topepo/caret/issues/35/events","html_url":"https://github.com/topepo/caret/issues/35","id":39534358,"number":35,"title":"add sampling option to train","user":{"login":"topepo","id":5731043,"avatar_url":"https://avatars.githubusercontent.com/u/5731043?v=3","gravatar_id":"","url":"https://api.github.com/users/topepo","html_url":"https://github.com/topepo","followers_url":"https://api.github.com/users/topepo/followers","following_url":"https://api.github.com/users/topepo/following{/other_user}","gists_url":"https://api.github.com/users/topepo/gists{/gist_id}","starred_url":"https://api.github.com/users/topepo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/topepo/subscriptions","organizations_url":"https://api.github.com/users/topepo/orgs","repos_url":"https://api.github.com/users/topepo/repos","events_url":"https://api.github.com/users/topepo/events{/privacy}","received_events_url":"https://api.github.com/users/topepo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/topepo/caret/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-08-05T16:02:03Z","updated_at":"2015-06-04T16:35:40Z","closed_at":"2015-06-04T16:35:40Z","body":"In `trainControl`, think about having an option to do sampling after resampling and prior to pre-processing/model fitting with options for `upSample`, `downSample`, `SMOTE` and `ROSE`. Make offline code available (the same way models are stored) to avoid more package dependencies.  "}}