{"action":"created","issue":{"url":"https://api.github.com/repos/mlr-org/mlr/issues/2372","repository_url":"https://api.github.com/repos/mlr-org/mlr","labels_url":"https://api.github.com/repos/mlr-org/mlr/issues/2372/labels{/name}","comments_url":"https://api.github.com/repos/mlr-org/mlr/issues/2372/comments","events_url":"https://api.github.com/repos/mlr-org/mlr/issues/2372/events","html_url":"https://github.com/mlr-org/mlr/issues/2372","id":339182137,"node_id":"MDU6SXNzdWUzMzkxODIxMzc=","number":2372,"title":"tutorial (release) sec. 3.16.2 says it is about pima indians but code is about mtcars","user":{"login":"vjcitn","id":4624066,"node_id":"MDQ6VXNlcjQ2MjQwNjY=","avatar_url":"https://avatars3.githubusercontent.com/u/4624066?v=4","gravatar_id":"","url":"https://api.github.com/users/vjcitn","html_url":"https://github.com/vjcitn","followers_url":"https://api.github.com/users/vjcitn/followers","following_url":"https://api.github.com/users/vjcitn/following{/other_user}","gists_url":"https://api.github.com/users/vjcitn/gists{/gist_id}","starred_url":"https://api.github.com/users/vjcitn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vjcitn/subscriptions","organizations_url":"https://api.github.com/users/vjcitn/orgs","repos_url":"https://api.github.com/users/vjcitn/repos","events_url":"https://api.github.com/users/vjcitn/events{/privacy}","received_events_url":"https://api.github.com/users/vjcitn/received_events","type":"User","site_admin":false},"labels":[{"id":836665517,"node_id":"MDU6TGFiZWw4MzY2NjU1MTc=","url":"https://api.github.com/repos/mlr-org/mlr/labels/project%20-%20tutorial","name":"project - tutorial","color":"bfd4f2","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-07T23:15:59Z","updated_at":"2018-07-08T20:29:14Z","closed_at":null,"author_association":"NONE","body":"3.16.2:  text\r\n\r\nIn the example below, we tune the number of clusters against the silhouette score on the Pima dataset. We\r\nspecify the x-axis with the x argument and the y-axis with the y argument. If the plot.type argument is\r\nnot specified, mlr will attempt to plot a scatterplot by default. Since plotHyperParsEffect() returns a\r\nggplot2::ggplot() object, we can easily customize it to our liking!\r\n\r\ncode uses mtcars.task:\r\n\r\nlibrary(\"clusterSim\")\r\nps = makeParamSet(\r\nmakeDiscreteParam(\"centers\", values = 3:10)\r\n)\r\nctrl = makeTuneControlGrid()\r\nrdesc = makeResampleDesc(\"Holdout\")\r\nres = tuneParams(\"cluster.kmeans\", task = mtcars.task, control = ctrl,\r\nmeasures = silhouette, resampling = rdesc, par.set = ps, show.info = FALSE)\r\ndata = generateHyperParsEffectData(res)\r\nplt = plotHyperParsEffect(data, x = \"centers\", y = \"silhouette.test.mean\")\r\n### add our own touches to the plot\r\nplt + geom_point(colour = \"red\") +\r\nggtitle(\"Evaluating Number of Cluster Centers on mtcars\") +\r\nscale_x_contin"},"comment":{"url":"https://api.github.com/repos/mlr-org/mlr/issues/comments/403314596","html_url":"https://github.com/mlr-org/mlr/issues/2372#issuecomment-403314596","issue_url":"https://api.github.com/repos/mlr-org/mlr/issues/2372","id":403314596,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMzMxNDU5Ng==","user":{"login":"pat-s","id":8430564,"node_id":"MDQ6VXNlcjg0MzA1NjQ=","avatar_url":"https://avatars3.githubusercontent.com/u/8430564?v=4","gravatar_id":"","url":"https://api.github.com/users/pat-s","html_url":"https://github.com/pat-s","followers_url":"https://api.github.com/users/pat-s/followers","following_url":"https://api.github.com/users/pat-s/following{/other_user}","gists_url":"https://api.github.com/users/pat-s/gists{/gist_id}","starred_url":"https://api.github.com/users/pat-s/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pat-s/subscriptions","organizations_url":"https://api.github.com/users/pat-s/orgs","repos_url":"https://api.github.com/users/pat-s/repos","events_url":"https://api.github.com/users/pat-s/events{/privacy}","received_events_url":"https://api.github.com/users/pat-s/received_events","type":"User","site_admin":false},"created_at":"2018-07-08T20:29:14Z","updated_at":"2018-07-08T20:29:14Z","author_association":"CONTRIBUTOR","body":"I don't understand the problem. Can you please clarify?"}}
{"actor":{"display_login":"pat-s"}}