astha77-bot / Machine-Learning-Projects-for-Beginners

My effort to contribute in open source with some Classic Machine Learning Projects to Boost up skills and knowledge if you're a Beginner.
11 stars 2 forks source link

Basic-Data-Science-Projects-for-Beginners

Iris Classification

Problem Statement:Create the model that can classify the different species of the Iris flower.

1.Create the datasets

Inorder to classify the different species of the Iris,We should prepare the datasets with features and labels.But sklearn comes with the inbuilt datasets for the iris classification problem.Splitting the dataset:Since our process involve training and testing ,We should split our dataset.It can be executed by the following code

2.Build the model

We can use any classification algorithm to solve the problem.I will go with decision tree algorithm.

3.Train the Model

We can train the model with fit function.

4.Make predictions

Predictions can be done with predict function. Accuracy(97%)