Machine Learning in R: Random Forests/FFTrees

Fast and Frugal Trees. Yep. This is a great package. If you need some quick down and dirty attributes to make a decision this is will help you. We will be going over whether or not a mushroom is poisonous. I will help you set up the problem, by building a Training and Test set. We will build the model and I will show you how to test it and see how the model performed. This tutorial is a good intro to machine/supervised learning.

Start for Free
First 2 tasks free. Then, decide to pay $4.99 for the rest
Machine Learning in R: Random Forests/FFTrees

Duration (mins)


5.0 / 5


Task List

We will cover the following tasks in 22 minutes:


We will go over Rhyme Interface and Introduction. Come on in.

How many are Poisonous

It’s always a good idea to do some EA or Exploratory Analysis before you begin building a model. We will do that today on our response variable.

Training And Test Split

I will show you how to break up a data.frame into training and test sets. Being able to do this quickly will help you in your future modelling.

Training the Model

Time to train the model. This is a mathematical feat by the way. We just have been born in the right century as our computers do most of the hard work. But don’t dismiss it, it’s cool.

Confusion Matrix

We will go over the built in plot and confusion matrix in this section. There is also another cool plot that allows us to see how the different trees correspond to accuracy.


In this chapter we will predict on our Test set and then see how we did by using the table function.

Watch Preview

Preview the instructions that you will follow along in a hands on session in your browser.

Chris Shockley

About the Host (Chris Shockley)

I am a R enthusiast, hiker, and amateur astronomer. My favorite hike is located in Mt. Rainier National Park, my favorite Deep Sky Object is Alberio, and my favorite R package is dplyr (since I use it everyday). I am single too. Maybe because I spend too much time playing? I have a dog named Coog (Lllasa Apso), who would rather be outside than inside, which means I have to take him on a lot of walks. I work as a Data Analyst/Financial Analyst for a Metals Co. located in Seattle, WA. I have been in my current position for 4 years. My hope is that I can help you, even if its with my enthusiasm. Yes you can learn R and the Rhyme Interface will help you. But. You also must take what you learn and practice, practice, practice. So... Let's get after it. See you soon.

Frequently Asked Questions

In Rhyme, all sessions are completely hands on. You don't just passively watch someone else. You use the software directly while following the host's (Chris Shockley) instructions. Using the software is the only way to achieve mastery. With the "Live Guide" option, you can ask for help and get immediate response.
Nothing! Just join through your web browser. Your host (Chris Shockley) has already installed all required software and configured all data.
You can go to, sign up for free, and follow this visual guide How to use Rhyme to create your own sessions. If you have custom needs or company-specific environment, please email us at
Absolutely. We offer Rhyme for workgroups as well larger departments and companies. Universities, academies, and bootcamps can also buy Rhyme for their settings. You can select sessions and trainings that are mission critical for you and, as well, author your own that reflect your own needs and tech environments. Please email us at
Please email us at and we'll respond to you within one business day.

First 2 tasks free. Then, decide to pay $4.99 for the rest