PMML Random Forest Model XML Schema with Predicted Value
<?xml version="1.0" encoding="UTF-8"?>
<PMML xmlns="http://www.dmg.org/PMML-4_4" version="4.4">
<Header copyright="Copyright (c) 2018 Software AG" description="Default Description">
<Application name="Nyoka" version="4.3.0"/>
<Timestamp>2020-11-25 11:29:26.415510</Timestamp>
</Header>
...
<MiningModel modelName="RandomForestClassifier" functionName="classification">
<MiningSchema>
<MiningField name="petal_length" usageType="active" optype="continuous" missingValueReplacement="3.7580000000000027" missingValueTreatment="asMean"/>
<MiningField name="petal_width" usageType="active" optype="continuous" missingValueReplacement="1.199333333333334" missingValueTreatment="asMean"/>
<MiningField name="sepal_length" usageType="active" optype="continuous"/>
<MiningField name="sepal_width" usageType="active" optype="continuous"/>
<MiningField name="Species" usageType="target" optype="categorical"/>
</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"/>
<OutputField name="probability_2" optype="continuous" dataType="double" feature="probability" value="2"/>
<OutputField name="predicted_Species" optype="categorical" dataType="integer" feature="predictedValue"/>
</Output>
...
</PMML>
PMML Random Forest Model XML Schema without Predicted Value
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<PMML xmlns="http://www.dmg.org/PMML-4_4" xmlns:data="http://jpmml.org/jpmml-model/InlineTable" version="4.4">
<Header>
<Application name="JPMML-SkLearn" version="1.6.5"/>
<Timestamp>2020-10-27T19:07:00Z</Timestamp>
</Header>
...
<MiningModel functionName="classification">
<MiningSchema>
<MiningField name="y" usageType="target"/>
<MiningField name="petal_width"/>
<MiningField name="sepal_length"/>
<MiningField name="petal_length"/>
<MiningField name="sepal_width"/>
</MiningSchema>
<Output>
<OutputField name="probability(1)" optype="continuous" dataType="double" feature="probability" value="1"/>
<OutputField name="probability(2)" optype="continuous" dataType="double" feature="probability" value="2"/>
<OutputField name="probability(3)" optype="continuous" dataType="double" feature="probability" value="3"/>
</Output>
...
</PMML>