source: src/test/java/weka/classifiers/pmml/data/HEART_RULESET.xml @ 10

Last change on this file since 10 was 4, checked in by gnappo, 14 years ago

Import di weka.

File size: 7.3 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<PMML version="3.0" xmlns="http://www.dmg.org/PMML-3_0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
3<Header copyright="Copyright (c) Integral Solutions Ltd., 1994 - 2005. All rights reserved.">
4<Application name="Clementine" version="10.0"/>
5<Annotation>Exported with PMML extensions for use with SPSS SmartScore</Annotation>
6</Header>
7<DataDictionary numberOfFields="10">
8<DataField name="cp" optype="categorical" dataType="string">
9<Extension name="storageType" value="string"/>
10<Value value="asympt" property="valid"/>
11<Value value="atyp_angina" property="valid"/>
12<Value value="non_anginal" property="valid"/>
13<Value value="typ_angina" property="valid"/>
14</DataField>
15<DataField name="restecg" optype="categorical" dataType="string">
16<Extension name="storageType" value="string"/>
17<Value value="left_vent_hyper" property="valid"/>
18<Value value="normal" property="valid"/>
19<Value value="st_t_wave_abnormality" property="valid"/>
20</DataField>
21<DataField name="thal" optype="categorical" dataType="string">
22<Extension name="storageType" value="string"/>
23<Value value="fixed_defect" property="valid"/>
24<Value value="normal" property="valid"/>
25<Value value="reversable_defect" property="valid"/>
26</DataField>
27<DataField name="trestbps" optype="continuous" dataType="integer">
28<Extension name="storageType" value="numeric"/>
29</DataField>
30<DataField name="ca" optype="continuous" dataType="integer">
31<Extension name="storageType" value="numeric"/>
32</DataField>
33<DataField name="slope" optype="categorical" dataType="string">
34<Extension name="storageType" value="string"/>
35<Value value="down" property="valid"/>
36<Value value="flat" property="valid"/>
37<Value value="up" property="valid"/>
38</DataField>
39<DataField name="oldpeak" optype="continuous" dataType="double">
40<Extension name="storageType" value="numeric"/>
41</DataField>
42<DataField name="exang" optype="categorical" dataType="string">
43<Extension name="storageType" value="string"/>
44<Value value="no" property="valid"/>
45<Value value="yes" property="valid"/>
46</DataField>
47<DataField name="$L-num" optype="categorical" dataType="string">
48<Extension name="storageType" value="string"/>
49<Value value="&lt;50" property="valid"/>
50<Value value="&gt;50_1" property="valid"/>
51</DataField>
52<DataField name="$CC-num" optype="continuous" dataType="double">
53<Extension name="storageType" value="numeric"/>
54</DataField>
55</DataDictionary>
56<RuleSetModel modelName="HEART_RULESET" functionName="classification" algorithmName="RuleSet">
57<MiningSchema>
58<MiningField name="cp" usageType="active"/>
59<MiningField name="restecg" usageType="active"/>
60<MiningField name="thal" usageType="active"/>
61<MiningField name="trestbps" usageType="active"/>
62<MiningField name="ca" usageType="active"/>
63<MiningField name="slope" usageType="active"/>
64<MiningField name="oldpeak" usageType="active"/>
65<MiningField name="exang" usageType="active"/>
66<MiningField name="$L-num" usageType="predicted"/>
67<MiningField name="$CC-num" usageType="supplementary"/>
68</MiningSchema>
69<RuleSet defaultScore="&gt;50_1" defaultConfidence="0.5" recordCount="650.0">
70<RuleSelectionMethod criterion="weightedSum"/>
71<SimpleRule score="&lt;50" recordCount="23" nbCorrect="23.0" confidence="0.96" weight="0.96" id="0">
72<CompoundPredicate booleanOperator="and">
73<SimplePredicate field="cp" operator="equal" value="atyp_angina"/>
74<SimplePredicate field="restecg" operator="equal" value="normal"/>
75<SimplePredicate field="thal" operator="equal" value="normal"/>
76</CompoundPredicate>
77</SimpleRule>
78<SimpleRule score="&lt;50" recordCount="22" nbCorrect="21.0" confidence="0.9166666666666666" weight="0.9166666666666666" id="1">
79<CompoundPredicate booleanOperator="and">
80<SimplePredicate field="cp" operator="equal" value="non_anginal"/>
81<SimplePredicate field="ca" operator="lessOrEqual" value="0"/>
82<SimplePredicate field="trestbps" operator="lessOrEqual" value="122"/>
83</CompoundPredicate>
84</SimpleRule>
85<SimpleRule score="&lt;50" recordCount="62" nbCorrect="57.0" confidence="0.90625" weight="0.90625" id="2">
86<CompoundPredicate booleanOperator="and">
87<SimplePredicate field="cp" operator="equal" value="non_anginal"/>
88<SimplePredicate field="thal" operator="equal" value="normal"/>
89</CompoundPredicate>
90</SimpleRule>
91<SimpleRule score="&lt;50" recordCount="49" nbCorrect="45.0" confidence="0.9019607843137255" weight="0.9019607843137255" id="3">
92<CompoundPredicate booleanOperator="and">
93<SimplePredicate field="cp" operator="equal" value="non_anginal"/>
94<SimplePredicate field="slope" operator="equal" value="up"/>
95</CompoundPredicate>
96</SimpleRule>
97<SimpleRule score="&lt;50" recordCount="114" nbCorrect="102.0" confidence="0.8879310344827587" weight="0.8879310344827587" id="4">
98<CompoundPredicate booleanOperator="and">
99<SimplePredicate field="thal" operator="equal" value="normal"/>
100<SimplePredicate field="ca" operator="lessOrEqual" value="0"/>
101</CompoundPredicate>
102</SimpleRule>
103<SimpleRule score="&lt;50" recordCount="59" nbCorrect="52.0" confidence="0.8688524590163934" weight="0.8688524590163934" id="5">
104<CompoundPredicate booleanOperator="and">
105<SimplePredicate field="restecg" operator="equal" value="normal"/>
106<SimplePredicate field="trestbps" operator="lessOrEqual" value="136"/>
107<SimplePredicate field="oldpeak" operator="lessOrEqual" value="0.600000071525574"/>
108</CompoundPredicate>
109</SimpleRule>
110<SimpleRule score="&lt;50" recordCount="5" nbCorrect="5.0" confidence="0.8571428571428571" weight="0.8571428571428571" id="6">
111<CompoundPredicate booleanOperator="and">
112<SimplePredicate field="exang" operator="equal" value="no"/>
113<SimplePredicate field="thal" operator="equal" value="fixed_defect"/>
114<SimplePredicate field="ca" operator="lessOrEqual" value="0"/>
115</CompoundPredicate>
116</SimpleRule>
117<SimpleRule score="&lt;50" recordCount="40" nbCorrect="34.0" confidence="0.8333333333333334" weight="0.8333333333333334" id="7">
118<CompoundPredicate booleanOperator="and">
119<SimplePredicate field="cp" operator="equal" value="atyp_angina"/>
120<SimplePredicate field="oldpeak" operator="lessOrEqual" value="0.700000023841858"/>
121</CompoundPredicate>
122</SimpleRule>
123<SimpleRule score="&lt;50" recordCount="13" nbCorrect="11.0" confidence="0.8" weight="0.8" id="8">
124<CompoundPredicate booleanOperator="and">
125<SimplePredicate field="cp" operator="equal" value="typ_angina"/>
126<SimplePredicate field="trestbps" operator="greaterThan" value="138"/>
127</CompoundPredicate>
128</SimpleRule>
129<SimpleRule score="&gt;50_1" recordCount="5" nbCorrect="5.0" confidence="0.8571428571428571" weight="0.8571428571428571" id="9">
130<CompoundPredicate booleanOperator="and">
131<SimplePredicate field="cp" operator="equal" value="atyp_angina"/>
132<SimplePredicate field="restecg" operator="equal" value="left_vent_hyper"/>
133<SimplePredicate field="exang" operator="equal" value="no"/>
134<SimplePredicate field="ca" operator="greaterThan" value="0"/>
135</CompoundPredicate>
136</SimpleRule>
137<SimpleRule score="&gt;50_1" recordCount="117" nbCorrect="89.0" confidence="0.7563025210084033" weight="0.7563025210084033" id="10">
138<SimplePredicate field="thal" operator="equal" value="reversable_defect"/>
139</SimpleRule>
140<SimpleRule score="&gt;50_1" recordCount="123" nbCorrect="92.0" confidence="0.744" weight="0.744" id="11">
141<SimplePredicate field="ca" operator="greaterThan" value="0"/>
142</SimpleRule>
143<SimpleRule score="&gt;50_1" recordCount="18" nbCorrect="12.0" confidence="0.65" weight="0.65" id="12">
144<SimplePredicate field="thal" operator="equal" value="fixed_defect"/>
145</SimpleRule>
146</RuleSet>
147</RuleSetModel>
148</PMML>
Note: See TracBrowser for help on using the repository browser.