Question: Need R Code for the Following: Iris Flower Species Classification In Built Dataset in R Objective: The primary objective of this assignment is to explore
Need R Code for the Following:
Iris Flower Species Classification In Built Dataset in R
Objective: The primary objective of this assignment is to explore classification techniques using the 'Iris' dataset and collectively create a comprehensive report summarizing the classification process and results.
Dataset Description:
The 'Iris' dataset is a widely used dataset in the field of machine learning. It contains measurements of sepal length, sepal width, petal length, and petal width for three species of Iris flowers: Setosa, Versicolor, and Virginica.
Assignment Components:
Data Exploration:
o As a class, explore the 'Iris' dataset to understand its structure and contents.
o Calculate and visualize the class distribution to assess the balance of the target variable Iris species
o Visualize the distribution of the four numeric features: sepal length, sepal width, petal length, and petal width.
Data Splitting:
o Divide the dataset into training such as and test sets to evaluate model performance on unseen data.
o Utilize the 'sample.split' function to perform the data split.
Model Selection:
o As a class, decide on a classification algorithms to explore:
Logistic Regression
kNearest Neighbors KNN
Support Vector Machine SVM
Naive Bayes
Decision Tree
Random Forest
o Each group or individual will choose one of these models to work on
Model Building:
o For the chosen classification method, construct the model to predict the Iris species.
o Define the parameters and hyperparameters used in the model.
o Ensure clear documentation of the modeling process.
Model Evaluation:
o Evaluate the model's performance using the following metrics:
Accuracy: Overall correct classifications.
Precision: The model's ability to classify a specific class correctly.
Recall: The model's ability to identify all relevant instances of a class.
FScore: The balance between precision and recall.
ROCAUC: The model's ability to distinguish between classes. Optional
Write R Code for the same
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
