Skip to main content

Dwdm exp6

 6. Demonstrate knowledge flow application on data sets


age

specticle_prescrip

astigmation

tear_prod_rate

contact_lenses

young

myopia

no

reduce

none

young

myopia

no

normal

soft

young

myopia

yes

reduce

none

young

myopia

yes

normal

hard

young

hypermertropia

no

reduce

none

young

hypermertropia

no

normal

soft

young

hypermertropia

yes

reduce

none

young

hypermertropia

yes

normal

hard

pre_pres_byopic

myopia

no

reduce

none

pre_pres_byopic

myopia

no

normal

none

pre_pres_byopic

myopia

yes

reduce

soft

pre_pres_byopic

myopia

yes

normal

hard

pre_pres_byopic

hypermertropia

yes

normal

none

pre_pres_byopic

hypermertropia

no

reduce

normal

pre_pres_byopic

hypermertropia

yes

reduce

normal

pre_pres_byopic

myopia

no

normal

none

pre_pres_byopic

myopia

yes

reduce

none

pres_byopic

hypermertropia

yes

normal

soft



1.Develop a knowledge flow layout for finding strong association rules by using, Apriori algorithm

Aim: Demonstration of association rule process on contactlens.arff using apriori algorithm.

 @relation contactlenses

@attribute age {young,pre_pres_byopic,pres_byopic}

@attribute specticle_prescrip {myopia,hypermertropia}

@attribute astigmation {yes,no}

@attribute tear_prod_rate {reduce,normal}

@attribute contact_lenses {none,soft,hard,normal}


@data

young,myopia,no,reduce,none

young,myopia,no,normal,soft

young,myopia,yes,reduce,none

young,myopia,yes,normal,hard

young,hypermertropia,no,reduce,none

young,hypermertropia,no,normal,soft

young,hypermertropia,yes,reduce,none

young,hypermertropia,yes,normal,hard

pre_pres_byopic,myopia,no,reduce,none

pre_pres_byopic,myopia,no,normal,none

pre_pres_byopic,myopia,yes,reduce,soft

pre_pres_byopic,myopia,yes,normal,hard

pre_pres_byopic,hypermertropia,yes,normal,none

pre_pres_byopic,hypermertropia,no,reduce,normal

pre_pres_byopic,hypermertropia,yes,reduce,normal

pre_pres_byopic,myopia,no,normal,none

pre_pres_byopic,myopia,yes,reduce,none

pres_byopic,hypermertropia,yes,normal,soft


Step1:open the data file in weka explorer it is presume the required data have described .

Step2: clicking an association up will bring up the Interface for association algorithm.

Step3:we use Apriori algorithm which is default algorithm 

Step 4: In order to change the parameter click on the text box immediately to the right of the choose button.

Step 5: : Now we click on start to rum the Apriori algorithm.

output: 

=== Run information ===

Scheme:       weka.associations.Apriori -N 10 -T 0 -C 0.9 -D 0.05 -U 1.0 -M 0.1 -S -1.0 -c -1

Relation:     contactlenses

Instances:    18

Attributes:   5

              age

              specticle_prescrip

              astigmation

              tear_prod_rate

              contact_lenses

=== Associator model (full training set) ===

Apriori

=======

Minimum support: 0.15 (3 instances)

Minimum metric <confidence>: 0.9

Number of cycles performed: 17

Generated sets of large itemsets:

Size of set of large itemsets L(1): 11

Size of set of large itemsets L(2): 35

Size of set of large itemsets L(3): 17

Size of set of large itemsets L(4): 1

Best rules found:

 1. age=young contact_lenses=none 4 ==> tear_prod_rate=reduce 4    conf:(1)

 2. age=young tear_prod_rate=reduce 4 ==> contact_lenses=none 4    conf:(1)

 3. contact_lenses=hard 3 ==> astigmation=yes 3    conf:(1)

 4. contact_lenses=hard 3 ==> tear_prod_rate=normal 3    conf:(1)

 5. tear_prod_rate=normal contact_lenses=none 3 ==> age=pre_pres_byopic 3    conf:(1)

 6. tear_prod_rate=normal contact_lenses=hard 3 ==> astigmation=yes 3    conf:(1)

 7. astigmation=yes contact_lenses=hard 3 ==> tear_prod_rate=normal 3    conf:(1)

 8. contact_lenses=hard 3 ==> astigmation=yes tear_prod_rate=normal 3    conf:(1)

 9. age=pre_pres_byopic astigmation=no contact_lenses=none 3 ==> specticle_prescrip=myopia 3    conf:(1)

10. age=pre_pres_byopic specticle_prescrip=myopia astigmation=no 3 ==> contact_lenses=none 3    conf:(1)

Comments

Popular posts from this blog

DWDM lab exp2

  Explore machine learning tool“WEKA”//2.a// Explore WEKA Data Mining/Machine Learning Toolkit. ANS: WEKA(Waikato Environment for Knowledge Analysis) an open-source software provides tools for data preprocessing, implementation of several Machine Learning algorithms, and visualization tools so that we can develop machine learning techniques and apply them to real-world data mining problems. Features of WEKA - Preprocessor – Most of the Data is Raw. Hence, Preprocessor is used to clean the noisy data. Classify – After preprocessing the data, we assign classes or categories to items. Cluster – In Clustering, a dataset is arranged in different groups/clusters based on some similarities. Associate – Association rules highlight all the associations and correlations between items of a dataset. Select Attributes – Every dataset contains a lot of attributes; only significantly valuable attributes are selected for building a good model. Visualize – In Visualization, different plot matrices ...

DWDM 2b ,2c experiment

 //2b// Downloading and/or installation of WEKA data mining toolkit. Go to the Weka website, http://www.cs.waikato.ac.nz/ml/weka/ , and download the software. Select the appropriate link corresponding to the version of the software based on your operating system and whether or not you already have Java VM running on your machine. The link will forward you to a site where you can download the software from a mirror site. Save the self-extracting executable to disk and then double click on it to install Weka. Answer yes or next to the questions during the installation. Click yes to accept the Java agreement if necessary. After you install the program Weka should appear on your start menu under Programs (if you are using Windows). Running Weka from the start menu select Programs, then Weka. You will see the Weka GUI Chooser. Select Explorer. The Weka Explorer will then launch. //2c// Understand the features of WEKA toolkit such as Explorer, Knowledge Flow interface, Experimenter, comm...

Dwdm 1exp 2 bit

  1.experiment 2 . Design multi-dimensional data models namely Star, Snowflake and Fact Constellation schemas forany one enterprise (ex. Banking, Insurance, Finance, Healthcare, manufacturing, Automobiles, sales etc). What is Schema?  Schema is a logical description of the entire database. Star Schema:  A star schema is the elementary form of a dimensional model, in which data are organized into facts and dimensions .  This dimension table contains the set of attributes. The following diagram shows the sales data of a company with respect to the four dimensions, namely time, item, branch, and location .  There is a fact table at the center. It contains the keys to each of four dimensions .  Snowflake Schema:  Some dimension tables in the Snowflake schema are normalized.  The normalization splits up the data into additional tables.  Fact Constellation Schema:  A Fact constellation means two or more fact tables sharing one or more dim...