{"action":"created","issue":{"url":"https://api.github.com/repos/mlr-org/mlr/issues/676","labels_url":"https://api.github.com/repos/mlr-org/mlr/issues/676/labels{/name}","comments_url":"https://api.github.com/repos/mlr-org/mlr/issues/676/comments","events_url":"https://api.github.com/repos/mlr-org/mlr/issues/676/events","html_url":"https://github.com/mlr-org/mlr/issues/676","id":128136008,"number":676,"title":" GBM - Incorrect number of dimensions","user":{"login":"myloginid","id":2422057,"avatar_url":"https://avatars.githubusercontent.com/u/2422057?v=3","gravatar_id":"","url":"https://api.github.com/users/myloginid","html_url":"https://github.com/myloginid","followers_url":"https://api.github.com/users/myloginid/followers","following_url":"https://api.github.com/users/myloginid/following{/other_user}","gists_url":"https://api.github.com/users/myloginid/gists{/gist_id}","starred_url":"https://api.github.com/users/myloginid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myloginid/subscriptions","organizations_url":"https://api.github.com/users/myloginid/orgs","repos_url":"https://api.github.com/users/myloginid/repos","events_url":"https://api.github.com/users/myloginid/events{/privacy}","received_events_url":"https://api.github.com/users/myloginid/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-01-22T11:24:11Z","updated_at":"2016-01-27T10:08:09Z","closed_at":"2016-01-22T17:19:58Z","body":"\r\nHi.. I got an Error with GBM as \"incorrect number of dimensions\". I didnt get anything the mlr code base for this and it dosent look like a GBM error. Can you have a look pls...\r\n\r\n\ttrainTask = makeClassifTask(data = train, target = \"Response\")\r\n\ttrainTask = createDummyFeatures(trainTask)\r\n\tlrn = makeLearner(\"classif.gbm\")\r\n\tlrn$par.vals = list ( verbose = 1, distribution = \"gaussian\"\t)\r\n\tparallelStartSocket(socs)\r\n\tps = makeParamSet(\r\n\t\tmakeIntegerParam(id = \"n.trees\", lower = 100 , upper= 500),\r\n\t\tmakeDiscreteParam(id = \"shrinkage\", values = c ( 0.001, 0.01 ) )\r\n\t)\r\n\trdesc = makeResampleDesc(\"CV\", iters = 2)\r\n\tctrl =  makeTuneControlRandom(maxit = 3)\r\n\tres = tuneParams(lrn, task = trainTask, resampling = rdesc, par.set = ps, control = ctrl)\r\n\r\nStarting parallelization in mode=socket with cpus=2.\r\n[Tune] Started tuning learner classif.gbm.preproc for parameter set:\r\n              Type len Def     Constr Req Tunable Trafo\r\nn.trees    integer   -   - 100 to 500   -    TRUE     -\r\nshrinkage discrete   -   - 0.001,0.01   -    TRUE     -\r\nWith control class: TuneControlRandom\r\nImputation value: 1\r\nExporting objects to slaves for mode socket: .mlr.slave.options\r\nMapping in parallel: mode = socket; cpus = 2; elements = 3.\r\ntraceback()\r\nError in stopWithJobErrorMessages(inds, vcapply(result.list[inds], as.character)) : \r\n  Errors occurred in 3 slave jobs, displaying at most 10 of them:\r\n \r\n00001: Error in p[, , 1L] : incorrect number of dimensions\r\n \r\n00002: Error in p[, , 1L] : incorrect number of dimensions\r\n \r\n00003: Error in p[, , 1L] : incorrect number of dimensions\r\n \r\n> traceback()\r\n14: stop(obj)\r\n13: stopf(\"Errors occurred in %i slave jobs, displaying at most 10 of them:\\n\\n%s\\n%s\", \r\n        n, collapse(msgs, sep = \"\\n\"), extra.msg)\r\n12: stopWithJobErrorMessages(inds, vcapply(result.list[inds], as.character))\r\n11: checkResultsAndStopWithErrorsMessages(res)\r\n10: parallelMap(evalOptimizationState, dobs, states, level = level, \r\n        more.args = list(learner = learner, task = task, resampling = resampling, \r\n            measures = measures, par.set = par.set, bits.to.features = bits.to.features, \r\n            control = control, opt.path = opt.path, show.info = show.info, \r\n            remove.nas = remove.nas))\r\n9: evalOptimizationStates(learner, task, resampling, measures, par.set, \r\n       NULL, control, opt.path, show.info, states, dobs, eols, remove.nas, \r\n       \"mlr.tuneParams\")\r\n8: evalOptimizationStatesTune(learner, task, resampling, measures, \r\n       par.set, control, opt.path, show.info, vals, dobs = seq_along(vals), \r\n       eols = NA_integer_, remove.nas = TRUE)\r\n7: sel.func(learner, task, resampling, measures, par.set, control, \r\n       opt.path, show.info)\r\n6: tuneParams(lrn, task = trainTask, resampling = rdesc, par.set = ps, \r\n       control = ctrl) at mlr_v66.r#121\r\n5: mlr.gbm(train, train) at mlr_v66.r#170\r\n4: eval(expr, envir, enclos)\r\n3: eval(ei, envir)\r\n2: withVisible(eval(ei, envir))\r\n1: source(\"/home/manishm/prudes/mlr_v66.r\")\r\n"},"comment":{"url":"https://api.github.com/repos/mlr-org/mlr/issues/comments/175525183","html_url":"https://github.com/mlr-org/mlr/issues/676#issuecomment-175525183","issue_url":"https://api.github.com/repos/mlr-org/mlr/issues/676","id":175525183,"user":{"login":"myloginid","id":2422057,"avatar_url":"https://avatars.githubusercontent.com/u/2422057?v=3","gravatar_id":"","url":"https://api.github.com/users/myloginid","html_url":"https://github.com/myloginid","followers_url":"https://api.github.com/users/myloginid/followers","following_url":"https://api.github.com/users/myloginid/following{/other_user}","gists_url":"https://api.github.com/users/myloginid/gists{/gist_id}","starred_url":"https://api.github.com/users/myloginid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/myloginid/subscriptions","organizations_url":"https://api.github.com/users/myloginid/orgs","repos_url":"https://api.github.com/users/myloginid/repos","events_url":"https://api.github.com/users/myloginid/events{/privacy}","received_events_url":"https://api.github.com/users/myloginid/received_events","type":"User","site_admin":false},"created_at":"2016-01-27T10:08:09Z","updated_at":"2016-01-27T10:08:09Z","body":"Thanks for the info. I will use setHyperPars. For the basic parameters setting them directly in the par.vals is handy though."}}