Menu

Possible Typo in PMML scorecard example

2015-06-29
2018-08-20
  • Vinay Muttineni

    Vinay Muttineni - 2015-06-29

    Hi there,
    I am new to the PMML standard, I was going over the documentation and came across the scorecard page(http://www.dmg.org/v4-2-1/Scorecard.html ).
    In the example PMML, the following appears

    <attribute partialscore="26">
    <simplepredicate field="income" operator="lessOrEqual" value="1000">
    </simplepredicate></attribute>
    <attribute>
    <simplepredicate field="income" operator="lessOrEqual" value="1000">
    <complexpartialscore>
    <apply function="+">
    <apply function="*">
    <constant>0.03</constant>
    <fieldref field="income">
    </fieldref></apply>
    <constant>11</constant>
    </apply>
    </complexpartialscore>
    </simplepredicate></attribute>

    which corresponds to this table
    Partial scores and reason codes for numeric characteristic "income"
    Attribute Partial Score
    if value is missing 3
    less or equal to 1000 (0.03 * income) + 11
    greater than 1000 and less than or equal to 1500 5
    greater than 1500 (0.01 * income) - 18

    I am not able to fathom why there's an additional attribute with partial score of 26 in the pmml, when the value of income attribute is less than 1000?
    Am I missing something or is that a typo?

    Thanks!
    Vinay

     
  • Svetlana Levitan

    Hi Vinay,
    You are right, this looks like a typo. Let me open a Mantis issue about it, we should fix it in the next release. Very sorry for the big delay, apparently this page is not monitored well.

     

Log in to post a comment.

MongoDB Logo MongoDB