<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>
    <Application name="Drools-PMML" version="7.0.0-SNAPSHOT" />
  </Header>
	
  <DataDictionary numberOfFields="3">
    <DataField name="temperature" dataType="double" optype="continuous" />
    <DataField name="humidity" dataType="double" optype="continuous" />   
    <DataField name="decision" dataType="string" optype="categorical"> 
      <Value value="sunglasses" />
      <Value value="umbrella" />
      <Value value="nothing" />     
    </DataField>
  </DataDictionary>
  
  <TreeModel modelName="SampleMine" functionName="classification">
    <MiningSchema>
      <MiningField name="temperature"  usageType="active" />
      <MiningField name="humidity"  usageType="active" />
      <MiningField name="decision" usageType="predicted" />
    </MiningSchema>
    <Output>
      <OutputField name="decision" targetField="decision" />
    </Output>
    
    <Node score="nothing" id="1">
      <True />
      <Node score="sunglasses" id="2">
        <CompoundPredicate booleanOperator="and">
          <SimplePredicate field="temperature" operator="greaterThan" value="25" />
          <SimplePredicate field="humidity" operator="lessOrEqual" value="20" />
        </CompoundPredicate>
      </Node>
      <Node score="umbrella" id="3">
        <SimplePredicate field="humidity" operator="greaterThan" value="50" />
      </Node>
      <Node score="nothing" id="4">
        <True />
      </Node>
    </Node>
  </TreeModel>
</PMML>
