{"action":"closed","issue":{"url":"https://api.github.com/repos/berndbischl/mlr/issues/278","labels_url":"https://api.github.com/repos/berndbischl/mlr/issues/278/labels{/name}","comments_url":"https://api.github.com/repos/berndbischl/mlr/issues/278/comments","events_url":"https://api.github.com/repos/berndbischl/mlr/issues/278/events","html_url":"https://github.com/berndbischl/mlr/issues/278","id":68348258,"number":278,"title":"mda often aborts","user":{"login":"kerschke","id":5772725,"avatar_url":"https://avatars.githubusercontent.com/u/5772725?v=3","gravatar_id":"","url":"https://api.github.com/users/kerschke","html_url":"https://github.com/kerschke","followers_url":"https://api.github.com/users/kerschke/followers","following_url":"https://api.github.com/users/kerschke/following{/other_user}","gists_url":"https://api.github.com/users/kerschke/gists{/gist_id}","starred_url":"https://api.github.com/users/kerschke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kerschke/subscriptions","organizations_url":"https://api.github.com/users/kerschke/orgs","repos_url":"https://api.github.com/users/kerschke/repos","events_url":"https://api.github.com/users/kerschke/events{/privacy}","received_events_url":"https://api.github.com/users/kerschke/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"schiffner","id":8244303,"avatar_url":"https://avatars.githubusercontent.com/u/8244303?v=3","gravatar_id":"","url":"https://api.github.com/users/schiffner","html_url":"https://github.com/schiffner","followers_url":"https://api.github.com/users/schiffner/followers","following_url":"https://api.github.com/users/schiffner/following{/other_user}","gists_url":"https://api.github.com/users/schiffner/gists{/gist_id}","starred_url":"https://api.github.com/users/schiffner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/schiffner/subscriptions","organizations_url":"https://api.github.com/users/schiffner/orgs","repos_url":"https://api.github.com/users/schiffner/repos","events_url":"https://api.github.com/users/schiffner/events{/privacy}","received_events_url":"https://api.github.com/users/schiffner/received_events","type":"User","site_admin":false},"milestone":null,"comments":7,"created_at":"2015-04-14T11:45:52Z","updated_at":"2015-05-07T22:58:33Z","closed_at":"2015-05-07T22:58:33Z","body":"I just ran into the following problem: ```mda``` often aborts with an error:\r\n**Error in kmeans(xx, start) : initial centers are not distinct**\r\n\r\nI tried to make a simple example, when the error occurs:\r\n\r\n```{r}\r\nlibrary(mlbench)\r\ndata(Satellite)\r\nlibrary(mlr)\r\nset.seed(14 * 10 * 2015)\r\ntask = makeClassifTask(data = Satellite, target = \"classes\")\r\nlrn = makeLearner(\"classif.mda\")\r\nrdesc = makeResampleDesc(\"Bootstrap\", iters = 20L)\r\nrinst = makeResampleInstance(desc = rdesc, task = task)\r\nresample(learner = lrn, task = task, resampling = rinst)\r\n```\r\n\r\nI know, that this is not directly an issue of mlr but rather of mda itself, as the following example shows:\r\n\r\n```{r}\r\nlibrary(mda)\r\nset.seed(14 * 10 * 2015)\r\nm = replicate(2000, mda(Species ~ ., data = iris))\r\n```\r\n\r\nHowever, as this problem was already mentioned in 2007 (e.g. here: https://stat.ethz.ch/pipermail/r-help/2007-August/138695.html) and apparently the authors of mda so far did not change anything about it, it does not look like they will fix it very soon.\r\n\r\nDoes anybody have an idea how to bypass that bug?!"}}