If you are a newbie in the world of machine learning, then this tutorial is exactly what you need in order to introduce yourself to this exciting new part of the data science world.
This post includes a full machine learning project that will guide you step by step to create a “template,” which you can use later on other datasets.
Before proceeding, please follow our short tutorial.
Look at the examples given and try to understand the logic behind them. Then try to solve the exercises below using R and without looking at the answers. Then check the solutions.
to check your answers.
Create a list of 80% of the rows in the original dataset to use for training. HINT: Use
Select 20% of the data for validation.
Use the remaining 80% of data to train and test the models.
Find the dimensions of the “iris” dataset. HINT: Use
Find the type of each attribute in your dataset. HINT: Use
Take a look at the first 5 rows of your dataset. HINT: Use
Find the levels of the variable “Species.” HINT: Use
Find the percentages of rows that belong to the labels you found in Exercise 7. HINT: Use
Display the absolute count of instances for each class as well as its percentage. HINT: Use
Display the summary of the “iris” dataset. HINT: Use