{"action":"created","issue":{"url":"https://api.github.com/repos/fracpete/python-weka-wrapper/issues/42","labels_url":"https://api.github.com/repos/fracpete/python-weka-wrapper/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/fracpete/python-weka-wrapper/issues/42/comments","events_url":"https://api.github.com/repos/fracpete/python-weka-wrapper/issues/42/events","html_url":"https://github.com/fracpete/python-weka-wrapper/issues/42","id":126823310,"number":42,"title":"MultiSearch prop value for J48 decision tree parameters","user":{"login":"kliegr","id":6094393,"avatar_url":"https://avatars.githubusercontent.com/u/6094393?v=3","gravatar_id":"","url":"https://api.github.com/users/kliegr","html_url":"https://github.com/kliegr","followers_url":"https://api.github.com/users/kliegr/followers","following_url":"https://api.github.com/users/kliegr/following{/other_user}","gists_url":"https://api.github.com/users/kliegr/gists{/gist_id}","starred_url":"https://api.github.com/users/kliegr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kliegr/subscriptions","organizations_url":"https://api.github.com/users/kliegr/orgs","repos_url":"https://api.github.com/users/kliegr/repos","events_url":"https://api.github.com/users/kliegr/events{/privacy}","received_events_url":"https://api.github.com/users/kliegr/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-15T07:42:24Z","updated_at":"2016-01-15T09:04:20Z","closed_at":"2016-01-15T09:04:20Z","body":"I am trying to optimize \"C\" and \"R\" parameters of [J48](http://weka.sourceforge.net/doc.dev/weka/classifiers/trees/J48.html). It seems I am not getting right the corresponding property values. For \"C\" I  use  \"classifier.C\", since the example [SMOreg](https://github.com/fracpete/python-weka-wrapper/blob/614f01ae36ef9246b814d4e46d96804a1dd36201/doc/source/examples.rst#parameter-optimization---multisearch), has also \"C\" parameter (same command line [option \"-C\"](http://weka.sourceforge.net/doc.dev/weka/classifiers/functions/SMOreg.html)), which is referred to with \"classifier.C\":\r\n\r\n      mparam.prop = \"classifier.C\"\r\n      lparam.prop = \"classifier.R\"\r\n\r\nWith the setting above, I get the following error from the build_classifier() method\r\n\r\n    java.beans.IntrospectionException: Method not found: isC\r\n\tat java.beans.PropertyDescriptor.<init>(PropertyDescriptor.java:107)\r\n\tat java.beans.PropertyDescriptor.<init>(PropertyDescriptor.java:71)\r\n\tat weka.core.PropertyPath.find(PropertyPath.java:386)\r\n\tat weka.core.PropertyPath.find(PropertyPath.java:410)\r\n\tat weka.core.SetupGenerator.setup(SetupGenerator.java:592)\r\n\tat weka.classifiers.meta.MultiSearch.findBest(MultiSearch.java:1444)\r\n\tat weka.classifiers.meta.MultiSearch.buildClassifier(MultiSearch.java:1481)\r\n\r\nSame exception for isR.\r\n\r\nThe full  code\r\n\r\n    multi = MultiSearch(\r\n\toptions=[\"-sample-size\", \"100.0\", \"-initial-folds\", \"2\", \"-subsequent-folds\", \"2\",\r\n\t      \"-num-slots\", \"1\", \"-S\", \"1\"])\r\n\tmulti.evaluation = \"CC\"\r\n\tmparam = MathParameter()\r\n\tmparam.prop = \"classifier.C\"\r\n\tmparam.minimum = 0.1\r\n\tmparam.maximum = 0.5\r\n\tmparam.step = 0.1\r\n\tmparam.base = 10.0\r\n\tmparam.expression = \"pow(BASE,I)\"\r\n\tlparam = ListParameter()\r\n\t#Reduced error pruning\r\n\tlparam.prop = \"classifier.R\"\r\n\tlparam.values = [True, False]\r\n\tmulti.parameters = [mparam, lparam]\r\n\tclOpt = Classifier(classname=\"weka.classifiers.trees.J48\", options=[\"-C\", \"0.3\"])\r\n\tmulti.classifier = clOpt\r\n\tmulti.build_classifier(train)\r\n\r\nIn the largely c&p code above from the example doc, it is not clear to me what is the role of the multi.evaluation  and mparam.expression, but I doubt it has anything to do with the error.\r\n\r\nThanks for your continuing support.\r\n"},"comment":{"url":"https://api.github.com/repos/fracpete/python-weka-wrapper/issues/comments/171906535","html_url":"https://github.com/fracpete/python-weka-wrapper/issues/42#issuecomment-171906535","issue_url":"https://api.github.com/repos/fracpete/python-weka-wrapper/issues/42","id":171906535,"user":{"login":"fracpete","id":1026180,"avatar_url":"https://avatars.githubusercontent.com/u/1026180?v=3","gravatar_id":"","url":"https://api.github.com/users/fracpete","html_url":"https://github.com/fracpete","followers_url":"https://api.github.com/users/fracpete/followers","following_url":"https://api.github.com/users/fracpete/following{/other_user}","gists_url":"https://api.github.com/users/fracpete/gists{/gist_id}","starred_url":"https://api.github.com/users/fracpete/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fracpete/subscriptions","organizations_url":"https://api.github.com/users/fracpete/orgs","repos_url":"https://api.github.com/users/fracpete/repos","events_url":"https://api.github.com/users/fracpete/events{/privacy}","received_events_url":"https://api.github.com/users/fracpete/received_events","type":"User","site_admin":false},"created_at":"2016-01-15T09:04:20Z","updated_at":"2016-01-15T09:04:20Z","body":"Please use the mailing list for questions (\"forum\" section in the README.md), not the issue tracker (reserved for bugs)."}}