Warning: Parameter 2 to wp_hide_post_Public::query_posts_join() expected to be a reference, value given in /home/rexercis/public_html/wp-includes/class-wp-hook.php on line 286
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 see solutions to check your answers.
Create a variable “x” and attach to it the input attributes of the “iris” dataset. HINT: Use columns 1 to 4.
Create a variable “y” and attach to it the output attribute of the “iris” dataset. HINT: Use column 5.
Create a whisker plot (boxplot) for the variable of the first column of the “iris” dataset. HINT: Use
Now create a whisker plot for each one of the four input variables of the “iris” dataset in one image. HINT: Use
Create a barplot to breakdown your output attribute. HINT: Use plot().
Create a scatterplot matrix of the “iris” dataset using the “x” and “y” variables. HINT: Use
Create a scatterplot matrix with ellipses around each separated group. HINT: Use
Create box and whisker plots of each input variable again, but this time broken down into separated plots for each class. HINT: Use
Create a list named “scales” that includes the “x” and “y” variables and set
relation to “free” for both of them. HINT: Use
Create a density plot matrix for each attribute by class value. HINT: Use
- Become a Top R Programmer Fast with our Individual Coaching Program
- Explore all our (>4000) R exercises
- Find an R course using our R Course Finder directory
- Subscribe to receive weekly updates and bonus sets by email
- Share with your friends and colleagues using the buttons below