<?xml version="1.0" encoding="UTF-8"?>
<PMML version="4.2" xsi:schemaLocation="http://www.dmg.org/PMML-4_2 http://www.dmg.org/v4-2-1/pmml-4-2.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.dmg.org/PMML-4_2">
  <Header description="generated by the drools-scorecards module">
  </Header>

  <DataDictionary numberOfFields="3">
    <DataField name="param1" optype="continuous" dataType="double"/>
    <DataField name="param2" optype="continuous" dataType="double"/>
    <DataField name="overallScore" optype="continuous" dataType="double" />
  </DataDictionary>

  <Scorecard modelName="SimpleScorecard" useReasonCodes="true" isScorable="true" functionName="regression" baselineScore="14" initialScore="0.8">
    <MiningSchema>
      <MiningField name="param1" usageType="active" invalidValueTreatment="asMissing"></MiningField>
      <MiningField name="param2" usageType="active" invalidValueTreatment="asMissing"></MiningField>
      <MiningField name="overallScore" usageType="target"/>
    </MiningSchema>

    <Characteristics>
      <Characteristic name="ch1" baselineScore="25" reasonCode="reasonCh1">
        <Attribute partialScore="20">
          <SimplePredicate field="param1" operator="lessThan" value="20"/>
        </Attribute>
        <Attribute partialScore="100">
          <SimplePredicate field="param1" operator="greaterOrEqual" value="20"/>
        </Attribute>
      </Characteristic>

      <Characteristic name="ch2" reasonCode="reasonCh2">
        <Attribute partialScore="10">
          <SimplePredicate field="param2" operator="lessThan" value="5"/>
        </Attribute>
        <Attribute partialScore="20">
          <SimplePredicate field="param2" operator="greaterOrEqual" value="5"/>
        </Attribute>
      </Characteristic>
    </Characteristics>
  </Scorecard>
</PMML>
