Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
86 lines (86 sloc) 4.29 KB
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<PMML xmlns="http://www.dmg.org/PMML-4_2" version="4.2">
<Header description="generated by the drools-scorecards module">
<Extension name="modelPackage" value="org.drools.scorecards.example"/>
<Extension name="importsFromDelimitedString" value="java.util.*"/>
<Timestamp>2013.07.14 at 19:12:53 IST</Timestamp>
</Header>
<DataDictionary numberOfFields="5">
<DataField name="age" optype="continuous" dataType="double"/>
<DataField name="occupation" optype="categorical" dataType="string"/>
<DataField name="residenceState" optype="categorical" dataType="string"/>
<DataField name="validLicense" optype="categorical" dataType="boolean"/>
<DataField name="scorecard_calculatedScore" optype="continuous" dataType="double"/>
</DataDictionary>
<Scorecard modelName="Sample Score" useReasonCodes="false" isScorable="true" functionName="mixed">
<MiningSchema>
<Extension name="adapter" value="BEAN" />
<MiningField name="age" usageType="active" invalidValueTreatment="asMissing"/>
<MiningField name="occupation" usageType="active" invalidValueTreatment="asMissing"/>
<MiningField name="residenceState" usageType="active" invalidValueTreatment="asMissing"/>
<MiningField name="validLicense" usageType="active" invalidValueTreatment="asMissing"/>
<MiningField name="scorecard_calculatedScore" usageType="predicted"/>
</MiningSchema>
<Output>
<Extension name="adapter" value="BEAN" />
<OutputField name="calculatedScore" displayName="Final Score" dataType="double" targetField="scorecard_calculatedScore" feature="predictedValue"/>
</Output>
<Characteristics>
<Characteristic name="AgeScore" baselineScore="0.0">
<Attribute partialScore="10.0">
<Extension name="cellRef" value="$C$10"/>
<SimplePredicate field="age" operator="lessOrEqual" value="5"/>
</Attribute>
<Attribute partialScore="30.0">
<CompoundPredicate booleanOperator="and">
<SimplePredicate field="age" operator="greaterOrEqual" value="5"/>
<SimplePredicate field="age" operator="lessThan" value="12"/>
</CompoundPredicate>
</Attribute>
<Attribute partialScore="40.0">
<CompoundPredicate booleanOperator="and">
<SimplePredicate field="age" operator="greaterOrEqual" value="13"/>
<SimplePredicate field="age" operator="lessThan" value="44"/>
</CompoundPredicate>
</Attribute>
<Attribute partialScore="25.0">
<SimplePredicate field="age" operator="greaterOrEqual" value="45"/>
</Attribute>
</Characteristic>
<Characteristic name="OccupationScore" baselineScore="0.0">
<Attribute partialScore="-10.0">
<Extension name="description" value="skydiving is a risky occupation"/>
<SimplePredicate field="occupation" operator="equal" value="SKYDIVER"/>
</Attribute>
<Attribute partialScore="10.0">
<SimpleSetPredicate field="occupation" booleanOperator="isIn">
<Array n="2" type="string">TEACHER INSTRUCTOR</Array>
</SimpleSetPredicate>
</Attribute>
<Attribute partialScore="5.0">
<SimplePredicate field="occupation" operator="equal" value="PROGRAMMER"/>
</Attribute>
</Characteristic>
<Characteristic name="ResidenceStateScore" baselineScore="0.0">
<Extension name="cellRef" value="$B$22"/>
<Attribute partialScore="-10.0">
<SimplePredicate field="residenceState" operator="equal" value="AP"/>
</Attribute>
<Attribute partialScore="10.0">
<SimplePredicate field="residenceState" operator="equal" value="KN"/>
</Attribute>
<Attribute partialScore="5.0">
<SimplePredicate field="residenceState" operator="equal" value="TN"/>
</Attribute>
</Characteristic>
<Characteristic name="ValidLicenseScore" baselineScore="0.0">
<Attribute partialScore="1.0">
<SimplePredicate field="validLicense" operator="equal" value="TRUE"/>
</Attribute>
<Attribute partialScore="-1.0">
<SimplePredicate field="validLicense" operator="equal" value="FALSE"/>
</Attribute>
</Characteristic>
</Characteristics>
</Scorecard>
</PMML>