logo

Crowdly

Browser

Додати до Chrome

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

✅ Перевірена відповідь на це питання доступна нижче. Наші рішення, перевірені спільнотою, допомагають краще зрозуміти матеріал.

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)  

             

Більше питань подібних до цього

Хочете миттєвий доступ до всіх перевірених відповідей на learning.richfield.ac.za?

Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!

Browser

Додати до Chrome