Lab Record 10-15
Lab Record 10-15
Lab Record 10-15
@relation weather
@attribute outlook {sunny,rainy,overcast}
@attribute temparature numeric
@attribute humidity numeric
@attribute windy {true,false}
@attribute play {yes,no}
@data
sunny,85.0,85.0,false,no
overcast,80.0,90.0,true,no
sunny,83.0,86.0,false,yes
rainy,70.0,86.0,false,yes
rainy,68.0,80.0,false,yes
rainy,65.0,70.0,true,no
overcast,64.0,65.0,false,yes
sunny,72.0,95.0,true,no
sunny,69.0,70.0,false,yes
rainy,75.0,80.0,false,yes
Procedure:
Steps:
Result:
This program has been successfully executed
Apply Pre-Processing techniques to the training data set of Weather Table
@relation weather
@attribute outlook {sunny,rainy,overcast}
@attribute temparature numeric
@attribute humidity numeric
@attribute windy {true,false}
@attribute play {yes,no}
@data
sunny,85.0,85.0,false,no
overcast,80.0,90.0,true,no
sunny,83.0,86.0,false,yes
rainy,70.0,86.0,false,yesrainy,68.0,80.0,false,yes
rainy,65.0,70.0,true,no
overcast,64.0,65.0,false,yes
sunny,72.0,95.0,true,no
sunny,69.0,70.0,false,yes
rainy,75.0,80.0,false,yes
Procedure:
Pre-processing:
Result:
This program has been successfully executed
Write a program to demonstrate Visualization for Weather . arff.
@relation weather
@attribute outlook {sunny,rainy,overcast}
@attribute temperature numeric
@attribute humidity numeric
@attribute windy {true,false}
@attribute play {yes,no}
@data
sunny,85.0,85.0,false,no
overcast,80.0,90.0,true,no
sunny,83.0,86.0,false,yes
rainy,70.0,86.0,false,yes
rainy,68.0,80.0,false,yes
rainy,65.0,70.0,true,no
overcast,64.0,65.0,false,yes
sunny,72.0,95.0,true,no
sunny,69.0,70.0,false,yes
rainy,75.0,80.0,false,yes
Procedure:
Pre-processing:
@relation weather
@attribute outlook {sunny,rainy,overcast}
@attribute temparature numeric
@attribute humidity numeric
@attribute windy {true,false}
@attribute play {yes,no}
@data
sunny,85.0,85.0,false,no
overcast,80.0,90.0,true,no
sunny,83.0,86.0,false,yes
rainy,70.0,86.0,false,yes
rainy,68.0,80.0,false,yes
rainy,65.0,70.0,true,no
overcast,64.0,65.0,false,yes
sunny,72.0,95.0,true,nosunny,69.0,70.0,false,yes
rainy,75.0,80.0,false,yes
Procedure:
Steps:
Input Data:
1.Code Execution:
4. After that choose the Percentage split in Test options make it 66% or 70% then
click the START option.
Results/ Output:
=== Summary ===
Correctly Classified Instances 3 60 %
Incorrectly Classified Instances 2 40 %
Kappa statistic 0
Mean absolute error 0.5129
Root mean squared error 0.5706
Relative absolute error 108.5002 %
Root relative squared error 116.1441 %
Total Number of Instances 5
=== Confusion Matrix ===
a b <-- classified as
3 0 | a = yes
2 0 | b = no
Dataset:
@relation COVID-19
@data
35, male, 99.5, yes, no, no, positive
42, female, 98.8, yes, yes, yes, positive
28, male, 98.0, no, yes, yes, negative
50, female, 99.2, yes, no, no, negative
Description:
The dataset "Covid.arff" contains information related to COVID-19 cases. It
includes various attributes such as age, gender, symptoms, test results, and
whether a patient tested positive or negative for COVID-19.
We aim to use the J48 algorithm to create a decision tree that can predict the
likelihood of a person testing positive for COVID-19 based on these attributes.
Procedure :
Pre-processing:
Visualize all Attribute:
Result:
This program has been successfully executed.
Dataset:
@relation MarketBasketAnalysis
@data
1,1,0,1,0
1,0,1,0,1
0,1,1,1,0
1,0,0,1,1
Description:
Association rule mining is a data mining technique used to find associations,
correlations, or patterns in large datasets. In this program, we will use the Apriori
algorithm, a classic algorithm for this task. We will apply it to the "Market-basket-
analysis.arff" dataset, which typically represents transactions ina retail environment
Procedure:
Result:
This program has been successfully executed.