Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying R Machine Learning Essentials
  • Table Of Contents Toc
R Machine Learning Essentials

R Machine Learning Essentials

By : Usuelli
5 (1)
close
close
R Machine Learning Essentials

R Machine Learning Essentials

5 (1)
By: Usuelli

Overview of this book

If your company is like most, the number one reason that projects have failed over the years don’t have to do with technology.  They have to do with people.  People didn’t like the new technology.  People weren’t trained properly on the change.  People hadn’t received adequate communications and didn’t understand the change.  Sound familiar?
Table of Contents (10 chapters)
close
close
9
Index

Validating a machine learning model


Starting from a table describing the countries, flags and their language, the KNN estimates a new country language starting from its flag attributes. In this chapter, we will evaluate the performance of KNN.

Measuring the accuracy of an algorithm

We have already evaluated the algorithm accuracy by cross validating the estimated language. First, we split the data in two parts that are the training set and the test set. Then, we built the KNN algorithm using the training set in order to estimate the test set countries' language. Counting how many times the estimated language was correct, we defined an accuracy index as the percentage of correct guesses. The accuracy depends on which data we put into the test set. Since we randomly defined the training set countries, the accuracy changes every time we repeat the cross validation. Then, the result of this approach is not reliable.

The target of this chapter is to evaluate KNN using a reliable technique in the...

CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
R Machine Learning Essentials
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon