{"action":"created","issue":{"url":"https://api.github.com/repos/mlr-org/mlr/issues/1115","repository_url":"https://api.github.com/repos/mlr-org/mlr","labels_url":"https://api.github.com/repos/mlr-org/mlr/issues/1115/labels{/name}","comments_url":"https://api.github.com/repos/mlr-org/mlr/issues/1115/comments","events_url":"https://api.github.com/repos/mlr-org/mlr/issues/1115/events","html_url":"https://github.com/mlr-org/mlr/issues/1115","id":170501604,"number":1115,"title":"Tuning DL discrete 'epsilon' hyper-parameter as discrete param gives me an error","user":{"login":"rgmantovani","id":5933552,"avatar_url":"https://avatars.githubusercontent.com/u/5933552?v=3","gravatar_id":"","url":"https://api.github.com/users/rgmantovani","html_url":"https://github.com/rgmantovani","followers_url":"https://api.github.com/users/rgmantovani/followers","following_url":"https://api.github.com/users/rgmantovani/following{/other_user}","gists_url":"https://api.github.com/users/rgmantovani/gists{/gist_id}","starred_url":"https://api.github.com/users/rgmantovani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgmantovani/subscriptions","organizations_url":"https://api.github.com/users/rgmantovani/orgs","repos_url":"https://api.github.com/users/rgmantovani/repos","events_url":"https://api.github.com/users/rgmantovani/events{/privacy}","received_events_url":"https://api.github.com/users/rgmantovani/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-10T19:43:13Z","updated_at":"2016-08-13T07:15:28Z","closed_at":null,"body":"Hi, \r\n\r\nI'm trying to adjust some DL hyper-parameters, but something is not working right when I try to tune the *epsilon* one. It is defined as numeric in the ParamSet object. With the first param set (ps1 and epsilon a numericParam) it works. However, if I specify it as a discreteParam I'm getting an error message:\r\n\r\n```R\r\n# example with par set 1 - works\r\nlibrary(\"mlr\")\r\n\r\ntask  = bh.task\r\nlrn   = makeLearner(\"regr.h2o.deeplearning\")\r\ninner = makeResampleDesc(method = \"CV\", iter = 3)\r\nouter = makeResampleDesc(method = \"CV\", iter = 2)\r\nmeas  = list(rmse, mse)\r\nctrl  = makeTuneControlRandom(maxit = 2)\r\n\r\n# With this par set it works\r\nps1 = makeParamSet(\r\n  makeDiscreteParam(\"rho\", values = c(0.9, 0.95, 0.99, 0.999)),\r\n  makeNumericParam(\"epsilon\", lower = -10, upper = -4, trafo = function(x) 10^x) \r\n)\r\n\r\nnew.lrn1 = makeTuneWrapper(learner = lrn, resampling = inner,\r\n  measure = rmse, par.set = ps1, control = ctrl, show.info = TRUE)\r\n\r\nres1 = benchmark(learners = new.lrn1, tasks = list(bh.task), \r\n  resamplings = outer, measures = meas, show.info = TRUE)\r\n\r\nprint(res1)\r\n\r\n# Example with par set 2 - does now work\r\n\r\nps2 = makeParamSet(\r\n  makeDiscreteParam(\"rho\", values = c(0.9, 0.95, 0.99, 0.999)),\r\n  makeDiscreteParam(\"epsilon\", values = 10^seq(from=-10, to=-4, by=2))\r\n)\r\n\r\nnew.lrn2 = makeTuneWrapper(learner = lrn, resampling = inner,\r\n  measure = rmse, par.set = ps2, control = ctrl, show.info = TRUE)\r\n\r\nres2 = benchmark(learners = new.lrn2, tasks = list(bh.task), resamplings = outer, \r\n  measures = meas, show.info = TRUE)\r\n\r\nprint(res2)\r\n```\r\n\r\nThe error message:\r\n```\r\nError in `colnames<-`(`*tmp*`, value = colnames(env$path)) : \r\n  'names' attribute [4] must be the same length as the vector [3]\r\nIn addition: Warning messages:\r\n1: In paramValueToString.ParamSet(par.set, x, show.missing.values = !remove.nas) :\r\n  number of items to replace is not a multiple of replacement length\r\n2: In paramValueToString.ParamSet(par.set, x, show.missing.values = !remove.nas) :\r\n  number of items to replace is not a multiple of replacement length\r\n```\r\n\r\nAm I doing something wrong? Does anyone can help me how to solve it ? \r\n\r\nFollows my sessionInfo():\r\n\r\n```\r\nR version 3.3.0 (2016-05-03)\r\nPlatform: x86_64-apple-darwin13.4.0 (64-bit)\r\nRunning under: OS X 10.11.6 (El Capitan)\r\n\r\nlocale:\r\n[1] 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] mlr_2.10         ParamHelpers_1.9\r\n\r\nloaded via a namespace (and not attached):\r\n [1] Rcpp_0.12.6      magrittr_1.5     splines_3.3.0    statmod_1.4.24  \r\n [5] munsell_0.4.3    lattice_0.20-33  xtable_1.8-2     colorspace_1.2-6\r\n [9] R6_2.1.2         plyr_1.8.4       dplyr_0.5.0      tools_3.3.0     \r\n[13] parallel_3.3.0   grid_3.3.0       checkmate_1.8.1  data.table_1.9.6\r\n[17] gtable_0.2.0     h2o_3.10.0.3     DBI_0.4-1        htmltools_0.3.5 \r\n[21] ggvis_0.4.3      survival_2.39-4  assertthat_0.1   digest_0.6.10   \r\n[25] tibble_1.1       Matrix_1.2-6     shiny_0.13.2     ggplot2_2.1.0   \r\n[29] bitops_1.0-6     RCurl_1.95-4.8   mime_0.5         parallelMap_1.3 \r\n[33] stringi_1.1.1    BBmisc_1.10      scales_0.4.0     backports_1.0.3 \r\n[37] jsonlite_1.0     httpuv_1.3.3     chron_2.3-47  \r\n```\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/mlr-org/mlr/issues/comments/239607166","html_url":"https://github.com/mlr-org/mlr/issues/1115#issuecomment-239607166","issue_url":"https://api.github.com/repos/mlr-org/mlr/issues/1115","id":239607166,"user":{"login":"berndbischl","id":1225974,"avatar_url":"https://avatars.githubusercontent.com/u/1225974?v=3","gravatar_id":"","url":"https://api.github.com/users/berndbischl","html_url":"https://github.com/berndbischl","followers_url":"https://api.github.com/users/berndbischl/followers","following_url":"https://api.github.com/users/berndbischl/following{/other_user}","gists_url":"https://api.github.com/users/berndbischl/gists{/gist_id}","starred_url":"https://api.github.com/users/berndbischl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/berndbischl/subscriptions","organizations_url":"https://api.github.com/users/berndbischl/orgs","repos_url":"https://api.github.com/users/berndbischl/repos","events_url":"https://api.github.com/users/berndbischl/events{/privacy}","received_events_url":"https://api.github.com/users/berndbischl/received_events","type":"User","site_admin":false},"created_at":"2016-08-13T07:15:28Z","updated_at":"2016-08-13T07:15:28Z","body":"i found the bug. it is in paramhelpers. this is a hard one. we need to discuss this.\r\n"}}
{"actor":{"display_login":"berndbischl"}}