- •Міністерство освіти і науки, молоді та спорту україни київський національний економічний університет імені вадима гетьмана
- •6101, Група 1
- •Ход работы: Подготовка исходных данных
- •4,"Тов Зілот",Стіл,Висока
- •5,"Тов Зерлінг",Стілець,Висока
- •5,"Тов Зерлінг",Стіл,Низька
- •Визуализировать построенную модель.
- •Просмотреть и сохранить модель в формате pmml.
- •Визуализировать построенную модель.
- •Просмотреть и сохранить модель в формате pmml.
- •Просмотреть и сохранить модель в формате pmml.
- •Контрольні питання
- •1. Які проблеми виникають з вхідними даними.
- •2. Чому для одних і тих же даних не можуть бути побудовані всі види моделей.
- •3. Які вимоги на вхідні дані накладають різні алгоритми data mining.
- •4. Які параметри необхідно налаштувати для побудови асоціативних правил. Як від них залежить результат (побудована модель).
- •5. Які параметри необхідно налаштувати для побудови дерева рішень. Як від них залежить результат (побудована модель).
- •6. Які параметри необхідно налаштувати для виконання кластеризації. Як від них залежить результат (побудована модель).
Міністерство освіти і науки, молоді та спорту україни київський національний економічний університет імені вадима гетьмана
Лабораторна робота №3
з дисципліни “ Інтелектуальний аналіз даних”
Виконав: студент IV курсу ФІСІТ,
6101, Група 1
Денисюк Р.О.
Перевірив: доц. Іванченко Г.Ф
Київ-2011
Цель работы: Изучить основные этапы интеллектуального анализа данных с использованием алгоритмов data mining, реализованных в библиотеке Xelopes.
Задание: Для данных из файла построить модели в соответствии с вариантом задания помощью различных алгоритмов и объяснить результаты.
Ход работы: Подготовка исходных данных
@relation "Денисюк Руслан Олександрович 6101-1"
@attribute "Номер угоди" real
@attribute Постачальник {"ТОВ Зілот", "ТОВ Зерлінг", "ТОВ Марінер"}
@attribute "Матеріальна цінність" {Стіл, Стілець, "Настільна лампа", "Комп'ютер", Станок}
@attribute Ціна {Висока, Помірна, Низька}
@data
1,"ТОВ Зілот",Стіл,Висока
1,"ТОВ Зілот",Стілець,Висока
1,"ТОВ Зілот","Настільна лампа",Помірна
2,"ТОВ Зерлінг",Стіл,Низька
2,"ТОВ Зерлінг",Стілець,Висока
3,"ТОВ Марінер",Станок,Висока
4,"Тов Зілот",Стіл,Висока
4,"ТОВ Зілот",Стілець,Помірна
4,"ТОВ Зілот","Комп'ютер",Помірна
5,"Тов Зерлінг",Стілець,Висока
5,"Тов Зерлінг",Стіл,Низька
5,"ТОВ Зерлінг","Настільна лампа",Низька
6,"ТОВ Марінер",Стіл,Низька
6,"ТОВ Марінер",Стілець,Помірна
-
Построить модель Association Rules Mining Model.
-
Визуализировать построенную модель.
-
Просмотреть и сохранить модель в формате PMML.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE PMML PUBLIC "pmml20.dtd" "pmml20.dtd">
<PMML version="2.0">
<Header copyright="Copyright (c) 2003 prudsys AG" description="Xelopes mining model. See www.zsoft.ru or www.prudsys.com">
<Application version="1.1" name="Xelopes" />
<Timestamp>2011-10-05 01:26:21 GMT</Timestamp>
</Header>
<DataDictionary numberOfFields="4">
<DataField displayName="Номер угоди" name="Номер угоди" isCyclic="0" optype="categorical">
<Value displayValue="1" property="valid" value="1" />
<Value displayValue="2" property="valid" value="2" />
<Value displayValue="3" property="valid" value="3" />
<Value displayValue="4" property="valid" value="4" />
<Value displayValue="5" property="valid" value="5" />
<Value displayValue="6" property="valid" value="6" />
</DataField>
<DataField displayName="Постачальник" name="Постачальник" isCyclic="0" optype="categorical">
<Value displayValue="ТОВ Зілот" property="valid" value="ТОВ Зілот" />
<Value displayValue="ТОВ Зерлінг" property="valid" value="ТОВ Зерлінг" />
<Value displayValue="ТОВ Марінер" property="valid" value="ТОВ Марінер" />
</DataField>
<DataField displayName="Матеріальна цінність" name="Матеріальна цінність" isCyclic="0" optype="categorical">
<Value displayValue="Стіл" property="valid" value="Стіл" />
<Value displayValue="Стілець" property="valid" value="Стілець" />
<Value displayValue="Настільна лампа" property="valid" value="Настільна лампа" />
<Value displayValue="Комп'ютер" property="valid" value="Комп'ютер" />
<Value displayValue="Станок" property="valid" value="Станок" />
</DataField>
<DataField displayName="Ціна" name="Ціна" isCyclic="0" optype="categorical">
<Value displayValue="Висока" property="valid" value="Висока" />
<Value displayValue="Помірна" property="valid" value="Помірна" />
<Value displayValue="Низька" property="valid" value="Низька" />
</DataField>
</DataDictionary>
<AssociationModel minimumConfidence="0.0" numberOfRules="82" minimumSupport="0.0" itemIdName="Матеріальна цінність" numberOfTransactions="6" algorithmName="associationRules" numberOfItemsets="31" modelName="Association rules" functionName="associationRules" transactIdName="Номер угоди" numberOfItems="5">
<MiningSchema>
<MiningField missingValueTreatment="asIs" name="Номер угоди" outliers="asIs" usageType="active" />
<MiningField missingValueTreatment="asIs" name="Постачальник" outliers="asIs" usageType="supplementary" />
<MiningField missingValueTreatment="asIs" name="Матеріальна цінність" outliers="asIs" usageType="active" />
<MiningField missingValueTreatment="asIs" name="Ціна" outliers="asIs" usageType="supplementary" />
</MiningSchema>
<Item value="Стіл" id="0" />
<Item value="Стілець" id="1" />
<Item value="Настільна лампа" id="2" />
<Item value="Комп'ютер" id="3" />
<Item value="Станок" id="4" />
<Itemset numberOfItems="1" support="0.8333333333333334" id="id1">
<ItemRef itemRef="0" />
</Itemset>
<Itemset numberOfItems="2" support="0.8333333333333334" id="id2">
<ItemRef itemRef="0" />
<ItemRef itemRef="1" />
</Itemset>
<Itemset numberOfItems="3" support="0.3333333333333333" id="id3">
<ItemRef itemRef="0" />
<ItemRef itemRef="1" />
<ItemRef itemRef="2" />
</Itemset>
<Itemset numberOfItems="4" support="0.0" id="id4">
<ItemRef itemRef="0" />
<ItemRef itemRef="1" />
<ItemRef itemRef="2" />
<ItemRef itemRef="3" />
</Itemset>
<Itemset numberOfItems="5" support="0.0" id="id5">
<ItemRef itemRef="0" />
<ItemRef itemRef="1" />
<ItemRef itemRef="2" />
<ItemRef itemRef="3" />
<ItemRef itemRef="4" />
</Itemset>
<Itemset numberOfItems="4" support="0.0" id="id6">
<ItemRef itemRef="0" />
<ItemRef itemRef="1" />
<ItemRef itemRef="2" />
<ItemRef itemRef="4" />
</Itemset>
<Itemset numberOfItems="3" support="0.16666666666666666" id="id7">
<ItemRef itemRef="0" />
<ItemRef itemRef="1" />
<ItemRef itemRef="3" />
</Itemset>
<Itemset numberOfItems="4" support="0.0" id="id8">
<ItemRef itemRef="0" />
<ItemRef itemRef="1" />
<ItemRef itemRef="3" />
<ItemRef itemRef="4" />
</Itemset>
<Itemset numberOfItems="3" support="0.0" id="id9">
<ItemRef itemRef="0" />
<ItemRef itemRef="1" />
<ItemRef itemRef="4" />
</Itemset>
<Itemset numberOfItems="2" support="0.3333333333333333" id="id10">
<ItemRef itemRef="0" />
<ItemRef itemRef="2" />
</Itemset>
<Itemset numberOfItems="3" support="0.0" id="id11">
<ItemRef itemRef="0" />
<ItemRef itemRef="2" />
<ItemRef itemRef="3" />
</Itemset>
<Itemset numberOfItems="4" support="0.0" id="id12">
<ItemRef itemRef="0" />
<ItemRef itemRef="2" />
<ItemRef itemRef="3" />
<ItemRef itemRef="4" />
</Itemset>
<Itemset numberOfItems="3" support="0.0" id="id13">
<ItemRef itemRef="0" />
<ItemRef itemRef="2" />
<ItemRef itemRef="4" />
</Itemset>
<Itemset numberOfItems="2" support="0.16666666666666666" id="id14">
<ItemRef itemRef="0" />
<ItemRef itemRef="3" />
</Itemset>
<Itemset numberOfItems="3" support="0.0" id="id15">
<ItemRef itemRef="0" />
<ItemRef itemRef="3" />
<ItemRef itemRef="4" />
</Itemset>
<Itemset numberOfItems="2" support="0.0" id="id16">
<ItemRef itemRef="0" />
<ItemRef itemRef="4" />
</Itemset>
<Itemset numberOfItems="1" support="0.8333333333333334" id="id17">
<ItemRef itemRef="1" />
</Itemset>
<Itemset numberOfItems="2" support="0.3333333333333333" id="id18">
<ItemRef itemRef="1" />
<ItemRef itemRef="2" />
</Itemset>
<Itemset numberOfItems="3" support="0.0" id="id19">
<ItemRef itemRef="1" />
<ItemRef itemRef="2" />
<ItemRef itemRef="3" />
</Itemset>
<Itemset numberOfItems="4" support="0.0" id="id20">
<ItemRef itemRef="1" />
<ItemRef itemRef="2" />
<ItemRef itemRef="3" />
<ItemRef itemRef="4" />
</Itemset>
<Itemset numberOfItems="3" support="0.0" id="id21">
<ItemRef itemRef="1" />
<ItemRef itemRef="2" />
<ItemRef itemRef="4" />
</Itemset>
<Itemset numberOfItems="2" support="0.16666666666666666" id="id22">
<ItemRef itemRef="1" />
<ItemRef itemRef="3" />
</Itemset>
<Itemset numberOfItems="3" support="0.0" id="id23">
<ItemRef itemRef="1" />
<ItemRef itemRef="3" />
<ItemRef itemRef="4" />
</Itemset>
<Itemset numberOfItems="2" support="0.0" id="id24">
<ItemRef itemRef="1" />
<ItemRef itemRef="4" />
</Itemset>
<Itemset numberOfItems="1" support="0.3333333333333333" id="id25">
<ItemRef itemRef="2" />
</Itemset>
<Itemset numberOfItems="2" support="0.0" id="id26">
<ItemRef itemRef="2" />
<ItemRef itemRef="3" />
</Itemset>
<Itemset numberOfItems="3" support="0.0" id="id27">
<ItemRef itemRef="2" />
<ItemRef itemRef="3" />
<ItemRef itemRef="4" />
</Itemset>
<Itemset numberOfItems="2" support="0.0" id="id28">
<ItemRef itemRef="2" />
<ItemRef itemRef="4" />
</Itemset>
<Itemset numberOfItems="1" support="0.16666666666666666" id="id29">
<ItemRef itemRef="3" />
</Itemset>
<Itemset numberOfItems="2" support="0.0" id="id30">
<ItemRef itemRef="3" />
<ItemRef itemRef="4" />
</Itemset>
<Itemset numberOfItems="1" support="0.16666666666666666" id="id31">
<ItemRef itemRef="4" />
</Itemset>
<AssociationRule confidence="1.0" support="0.8333333333333334" consequent="id1" antecedent="id17" />
<AssociationRule confidence="1.0" support="0.8333333333333334" consequent="id17" antecedent="id1" />
<AssociationRule confidence="1.0" support="0.3333333333333333" consequent="id1" antecedent="id18" />
<AssociationRule confidence="1.0" support="0.3333333333333333" consequent="id2" antecedent="id25" />
<AssociationRule confidence="0.4" support="0.3333333333333333" consequent="id10" antecedent="id17" />
<AssociationRule confidence="1.0" support="0.3333333333333333" consequent="id17" antecedent="id10" />
<AssociationRule confidence="0.4" support="0.3333333333333333" consequent="id18" antecedent="id1" />
<AssociationRule confidence="0.4" support="0.3333333333333333" consequent="id25" antecedent="id2" />
<AssociationRule confidence="0.0" support="0.0" consequent="id25" antecedent="id7" />
<AssociationRule confidence="0.0" support="0.0" consequent="id10" antecedent="id22" />
<AssociationRule confidence="0.0" support="0.0" consequent="id3" antecedent="id29" />
<AssociationRule confidence="0.0" support="0.0" consequent="id11" antecedent="id17" />
<AssociationRule confidence="0.0" support="0.0" consequent="id18" antecedent="id14" />
<AssociationRule confidence="0.0" support="0.0" consequent="id19" antecedent="id1" />
<AssociationRule confidence="0.0" support="0.0" consequent="id26" antecedent="id2" />
<AssociationRule confidence="0.0" support="0.0" consequent="id29" antecedent="id3" />
<AssociationRule confidence="0.0" support="0.0" consequent="id14" antecedent="id18" />
<AssociationRule confidence="0.0" support="0.0" consequent="id7" antecedent="id25" />
<AssociationRule confidence="0.0" support="0.0" consequent="id22" antecedent="id10" />
<AssociationRule confidence="0.0" support="0.0" consequent="id31" antecedent="id3" />
<AssociationRule confidence="0.0" support="0.0" consequent="id16" antecedent="id18" />
<AssociationRule confidence="0.0" support="0.0" consequent="id9" antecedent="id25" />
<AssociationRule confidence="0.0" support="0.0" consequent="id13" antecedent="id17" />
<AssociationRule confidence="0.0" support="0.0" consequent="id24" antecedent="id10" />
<AssociationRule confidence="0.0" support="0.0" consequent="id21" antecedent="id1" />
<AssociationRule confidence="0.0" support="0.0" consequent="id28" antecedent="id2" />
<AssociationRule confidence="1.0" support="0.16666666666666666" consequent="id1" antecedent="id22" />
<AssociationRule confidence="1.0" support="0.16666666666666666" consequent="id2" antecedent="id29" />
<AssociationRule confidence="0.2" support="0.16666666666666666" consequent="id14" antecedent="id17" />
<AssociationRule confidence="1.0" support="0.16666666666666666" consequent="id17" antecedent="id14" />
<AssociationRule confidence="0.2" support="0.16666666666666666" consequent="id22" antecedent="id1" />
<AssociationRule confidence="0.2" support="0.16666666666666666" consequent="id29" antecedent="id2" />
<AssociationRule confidence="0.0" support="0.0" consequent="id31" antecedent="id7" />
<AssociationRule confidence="0.0" support="0.0" consequent="id16" antecedent="id22" />
<AssociationRule confidence="0.0" support="0.0" consequent="id9" antecedent="id29" />
<AssociationRule confidence="0.0" support="0.0" consequent="id15" antecedent="id17" />
<AssociationRule confidence="0.0" support="0.0" consequent="id24" antecedent="id14" />
<AssociationRule confidence="0.0" support="0.0" consequent="id23" antecedent="id1" />
<AssociationRule confidence="0.0" support="0.0" consequent="id30" antecedent="id2" />
<AssociationRule confidence="0.0" support="0.0" consequent="id31" antecedent="id2" />
<AssociationRule confidence="0.0" support="0.0" consequent="id16" antecedent="id17" />
<AssociationRule confidence="0.0" support="0.0" consequent="id24" antecedent="id1" />
<AssociationRule confidence="1.0" support="0.3333333333333333" consequent="id1" antecedent="id25" />
<AssociationRule confidence="0.4" support="0.3333333333333333" consequent="id25" antecedent="id1" />
<AssociationRule confidence="0.0" support="0.0" consequent="id25" antecedent="id14" />
<AssociationRule confidence="0.0" support="0.0" consequent="id10" antecedent="id29" />
<AssociationRule confidence="0.0" support="0.0" consequent="id26" antecedent="id1" />
<AssociationRule confidence="0.0" support="0.0" consequent="id29" antecedent="id10" />
<AssociationRule confidence="0.0" support="0.0" consequent="id14" antecedent="id25" />
<AssociationRule confidence="0.0" support="0.0" consequent="id31" antecedent="id10" />
<AssociationRule confidence="0.0" support="0.0" consequent="id16" antecedent="id25" />
<AssociationRule confidence="0.0" support="0.0" consequent="id28" antecedent="id1" />
<AssociationRule confidence="1.0" support="0.16666666666666666" consequent="id1" antecedent="id29" />
<AssociationRule confidence="0.2" support="0.16666666666666666" consequent="id29" antecedent="id1" />
<AssociationRule confidence="0.0" support="0.0" consequent="id31" antecedent="id14" />
<AssociationRule confidence="0.0" support="0.0" consequent="id16" antecedent="id29" />
<AssociationRule confidence="0.0" support="0.0" consequent="id30" antecedent="id1" />
<AssociationRule confidence="0.0" support="0.0" consequent="id1" antecedent="id31" />
<AssociationRule confidence="0.0" support="0.0" consequent="id31" antecedent="id1" />
<AssociationRule confidence="1.0" support="0.3333333333333333" consequent="id17" antecedent="id25" />
<AssociationRule confidence="0.4" support="0.3333333333333333" consequent="id25" antecedent="id17" />
<AssociationRule confidence="0.0" support="0.0" consequent="id25" antecedent="id22" />
<AssociationRule confidence="0.0" support="0.0" consequent="id18" antecedent="id29" />
<AssociationRule confidence="0.0" support="0.0" consequent="id26" antecedent="id17" />
<AssociationRule confidence="0.0" support="0.0" consequent="id29" antecedent="id18" />
<AssociationRule confidence="0.0" support="0.0" consequent="id22" antecedent="id25" />
<AssociationRule confidence="0.0" support="0.0" consequent="id31" antecedent="id18" />
<AssociationRule confidence="0.0" support="0.0" consequent="id24" antecedent="id25" />
<AssociationRule confidence="0.0" support="0.0" consequent="id28" antecedent="id17" />
<AssociationRule confidence="1.0" support="0.16666666666666666" consequent="id17" antecedent="id29" />
<AssociationRule confidence="0.2" support="0.16666666666666666" consequent="id29" antecedent="id17" />
<AssociationRule confidence="0.0" support="0.0" consequent="id31" antecedent="id22" />
<AssociationRule confidence="0.0" support="0.0" consequent="id24" antecedent="id29" />
<AssociationRule confidence="0.0" support="0.0" consequent="id30" antecedent="id17" />
<AssociationRule confidence="0.0" support="0.0" consequent="id17" antecedent="id31" />
<AssociationRule confidence="0.0" support="0.0" consequent="id31" antecedent="id17" />
<AssociationRule confidence="0.0" support="0.0" consequent="id25" antecedent="id29" />
<AssociationRule confidence="0.0" support="0.0" consequent="id29" antecedent="id25" />
<AssociationRule confidence="0.0" support="0.0" consequent="id25" antecedent="id31" />
<AssociationRule confidence="0.0" support="0.0" consequent="id31" antecedent="id25" />
<AssociationRule confidence="0.0" support="0.0" consequent="id29" antecedent="id31" />
<AssociationRule confidence="0.0" support="0.0" consequent="id31" antecedent="id29" />
</AssociationModel>
</PMML>
-
Построить модель Decision Tree Mining Model.