Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

grammatical problem when PMML with probability #2

Open
youzp opened this issue May 18, 2018 · 2 comments
Open

grammatical problem when PMML with probability #2

youzp opened this issue May 18, 2018 · 2 comments

Comments

@youzp
Copy link

youzp commented May 18, 2018

hi, there will be a grammatical problem when pmml with probability. It works fine to get rid of the parentheses.

FAILED: SemanticException java.lang.IllegalArgumentException: Error: : expected at the position 28 of 'structlabel:int,probability(0):double,probability(1):double' but '(' is found.

<Segment id="2">
	<True/>
	<RegressionModel functionName="classification" normalizationMethod="none">
		<MiningSchema>
			<MiningField name="label" usageType="target"/>
			<MiningField name="transformedDecisionFunction(1)"/>
		</MiningSchema>
		<Output>
			<OutputField name="probability(0)" optype="continuous" dataType="double" feature="probability" value="0"/>
			<OutputField name="probability(1)" optype="continuous" dataType="double" feature="probability" value="1"/>
		</Output>
		<RegressionTable intercept="0.0" targetCategory="1">
			<NumericPredictor name="transformedDecisionFunction(1)" coefficient="1.0"/>
		</RegressionTable>
		<RegressionTable intercept="0.0" targetCategory="0"/>
	</RegressionModel>
</Segment>
@vruusmann
Copy link
Member

Related issue: jpmml/jpmml-converter#10

@vruusmann
Copy link
Member

vruusmann commented Sep 5, 2018

Reopened as a reminder to take a look at this again when the JPMML-Evaluator has been updated with "soft rename" functionality (plus some other relevant API niceties).

@vruusmann vruusmann reopened this Sep 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants