SlideShare a Scribd company logo
1 of 11
The most
accurate
algorithm
AI ML Assignment
R.MUKILARASU
21BAD038
DATASET:
• This dataset includes percentage of fat intake
from different types of food in countries around
the world.
• The last couple of columns also includes
counts of obesity, undernourished, and COVID-
19 cases as percentages of the total population
for comparison purposes.
1. Logistic Regression
2. Support Vector Machine
3. Decision Tree Classifier
4. K-Nearest Neighbours
5. Random Forest Classifier
Algorithms
applied:
This Photo by Unknown author is licensed under CC BY-NC-
ND.
Independent
variables:
Dependent variable:
Implementation:
• All the above mentioned
algorithms were imported from
sklearn module.
Code:
from sklearn.linear_modelimport
LogisticRegression from sklearn.svm import SVC
from sklearn.tree import DecisionTreeClassifier
from sklearn.neighbors import
KNeighborsClassifier from sklearn.ensemble
import
RandomForestClassifie
Results:
• The following results were
seen when the algorithms
were implemented
Logistic Regression:
• The accuracy of the testing data when the model is trained using logistic
regression is 89.30%
• While its Precision is 89.34%
Support Vector Machine:
• The accuracy of the testing data when the model is trained using SVM is
89.30%
• While its Precision is 89.31%
Decision Tree:
• The accuracy of the testing data when the model is trained using decision
tree is 84.70%
• While its Precision is 84.74%
K-Nearest Neighbours:
• The accuracy of the testing data
when the model is trained using KNN is
87.87%
• While its Precision is 87.91%
Random Forest:
• The accuracy of the testing data
when the model is trained using
Random Forest is 88.88%
• While its Precision is 88.90%
Conclusion:
• From the results we infer that logistic
regression and support vector machine are
the most accurate algorithms (89.30%).

More Related Content

Similar to Presentation3.docx

Adapted Branch-and-Bound Algorithm Using SVM With Model Selection
Adapted Branch-and-Bound Algorithm Using SVM With Model SelectionAdapted Branch-and-Bound Algorithm Using SVM With Model Selection
Adapted Branch-and-Bound Algorithm Using SVM With Model SelectionIJECEIAES
 
IRJET - Analysis of Crop Yield Prediction by using Machine Learning Algorithms
IRJET - Analysis of Crop Yield Prediction by using Machine Learning AlgorithmsIRJET - Analysis of Crop Yield Prediction by using Machine Learning Algorithms
IRJET - Analysis of Crop Yield Prediction by using Machine Learning AlgorithmsIRJET Journal
 
Lec 03(VDIdr shady)
Lec 03(VDIdr shady)Lec 03(VDIdr shady)
Lec 03(VDIdr shady)Mohamed Atef
 
A Sparse-Coding Based Approach for Class-Specific Feature Selection
A Sparse-Coding Based Approach for Class-Specific Feature SelectionA Sparse-Coding Based Approach for Class-Specific Feature Selection
A Sparse-Coding Based Approach for Class-Specific Feature SelectionDavide Nardone
 
Blood Cell Image Classification for Detecting Malaria using CNN
Blood Cell Image Classification for Detecting Malaria using CNNBlood Cell Image Classification for Detecting Malaria using CNN
Blood Cell Image Classification for Detecting Malaria using CNNIRJET Journal
 
Handwritten Digit Recognition and performance of various modelsation[autosaved]
Handwritten Digit Recognition and performance of various modelsation[autosaved]Handwritten Digit Recognition and performance of various modelsation[autosaved]
Handwritten Digit Recognition and performance of various modelsation[autosaved]SubhradeepMaji
 
Dynamic Matrix Control (DMC) on jacket tank heater - Rishikesh Bagwe
Dynamic Matrix Control (DMC) on jacket tank heater - Rishikesh BagweDynamic Matrix Control (DMC) on jacket tank heater - Rishikesh Bagwe
Dynamic Matrix Control (DMC) on jacket tank heater - Rishikesh BagweRishikesh Bagwe
 
IRJET- Mango Classification using Convolutional Neural Networks
IRJET- Mango Classification using Convolutional Neural NetworksIRJET- Mango Classification using Convolutional Neural Networks
IRJET- Mango Classification using Convolutional Neural NetworksIRJET Journal
 
IRJET- Machine Learning and Deep Learning Methods for Cybersecurity
IRJET- Machine Learning and Deep Learning Methods for CybersecurityIRJET- Machine Learning and Deep Learning Methods for Cybersecurity
IRJET- Machine Learning and Deep Learning Methods for CybersecurityIRJET Journal
 
IRJET- A Review on Data Dependent Label Distribution Learning for Age Estimat...
IRJET- A Review on Data Dependent Label Distribution Learning for Age Estimat...IRJET- A Review on Data Dependent Label Distribution Learning for Age Estimat...
IRJET- A Review on Data Dependent Label Distribution Learning for Age Estimat...IRJET Journal
 
A Review on Food Classification using Convolutional Neural Networks
A Review on Food Classification using Convolutional Neural NetworksA Review on Food Classification using Convolutional Neural Networks
A Review on Food Classification using Convolutional Neural NetworksIRJET Journal
 
AUTOMATED WASTE MANAGEMENT SYSTEM
AUTOMATED WASTE MANAGEMENT SYSTEMAUTOMATED WASTE MANAGEMENT SYSTEM
AUTOMATED WASTE MANAGEMENT SYSTEMIRJET Journal
 
Smart Residential Energy Management System Using Machine Learning.pptx
Smart Residential Energy Management System Using Machine Learning.pptxSmart Residential Energy Management System Using Machine Learning.pptx
Smart Residential Energy Management System Using Machine Learning.pptx083AbdulJavvad
 
DETECTION OF MALICIOUS EXECUTABLES USING RULE BASED CLASSIFICATION ALGORITHMS
DETECTION OF MALICIOUS EXECUTABLES USING RULE BASED CLASSIFICATION ALGORITHMSDETECTION OF MALICIOUS EXECUTABLES USING RULE BASED CLASSIFICATION ALGORITHMS
DETECTION OF MALICIOUS EXECUTABLES USING RULE BASED CLASSIFICATION ALGORITHMSAAKANKSHA JAIN
 
RapidMiner Linear Regression Tutorial ProcessesPPT.pdf
RapidMiner Linear Regression Tutorial ProcessesPPT.pdfRapidMiner Linear Regression Tutorial ProcessesPPT.pdf
RapidMiner Linear Regression Tutorial ProcessesPPT.pdfssuser2cfd2b
 
Clustering using GA and Hill-climbing
Clustering using GA and Hill-climbingClustering using GA and Hill-climbing
Clustering using GA and Hill-climbingFatemeh Karimi
 
8th TUC Meeting - Tim Hegeman (TU Delft). Social Network Benchmark, Analytics...
8th TUC Meeting - Tim Hegeman (TU Delft). Social Network Benchmark, Analytics...8th TUC Meeting - Tim Hegeman (TU Delft). Social Network Benchmark, Analytics...
8th TUC Meeting - Tim Hegeman (TU Delft). Social Network Benchmark, Analytics...LDBC council
 
Blind Source Camera Identification
Blind Source Camera Identification Blind Source Camera Identification
Blind Source Camera Identification Sudhanshu Patel
 

Similar to Presentation3.docx (20)

Adapted Branch-and-Bound Algorithm Using SVM With Model Selection
Adapted Branch-and-Bound Algorithm Using SVM With Model SelectionAdapted Branch-and-Bound Algorithm Using SVM With Model Selection
Adapted Branch-and-Bound Algorithm Using SVM With Model Selection
 
German credit data analysis
German credit data analysisGerman credit data analysis
German credit data analysis
 
IRJET - Analysis of Crop Yield Prediction by using Machine Learning Algorithms
IRJET - Analysis of Crop Yield Prediction by using Machine Learning AlgorithmsIRJET - Analysis of Crop Yield Prediction by using Machine Learning Algorithms
IRJET - Analysis of Crop Yield Prediction by using Machine Learning Algorithms
 
Lec 03(VDIdr shady)
Lec 03(VDIdr shady)Lec 03(VDIdr shady)
Lec 03(VDIdr shady)
 
A Sparse-Coding Based Approach for Class-Specific Feature Selection
A Sparse-Coding Based Approach for Class-Specific Feature SelectionA Sparse-Coding Based Approach for Class-Specific Feature Selection
A Sparse-Coding Based Approach for Class-Specific Feature Selection
 
Blood Cell Image Classification for Detecting Malaria using CNN
Blood Cell Image Classification for Detecting Malaria using CNNBlood Cell Image Classification for Detecting Malaria using CNN
Blood Cell Image Classification for Detecting Malaria using CNN
 
Handwritten Digit Recognition and performance of various modelsation[autosaved]
Handwritten Digit Recognition and performance of various modelsation[autosaved]Handwritten Digit Recognition and performance of various modelsation[autosaved]
Handwritten Digit Recognition and performance of various modelsation[autosaved]
 
Dynamic Matrix Control (DMC) on jacket tank heater - Rishikesh Bagwe
Dynamic Matrix Control (DMC) on jacket tank heater - Rishikesh BagweDynamic Matrix Control (DMC) on jacket tank heater - Rishikesh Bagwe
Dynamic Matrix Control (DMC) on jacket tank heater - Rishikesh Bagwe
 
IRJET- Mango Classification using Convolutional Neural Networks
IRJET- Mango Classification using Convolutional Neural NetworksIRJET- Mango Classification using Convolutional Neural Networks
IRJET- Mango Classification using Convolutional Neural Networks
 
IRJET- Machine Learning and Deep Learning Methods for Cybersecurity
IRJET- Machine Learning and Deep Learning Methods for CybersecurityIRJET- Machine Learning and Deep Learning Methods for Cybersecurity
IRJET- Machine Learning and Deep Learning Methods for Cybersecurity
 
IRJET- A Review on Data Dependent Label Distribution Learning for Age Estimat...
IRJET- A Review on Data Dependent Label Distribution Learning for Age Estimat...IRJET- A Review on Data Dependent Label Distribution Learning for Age Estimat...
IRJET- A Review on Data Dependent Label Distribution Learning for Age Estimat...
 
A Review on Food Classification using Convolutional Neural Networks
A Review on Food Classification using Convolutional Neural NetworksA Review on Food Classification using Convolutional Neural Networks
A Review on Food Classification using Convolutional Neural Networks
 
AUTOMATED WASTE MANAGEMENT SYSTEM
AUTOMATED WASTE MANAGEMENT SYSTEMAUTOMATED WASTE MANAGEMENT SYSTEM
AUTOMATED WASTE MANAGEMENT SYSTEM
 
Smart Residential Energy Management System Using Machine Learning.pptx
Smart Residential Energy Management System Using Machine Learning.pptxSmart Residential Energy Management System Using Machine Learning.pptx
Smart Residential Energy Management System Using Machine Learning.pptx
 
Linear regression model
Linear regression modelLinear regression model
Linear regression model
 
DETECTION OF MALICIOUS EXECUTABLES USING RULE BASED CLASSIFICATION ALGORITHMS
DETECTION OF MALICIOUS EXECUTABLES USING RULE BASED CLASSIFICATION ALGORITHMSDETECTION OF MALICIOUS EXECUTABLES USING RULE BASED CLASSIFICATION ALGORITHMS
DETECTION OF MALICIOUS EXECUTABLES USING RULE BASED CLASSIFICATION ALGORITHMS
 
RapidMiner Linear Regression Tutorial ProcessesPPT.pdf
RapidMiner Linear Regression Tutorial ProcessesPPT.pdfRapidMiner Linear Regression Tutorial ProcessesPPT.pdf
RapidMiner Linear Regression Tutorial ProcessesPPT.pdf
 
Clustering using GA and Hill-climbing
Clustering using GA and Hill-climbingClustering using GA and Hill-climbing
Clustering using GA and Hill-climbing
 
8th TUC Meeting - Tim Hegeman (TU Delft). Social Network Benchmark, Analytics...
8th TUC Meeting - Tim Hegeman (TU Delft). Social Network Benchmark, Analytics...8th TUC Meeting - Tim Hegeman (TU Delft). Social Network Benchmark, Analytics...
8th TUC Meeting - Tim Hegeman (TU Delft). Social Network Benchmark, Analytics...
 
Blind Source Camera Identification
Blind Source Camera Identification Blind Source Camera Identification
Blind Source Camera Identification
 

Recently uploaded

NO1 Pakistan Black magic In Pakistan Kala Ilam Expert Specialist In UK Kala I...
NO1 Pakistan Black magic In Pakistan Kala Ilam Expert Specialist In UK Kala I...NO1 Pakistan Black magic In Pakistan Kala Ilam Expert Specialist In UK Kala I...
NO1 Pakistan Black magic In Pakistan Kala Ilam Expert Specialist In UK Kala I...Amil Baba Dawood bangali
 
Carbon Stock Assessment in Banten Province and Demak, Central Java, Indonesia
Carbon Stock Assessment in Banten Province and Demak, Central Java, IndonesiaCarbon Stock Assessment in Banten Province and Demak, Central Java, Indonesia
Carbon Stock Assessment in Banten Province and Demak, Central Java, IndonesiaCIFOR-ICRAF
 
NO1 Best Amil Baba In Pakistan Authentic Amil In pakistan Best Amil In Pakist...
NO1 Best Amil Baba In Pakistan Authentic Amil In pakistan Best Amil In Pakist...NO1 Best Amil Baba In Pakistan Authentic Amil In pakistan Best Amil In Pakist...
NO1 Best Amil Baba In Pakistan Authentic Amil In pakistan Best Amil In Pakist...Amil baba
 
Determination of Total Iodine using ICP-MS in Israeli Bottled and Tap Water: ...
Determination of Total Iodine using ICP-MS in Israeli Bottled and Tap Water: ...Determination of Total Iodine using ICP-MS in Israeli Bottled and Tap Water: ...
Determination of Total Iodine using ICP-MS in Israeli Bottled and Tap Water: ...The Hebrew University of Jerusalem
 
Lab Investigation.pptxjjjjjjjjjjjjjjjjjj
Lab Investigation.pptxjjjjjjjjjjjjjjjjjjLab Investigation.pptxjjjjjjjjjjjjjjjjjj
Lab Investigation.pptxjjjjjjjjjjjjjjjjjjjoshuaclack73
 
Data analysis and findings
Data analysis and findingsData analysis and findings
Data analysis and findingsCIFOR-ICRAF
 
slidesgo-maximizing-sustainability-the-case-for-plastic-reuse
slidesgo-maximizing-sustainability-the-case-for-plastic-reuseslidesgo-maximizing-sustainability-the-case-for-plastic-reuse
slidesgo-maximizing-sustainability-the-case-for-plastic-reusedhanalakshmi88488
 
LaPlace Transforms 2 with use of Matlab.pptx
LaPlace Transforms 2 with use of Matlab.pptxLaPlace Transforms 2 with use of Matlab.pptx
LaPlace Transforms 2 with use of Matlab.pptxjoshuaclack73
 
NO1 Pakistan Black magic/kala jadu,manpasand shadi in lahore,karachi rawalpin...
NO1 Pakistan Black magic/kala jadu,manpasand shadi in lahore,karachi rawalpin...NO1 Pakistan Black magic/kala jadu,manpasand shadi in lahore,karachi rawalpin...
NO1 Pakistan Black magic/kala jadu,manpasand shadi in lahore,karachi rawalpin...Amil Baba Dawood bangali
 
Cooperative Mangrove Project: Introduction, Scope, and Perspectives
Cooperative Mangrove Project: Introduction, Scope, and PerspectivesCooperative Mangrove Project: Introduction, Scope, and Perspectives
Cooperative Mangrove Project: Introduction, Scope, and PerspectivesCIFOR-ICRAF
 
2024-05-16 Composting at Home 101 without link to voucher
2024-05-16 Composting at Home 101 without link to voucher2024-05-16 Composting at Home 101 without link to voucher
2024-05-16 Composting at Home 101 without link to voucherEllen Book
 
Travis Hills of Minnesota: Making Livestock Water and Energy the Best in Buil...
Travis Hills of Minnesota: Making Livestock Water and Energy the Best in Buil...Travis Hills of Minnesota: Making Livestock Water and Energy the Best in Buil...
Travis Hills of Minnesota: Making Livestock Water and Energy the Best in Buil...Travis Hills MN
 
Young & Hot ℂall Girls Hyderabad 8250077686 WhatsApp Number Best Rates of Hyd...
Young & Hot ℂall Girls Hyderabad 8250077686 WhatsApp Number Best Rates of Hyd...Young & Hot ℂall Girls Hyderabad 8250077686 WhatsApp Number Best Rates of Hyd...
Young & Hot ℂall Girls Hyderabad 8250077686 WhatsApp Number Best Rates of Hyd...Model Neeha Mumbai
 
The Key to Sustainable Energy Optimization: A Data-Driven Approach for Manufa...
The Key to Sustainable Energy Optimization: A Data-Driven Approach for Manufa...The Key to Sustainable Energy Optimization: A Data-Driven Approach for Manufa...
The Key to Sustainable Energy Optimization: A Data-Driven Approach for Manufa...Aggregage
 
NO1 Pakistan online istikhara for love marriage vashikaran specialist love pr...
NO1 Pakistan online istikhara for love marriage vashikaran specialist love pr...NO1 Pakistan online istikhara for love marriage vashikaran specialist love pr...
NO1 Pakistan online istikhara for love marriage vashikaran specialist love pr...Amil Baba Dawood bangali
 
LaPlace Transform Questions.pptjjjjjjjjjx
LaPlace Transform Questions.pptjjjjjjjjjxLaPlace Transform Questions.pptjjjjjjjjjx
LaPlace Transform Questions.pptjjjjjjjjjxjoshuaclack73
 
Peat land Restoration Project in HLG Londerang
Peat land Restoration Project in HLG LonderangPeat land Restoration Project in HLG Londerang
Peat land Restoration Project in HLG LonderangCIFOR-ICRAF
 
TEST BANK For Geosystems An Introduction to Physical Geography, 5th Canadian ...
TEST BANK For Geosystems An Introduction to Physical Geography, 5th Canadian ...TEST BANK For Geosystems An Introduction to Physical Geography, 5th Canadian ...
TEST BANK For Geosystems An Introduction to Physical Geography, 5th Canadian ...marcuskenyatta275
 
VIP ℂall Girls Chennai 8250077686 WhatsApp: Me All Time Serviℂe Available Day...
VIP ℂall Girls Chennai 8250077686 WhatsApp: Me All Time Serviℂe Available Day...VIP ℂall Girls Chennai 8250077686 WhatsApp: Me All Time Serviℂe Available Day...
VIP ℂall Girls Chennai 8250077686 WhatsApp: Me All Time Serviℂe Available Day...Model Neeha Mumbai
 

Recently uploaded (20)

NO1 Pakistan Black magic In Pakistan Kala Ilam Expert Specialist In UK Kala I...
NO1 Pakistan Black magic In Pakistan Kala Ilam Expert Specialist In UK Kala I...NO1 Pakistan Black magic In Pakistan Kala Ilam Expert Specialist In UK Kala I...
NO1 Pakistan Black magic In Pakistan Kala Ilam Expert Specialist In UK Kala I...
 
Elemental Analysis of Plants using ICP-OES(2023)
Elemental Analysis of Plants using ICP-OES(2023)Elemental Analysis of Plants using ICP-OES(2023)
Elemental Analysis of Plants using ICP-OES(2023)
 
Carbon Stock Assessment in Banten Province and Demak, Central Java, Indonesia
Carbon Stock Assessment in Banten Province and Demak, Central Java, IndonesiaCarbon Stock Assessment in Banten Province and Demak, Central Java, Indonesia
Carbon Stock Assessment in Banten Province and Demak, Central Java, Indonesia
 
NO1 Best Amil Baba In Pakistan Authentic Amil In pakistan Best Amil In Pakist...
NO1 Best Amil Baba In Pakistan Authentic Amil In pakistan Best Amil In Pakist...NO1 Best Amil Baba In Pakistan Authentic Amil In pakistan Best Amil In Pakist...
NO1 Best Amil Baba In Pakistan Authentic Amil In pakistan Best Amil In Pakist...
 
Determination of Total Iodine using ICP-MS in Israeli Bottled and Tap Water: ...
Determination of Total Iodine using ICP-MS in Israeli Bottled and Tap Water: ...Determination of Total Iodine using ICP-MS in Israeli Bottled and Tap Water: ...
Determination of Total Iodine using ICP-MS in Israeli Bottled and Tap Water: ...
 
Lab Investigation.pptxjjjjjjjjjjjjjjjjjj
Lab Investigation.pptxjjjjjjjjjjjjjjjjjjLab Investigation.pptxjjjjjjjjjjjjjjjjjj
Lab Investigation.pptxjjjjjjjjjjjjjjjjjj
 
Data analysis and findings
Data analysis and findingsData analysis and findings
Data analysis and findings
 
slidesgo-maximizing-sustainability-the-case-for-plastic-reuse
slidesgo-maximizing-sustainability-the-case-for-plastic-reuseslidesgo-maximizing-sustainability-the-case-for-plastic-reuse
slidesgo-maximizing-sustainability-the-case-for-plastic-reuse
 
LaPlace Transforms 2 with use of Matlab.pptx
LaPlace Transforms 2 with use of Matlab.pptxLaPlace Transforms 2 with use of Matlab.pptx
LaPlace Transforms 2 with use of Matlab.pptx
 
NO1 Pakistan Black magic/kala jadu,manpasand shadi in lahore,karachi rawalpin...
NO1 Pakistan Black magic/kala jadu,manpasand shadi in lahore,karachi rawalpin...NO1 Pakistan Black magic/kala jadu,manpasand shadi in lahore,karachi rawalpin...
NO1 Pakistan Black magic/kala jadu,manpasand shadi in lahore,karachi rawalpin...
 
Cooperative Mangrove Project: Introduction, Scope, and Perspectives
Cooperative Mangrove Project: Introduction, Scope, and PerspectivesCooperative Mangrove Project: Introduction, Scope, and Perspectives
Cooperative Mangrove Project: Introduction, Scope, and Perspectives
 
2024-05-16 Composting at Home 101 without link to voucher
2024-05-16 Composting at Home 101 without link to voucher2024-05-16 Composting at Home 101 without link to voucher
2024-05-16 Composting at Home 101 without link to voucher
 
Travis Hills of Minnesota: Making Livestock Water and Energy the Best in Buil...
Travis Hills of Minnesota: Making Livestock Water and Energy the Best in Buil...Travis Hills of Minnesota: Making Livestock Water and Energy the Best in Buil...
Travis Hills of Minnesota: Making Livestock Water and Energy the Best in Buil...
 
