0% found this document useful (0 votes)
2 views18 pages

ML Practical

The document contains practical exercises related to data analysis and machine learning performance metrics. It presents a dataset with measurements of iris flowers and evaluates the performance of three models: AdaBoost, Gradient Boosting, and XGBoost, highlighting their accuracy, precision, recall, and F1-score. XGBoost achieved the highest accuracy of 100%, while AdaBoost had the lowest at 95.56%.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views18 pages

ML Practical

The document contains practical exercises related to data analysis and machine learning performance metrics. It presents a dataset with measurements of iris flowers and evaluates the performance of three models: AdaBoost, Gradient Boosting, and XGBoost, highlighting their accuracy, precision, recall, and F1-score. XGBoost achieved the highest accuracy of 100%, while AdaBoost had the lowest at 95.56%.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

PRACTICAL 01:

OUTPUT:
PRACTICAL 02:
OUTPUT:
PRACTICAL 03:
OUTPUT:
PRACTICAL 04:
OUTPUT:

Id SepalLengthCm SepalWidthCm PetalLengthCm PetalWidthCm Species\


0 1 5.1 3.5 1.4 0.2 Iris-setosa
1 2 4.9 3.0 1.4 0.2 Iris-setosa
2 3 4.7 3.2 1.3 0.2 Iris-setosa
3 4 4.6 3.1 1.5 0.2 Iris-setosa
4 5 5.0 3.6 1.4 0.2 Iris-setosa

Cluster
0 1
1 1
2 1
3 1
4 1
PRACTICAL 05:
OUTPUT:
AdaBoost Performance:
Accuracy: 95.56 %
precision recall f1-score support

0 1.00 1.00 1.00 15


1 0.94 0.94 0.94 18
2 0.94 0.94 0.94 12

accuracy 0.96 45
macro avg 0.96 0.96 0.96 45
weighted avg 0.96 0.96 0.96 45

Gradient Boosting Performance:


Accuracy: 97.78 %
precision recall f1-score support

0 1.00 1.00 1.00 15


1 0.95 1.00 0.97 18
2 1.00 0.94 0.97 12

accuracy 0.98 45
macro avg 0.98 0.98 0.98 45
weighted avg 0.98 0.98 0.98 45

XGBoost Performance:
Accuracy: 100.0 %
precision recall f1-score support

0 1.00 1.00 1.00 15


1 1.00 1.00 1.00 18
2 1.00 1.00 1.00 12

accuracy 1.00 45
macro avg 1.00 1.00 1.00 45
weighted avg 1.00 1.00 1.00 45

Model Comparison:

Model Accuracy Precision Recall F1-Score


0 AdaBoost 0.955556 0.955556 0.955556 0.955556
1Gradient Boosting 0.977778 0.977778 0.977778 0.977778
2 XGBoost 1.000000 1.000000 1.000000 1.000000
PRACTICAL 06:

You might also like