logo

Crowdly

Browser

Add to Chrome

3.2 You are provided with   access at which contains the classic 150-row  ...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

3.2 You are provided with  access at which contains the classic 150-row

   please click on the link:  iris data:  The dataset have the following features.  

Sepal_length

Sepal length in cm

Sepal_width

Sepal width in cm

Petal_length

Petal length in cm

Petal_width

Petal width in cm

Species

Species (Setosa, Virginica)

(a)    Data Preparation   

   Write a Python code to:

       · Load the into a Pandas DataFrame and print the first eight rows.                                                                                             

       ·  Label encoding or One hot column encoding for the Species column and split the 

Iris_dataset.csv into 80% train and 20% test.

(b)   Write Python code to train the following algorithms using the 80% train portion:  Logistic Regression, Support Vector Machine, Decision Tree and Random Forest                                                                                            

(c)   Write a Python code for predictions using the following algorithms: Logistic Regression, Support Vector Machine, Decision Tree and Random Forest. (25 marks)  

             

More questions like this

Want instant access to all verified answers on learning.richfield.ac.za?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome