{"action":"created","issue":{"url":"https://api.github.com/repos/jpmml/jpmml-evaluator/issues/19","repository_url":"https://api.github.com/repos/jpmml/jpmml-evaluator","labels_url":"https://api.github.com/repos/jpmml/jpmml-evaluator/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/jpmml/jpmml-evaluator/issues/19/comments","events_url":"https://api.github.com/repos/jpmml/jpmml-evaluator/issues/19/events","html_url":"https://github.com/jpmml/jpmml-evaluator/issues/19","id":139777447,"number":19,"title":"Duplicate value Exception for Tree Model using Iris Data --- execution","user":{"login":"Tulasamma","id":17565071,"avatar_url":"https://avatars.githubusercontent.com/u/17565071?v=3","gravatar_id":"","url":"https://api.github.com/users/Tulasamma","html_url":"https://github.com/Tulasamma","followers_url":"https://api.github.com/users/Tulasamma/followers","following_url":"https://api.github.com/users/Tulasamma/following{/other_user}","gists_url":"https://api.github.com/users/Tulasamma/gists{/gist_id}","starred_url":"https://api.github.com/users/Tulasamma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tulasamma/subscriptions","organizations_url":"https://api.github.com/users/Tulasamma/orgs","repos_url":"https://api.github.com/users/Tulasamma/repos","events_url":"https://api.github.com/users/Tulasamma/events{/privacy}","received_events_url":"https://api.github.com/users/Tulasamma/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-10T03:57:03Z","updated_at":"2016-03-10T07:56:15Z","closed_at":"2016-03-10T07:56:15Z","body":"Hi,\r\nam new to this, while i have execute below exception is occuring.\r\nR-PMML tree model getting exception,\r\n\r\nused below line for execution:\r\nD:\\JPMML\\jpmml-evaluator-master\\pmml-evaluator-example>java -cp target/example-1.2-SNAPSHOT.jar org.jpmml.evaluator.EvaluationExample --model D:\\JPMML\\Test\\pmml\\IrisTree.pmml --input D:\\JPMML\\Test\\csv\\Iris.csv --output D:\\JPMML\\Test\\output\\TreeOutput.csv\r\n \r\nException in thread \"main\" org.jpmml.evaluator.DuplicateValueException: class\r\n        at org.jpmml.evaluator.EvaluationContext.declare(EvaluationContext.java:91)\r\n        at org.jpmml.evaluator.OutputUtil.evaluate(OutputUtil.java:330)\r\n        at org.jpmml.evaluator.TreeModelEvaluator.evaluate(TreeModelEvaluator.java:93)\r\n        at org.jpmml.evaluator.ModelEvaluator.evaluate(ModelEvaluator.java:406)\r\n        at org.jpmml.evaluator.EvaluationExample.execute(EvaluationExample.java:261)\r\n        at org.jpmml.evaluator.Example.execute(Example.java:60)\r\n        at org.jpmml.evaluator.EvaluationExample.main(EvaluationExample.java:127)"},"comment":{"url":"https://api.github.com/repos/jpmml/jpmml-evaluator/issues/comments/194721163","html_url":"https://github.com/jpmml/jpmml-evaluator/issues/19#issuecomment-194721163","issue_url":"https://api.github.com/repos/jpmml/jpmml-evaluator/issues/19","id":194721163,"user":{"login":"vruusmann","id":3462679,"avatar_url":"https://avatars.githubusercontent.com/u/3462679?v=3","gravatar_id":"","url":"https://api.github.com/users/vruusmann","html_url":"https://github.com/vruusmann","followers_url":"https://api.github.com/users/vruusmann/followers","following_url":"https://api.github.com/users/vruusmann/following{/other_user}","gists_url":"https://api.github.com/users/vruusmann/gists{/gist_id}","starred_url":"https://api.github.com/users/vruusmann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vruusmann/subscriptions","organizations_url":"https://api.github.com/users/vruusmann/orgs","repos_url":"https://api.github.com/users/vruusmann/repos","events_url":"https://api.github.com/users/vruusmann/events{/privacy}","received_events_url":"https://api.github.com/users/vruusmann/received_events","type":"User","site_admin":false},"created_at":"2016-03-10T07:56:15Z","updated_at":"2016-03-10T07:56:15Z","body":"Your PMML document is \"structurally\" invalid. Apparently, the field `class` is defined in more than one place (most likely first as a target field (via `DataField` element) and then as an output field (via `OutputField` element)). This is a violation of [PMML field scoping rules] (http://dmg.org/pmml/v4-2-1/FieldScope.html).\r\n\r\nIf you can share your PMML document will me I'll be happy to point out the exact location of those field definitions. I would generally advise you against playing with DMG.org's example PMML documents, because a great number of them are invalid/broken. You should check out JPMML-Evaluator's example PMML documents that are typically located inside `src/test/resources/pmml` subdirectories.\r\n\r\nClosing this issue as invalid, because the JPMML-Evaluator library is behaving correctly here."}}