{"action":"created","issue":{"url":"https://api.github.com/repos/topepo/caret/issues/442","repository_url":"https://api.github.com/repos/topepo/caret","labels_url":"https://api.github.com/repos/topepo/caret/issues/442/labels{/name}","comments_url":"https://api.github.com/repos/topepo/caret/issues/442/comments","events_url":"https://api.github.com/repos/topepo/caret/issues/442/events","html_url":"https://github.com/topepo/caret/issues/442","id":161070708,"number":442,"title":"method RRFglobal: tuning parameters are not expanded to a grid","user":{"login":"huelf","id":6890200,"avatar_url":"https://avatars.githubusercontent.com/u/6890200?v=3","gravatar_id":"","url":"https://api.github.com/users/huelf","html_url":"https://github.com/huelf","followers_url":"https://api.github.com/users/huelf/followers","following_url":"https://api.github.com/users/huelf/following{/other_user}","gists_url":"https://api.github.com/users/huelf/gists{/gist_id}","starred_url":"https://api.github.com/users/huelf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huelf/subscriptions","organizations_url":"https://api.github.com/users/huelf/orgs","repos_url":"https://api.github.com/users/huelf/repos","events_url":"https://api.github.com/users/huelf/events{/privacy}","received_events_url":"https://api.github.com/users/huelf/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-06-19T12:23:51Z","updated_at":"2016-06-19T16:34:22Z","closed_at":"2016-06-19T16:34:22Z","body":"\r\nHi,\r\n\r\nstarting a cross validation with train() for method \"RRFglobal\", the two tuning parameters mtry and coefReg are not expanded to a grid, but are increased side by side.\r\n\r\nIn the code example below there are no combinations for mtry=2, coefReg=1.00 and mtry=5, coefReg=0.01.\r\n\r\nRegards\r\nHans\r\n\r\n#### Minimal code:\r\n```{R}\r\nlibrary(caret)\r\nlibrary(RRF)\r\n\r\nset.seed(1)\r\ndat <- twoClassSim(100)\r\nX <- dat[,1:5]\r\ny <- dat[[\"Class\"]]\r\n\r\nfitControl <- trainControl(\r\n  method = \"cv\",\r\n  number = 2,\r\n  verboseIter=TRUE,\r\n  classProbs = TRUE,\r\n  summaryFunction = multiClassSummary,\r\n  allowParallel=TRUE\r\n)\r\n\r\nmod <-train( \r\n  x=X,\r\n  y=y,\r\n  method=\"RRFglobal\",\r\n  trControl=fitControl,\r\n  tuneLength=2\r\n)\r\n```\r\n### Output\r\n```{R}\r\n+ Fold1: mtry=2, coefReg=0.01 \r\n- Fold1: mtry=2, coefReg=0.01 \r\n+ Fold1: mtry=5, coefReg=1.00 \r\n- Fold1: mtry=5, coefReg=1.00 \r\n+ Fold2: mtry=2, coefReg=0.01 \r\n- Fold2: mtry=2, coefReg=0.01 \r\n+ Fold2: mtry=5, coefReg=1.00 \r\n- Fold2: mtry=5, coefReg=1.00 \r\n```\r\n### Session Info:\r\n```{R}\r\n>sessionInfo()\r\n```\r\n### Output\r\n```{R}\r\nR version 3.3.0 (2016-05-03)\r\nPlatform: x86_64-pc-linux-gnu (64-bit)\r\nRunning under: Ubuntu 14.04.4 LTS\r\n\r\nlocale:\r\n [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               LC_TIME=en_US.UTF-8       \r\n [4] LC_COLLATE=en_US.UTF-8     LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   \r\n [7] LC_PAPER=en_US.UTF-8       LC_NAME=C                  LC_ADDRESS=C              \r\n[10] LC_TELEPHONE=C             LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       \r\n\r\nattached base packages:\r\n[1] stats     graphics  grDevices utils     datasets  methods   base     \r\n\r\nother attached packages:\r\n[1] RRF_1.6         caret_6.0-70    ggplot2_2.1.0   lattice_0.20-33\r\n\r\nloaded via a namespace (and not attached):\r\n [1] Rcpp_0.12.5        magrittr_1.5       splines_3.3.0      MASS_7.3-44       \r\n [5] munsell_0.4.3      colorspace_1.2-6   foreach_1.4.3      minqa_1.2.4       \r\n [9] stringr_1.0.0      car_2.1-2          plyr_1.8.4         tools_3.3.0       \r\n[13] nnet_7.3-12        pbkrtest_0.4-6     parallel_3.3.0     grid_3.3.0        \r\n[17] gtable_0.2.0       nlme_3.1-128       mgcv_1.8-12        quantreg_5.26     \r\n[21] e1071_1.6-7        class_7.3-14       MatrixModels_0.4-1 iterators_1.0.8   \r\n[25] lme4_1.1-12        Matrix_1.2-6       nloptr_1.0.4       reshape2_1.4.1    \r\n[29] codetools_0.2-14   stringi_1.1.1      compiler_3.3.0     pROC_1.8          \r\n[33] scales_0.4.0       stats4_3.3.0       SparseM_1.7  \r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/topepo/caret/issues/comments/227006727","html_url":"https://github.com/topepo/caret/issues/442#issuecomment-227006727","issue_url":"https://api.github.com/repos/topepo/caret/issues/442","id":227006727,"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},"created_at":"2016-06-19T16:34:22Z","updated_at":"2016-06-19T16:34:22Z","body":"You are correct. I've changed the model code. You can source the new file and use `method = \"modelInfo\"` to use the fixed version. \r\nx\r\nThanks,\r\n\r\nMa"}}
{"actor":{"display_login":"topepo"}}