<PMML version="3.2" xmlns="http://www.dmg.org/PMML-3_2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <Header copyright="Copyright (c) 2009 Zementis, Inc. (www.zementis.com)"
        description="Naive Bayes model">
        <Timestamp>July 29, 2009</Timestamp>
    </Header>
    <DataDictionary numberOfFields="5">
        <DataField name="gender" optype="categorical" dataType="string">
            <Value value="female" />
            <Value value="male" />
        </DataField>
        <DataField name="no of claims" optype="categorical" dataType="string">
            <Value value="0" />
            <Value value="1" />
            <Value value="2" />
            <Value value=">2" />
        </DataField>
        <DataField name="domicile" optype="categorical" dataType="string">
            <Value value="suburban" />
            <Value value="urban" />
            <Value value="rural" />
        </DataField>
        <DataField name="age of car" optype="continuous" dataType="double" />
        <DataField name="amount of claims" optype="categorical" dataType="integer">
            <Value value="100" />
            <Value value="500" />
            <Value value="1000" />
            <Value value="5000" />
            <Value value="10000" />
        </DataField>
    </DataDictionary>
    <NaiveBayesModel modelName="NaiveBayes" functionName="classification" threshold="0.001">
        <MiningSchema>
            <MiningField name="gender" />
            <MiningField name="no of claims" />
            <MiningField name="domicile" />
            <MiningField name="age of car" />
            <MiningField name="amount of claims" usageType="predicted" />
        </MiningSchema>
        <Output>
            <OutputField name="Prob100" optype="continuous" dataType="double" feature="probability" value="100" />
            <OutputField name="Prob500" optype="continuous" dataType="double" feature="probability" value="500" />
            <OutputField name="Prob1000" optype="continuous" dataType="double" feature="probability" value="1000" />
            <OutputField name="Prob5000" optype="continuous" dataType="double" feature="probability" value="5000" />
            <OutputField name="Prob10000" optype="continuous" dataType="double" feature="probability" value="10000" />
        </Output>
        <BayesInputs>
            <BayesInput fieldName="gender">
                <PairCounts value="male">
                    <TargetValueCounts>
                        <TargetValueCount value="100" count="522" />
                        <TargetValueCount value="500" count="1016" />
                        <TargetValueCount value="1000" count="567" />
                        <TargetValueCount value="5000" count="307" />
                        <TargetValueCount value="10000" count="393" />
                    </TargetValueCounts>
                </PairCounts>
                <PairCounts value="female">
                    <TargetValueCounts>
                        <TargetValueCount value="100" count="3223" />
                        <TargetValueCount value="500" count="1649" />
                        <TargetValueCount value="1000" count="1809" />
                        <TargetValueCount value="5000" count="2473" />
                        <TargetValueCount value="10000" count="2120" />
                    </TargetValueCounts>
                </PairCounts>
            </BayesInput>
            <BayesInput fieldName="no of claims">
                <PairCounts value="0">
                    <TargetValueCounts>
                        <TargetValueCount value="100" count="353" />
                        <TargetValueCount value="500" count="469" />
                        <TargetValueCount value="1000" count="473" />
                        <TargetValueCount value="5000" count="0" />
                        <TargetValueCount value="10000" count="526" />
                    </TargetValueCounts>
                </PairCounts>
                <PairCounts value="1">
                    <TargetValueCounts>
                        <TargetValueCount value="100" count="793" />
                        <TargetValueCount value="500" count="333" />
                        <TargetValueCount value="1000" count="123" />
                        <TargetValueCount value="5000" count="1146" />
                        <TargetValueCount value="10000" count="546" />
                    </TargetValueCounts>
                </PairCounts>
                <PairCounts value="2">
                    <TargetValueCounts>
                        <TargetValueCount value="100" count="632" />
                        <TargetValueCount value="500" count="236" />
                        <TargetValueCount value="1000" count="542" />
                        <TargetValueCount value="5000" count="1124" />
                        <TargetValueCount value="10000" count="3" />
                    </TargetValueCounts>
                </PairCounts>
                <PairCounts value=">2">
                    <TargetValueCounts>
                        <TargetValueCount value="100" count="1567" />
                        <TargetValueCount value="500" count="1527" />
                        <TargetValueCount value="1000" count="1138" />
                        <TargetValueCount value="5000" count="510" />
                        <TargetValueCount value="10000" count="1438" />
                    </TargetValueCounts>
                </PairCounts>
            </BayesInput>
            <BayesInput fieldName="domicile">
                <PairCounts value="suburban">
                    <TargetValueCounts>
                        <TargetValueCount value="100" count="1180" />
                        <TargetValueCount value="500" count="649" />
                        <TargetValueCount value="1000" count="1056" />
                        <TargetValueCount value="5000" count="1238" />
                        <TargetValueCount value="10000" count="1049" />
                    </TargetValueCounts>
                </PairCounts>
                <PairCounts value="urban">
                    <TargetValueCounts>
                        <TargetValueCount value="100" count="1202" />
                        <TargetValueCount value="500" count="927" />
                        <TargetValueCount value="1000" count="106" />
                        <TargetValueCount value="5000" count="272" />
                        <TargetValueCount value="10000" count="371" />
                    </TargetValueCounts>
                </PairCounts>
                <PairCounts value="rural">
                    <TargetValueCounts>
                        <TargetValueCount value="100" count="1163" />
                        <TargetValueCount value="500" count="989" />
                        <TargetValueCount value="1000" count="1014" />
                        <TargetValueCount value="5000" count="1265" />
                        <TargetValueCount value="10000" count="1092" />
                    </TargetValueCounts>
                </PairCounts>
            </BayesInput>
            <BayesInput fieldName="age of car">
                <DerivedField optype="continuous" dataType="double">
                    <Discretize field="age of car">
                        <DiscretizeBin binValue="0">
                            <Interval closure="closedOpen" leftMargin="0" rightMargin="1" />
                        </DiscretizeBin>
                        <DiscretizeBin binValue="1">
                            <Interval closure="closedOpen" leftMargin="1" rightMargin="5" />
                        </DiscretizeBin>
                        <DiscretizeBin binValue="2">
                            <Interval closure="closedOpen" leftMargin="5" />
                        </DiscretizeBin>
                    </Discretize>
                </DerivedField>
                <PairCounts value="0">
                    <TargetValueCounts>
                        <TargetValueCount value="100" count="1731" />
                        <TargetValueCount value="500" count="979" />
                        <TargetValueCount value="1000" count="934" />
                        <TargetValueCount value="5000" count="718" />
                        <TargetValueCount value="10000" count="1184" />
                    </TargetValueCounts>
                </PairCounts>
                <PairCounts value="1">
                    <TargetValueCounts>
                        <TargetValueCount value="100" count="197" />
                        <TargetValueCount value="500" count="768" />
                        <TargetValueCount value="1000" count="734" />
                        <TargetValueCount value="5000" count="688" />
                        <TargetValueCount value="10000" count="217" />
                    </TargetValueCounts>
                </PairCounts>
                <PairCounts value="2">
                    <TargetValueCounts>
                        <TargetValueCount value="100" count="1817" />
                        <TargetValueCount value="500" count="918" />
                        <TargetValueCount value="1000" count="708" />
                        <TargetValueCount value="5000" count="1374" />
                        <TargetValueCount value="10000" count="1112" />
                    </TargetValueCounts>
                </PairCounts>
            </BayesInput>
        </BayesInputs>
        <BayesOutput fieldName="amount of claims">
            <TargetValueCounts>
                <TargetValueCount value="100" count="3745" />
                <TargetValueCount value="500" count="2665" />
                <TargetValueCount value="1000" count="2376" />
                <TargetValueCount value="5000" count="2780" />
                <TargetValueCount value="10000" count="2513" />
            </TargetValueCounts>
        </BayesOutput>
    </NaiveBayesModel>
</PMML>