Young & Hot ℂall Girls Hyderabad 8250077686 WhatsApp Number Best Rates of Hyd...
Young & Hot ℂall Girls Hyderabad 8250077686 WhatsApp Number Best Rates of Hyd...Young & Hot ℂall Girls Hyderabad 8250077686 WhatsApp Number Best Rates of Hyd...
Young & Hot ℂall Girls Hyderabad 8250077686 WhatsApp Number Best Rates of Hyd...
 
The Key to Sustainable Energy Optimization: A Data-Driven Approach for Manufa...
The Key to Sustainable Energy Optimization: A Data-Driven Approach for Manufa...The Key to Sustainable Energy Optimization: A Data-Driven Approach for Manufa...
The Key to Sustainable Energy Optimization: A Data-Driven Approach for Manufa...
 
NO1 Pakistan online istikhara for love marriage vashikaran specialist love pr...
NO1 Pakistan online istikhara for love marriage vashikaran specialist love pr...NO1 Pakistan online istikhara for love marriage vashikaran specialist love pr...
NO1 Pakistan online istikhara for love marriage vashikaran specialist love pr...
 
LaPlace Transform Questions.pptjjjjjjjjjx
LaPlace Transform Questions.pptjjjjjjjjjxLaPlace Transform Questions.pptjjjjjjjjjx
LaPlace Transform Questions.pptjjjjjjjjjx
 
Peat land Restoration Project in HLG Londerang
Peat land Restoration Project in HLG LonderangPeat land Restoration Project in HLG Londerang
Peat land Restoration Project in HLG Londerang
 
TEST BANK For Geosystems An Introduction to Physical Geography, 5th Canadian ...
TEST BANK For Geosystems An Introduction to Physical Geography, 5th Canadian ...TEST BANK For Geosystems An Introduction to Physical Geography, 5th Canadian ...
TEST BANK For Geosystems An Introduction to Physical Geography, 5th Canadian ...
 
VIP ℂall Girls Chennai 8250077686 WhatsApp: Me All Time Serviℂe Available Day...
VIP ℂall Girls Chennai 8250077686 WhatsApp: Me All Time Serviℂe Available Day...VIP ℂall Girls Chennai 8250077686 WhatsApp: Me All Time Serviℂe Available Day...
VIP ℂall Girls Chennai 8250077686 WhatsApp: Me All Time Serviℂe Available Day...
 

Presentation3.docx

  • 1. The most accurate algorithm AI ML Assignment R.MUKILARASU 21BAD038
  • 2. DATASET: • This dataset includes percentage of fat intake from different types of food in countries around the world. • The last couple of columns also includes counts of obesity, undernourished, and COVID- 19 cases as percentages of the total population for comparison purposes.
  • 3. 1. Logistic Regression 2. Support Vector Machine 3. Decision Tree Classifier 4. K-Nearest Neighbours 5. Random Forest Classifier Algorithms applied:
  • 4. This Photo by Unknown author is licensed under CC BY-NC- ND. Independent variables:
  • 6. Implementation: • All the above mentioned algorithms were imported from sklearn module. Code: from sklearn.linear_modelimport LogisticRegression from sklearn.svm import SVC from sklearn.tree import DecisionTreeClassifier from sklearn.neighbors import KNeighborsClassifier from sklearn.ensemble
  • 8. Results: • The following results were seen when the algorithms were implemented
  • 9. Logistic Regression: • The accuracy of the testing data when the model is trained using logistic regression is 89.30% • While its Precision is 89.34% Support Vector Machine: • The accuracy of the testing data when the model is trained using SVM is 89.30% • While its Precision is 89.31% Decision Tree: • The accuracy of the testing data when the model is trained using decision tree is 84.70% • While its Precision is 84.74%
  • 10. K-Nearest Neighbours: • The accuracy of the testing data when the model is trained using KNN is 87.87% • While its Precision is 87.91% Random Forest: • The accuracy of the testing data when the model is trained using Random Forest is 88.88% • While its Precision is 88.90%
  • 11. Conclusion: • From the results we infer that logistic regression and support vector machine are the most accurate algorithms (89.30%).