Cheatsheet – Python & R codes for common Machine Learning Algorithms

Analytics Vidhya Last Updated : 26 Jun, 2020
2 min read

Introduction

In his famous book – Think and Grow Rich, Napolean Hill narrates story of Darby, who after digging for a gold vein for a few years walks away from it when he was three feet away from it.

Now, I don’t know whether the story is true or false. But, I surely know of a few Data Darby around me. These people understand the purpose of machine learning, its execution and use just a set 2 – 3 algorithms on whatever problem they are working on. They don’t update themselves with better algorithms or techniques, because they are too tough or they are time consuming.

Like Darby, they are surely missing from a lot of action after reaching this close! In the end, they give up on machine learning by saying it is very computation heavy or it is very difficult or I can’t improve my models above a threshold – what’s the point? Have you heard them?

Today’s cheat sheet aims to change a few Data Darby’s to machine learning advocates. Here’s a collection of 10 most commonly used machine learning algorithms with their codes in Python and R. Considering the rising usage of machine learning in building models, this cheat sheet is good to act as a code guide to help you bring these machine learning algorithms to use. Good Luck!

For the super lazy Data Darbies, we will make your life even easier. You can download the PDF Version of the cheat sheet here and copy paste the codes from it directly.

machine learning algorithms, data science infographics

Keep this cheat sheet handy when you work on data sets. download the complete cheat sheet here: PDF Version

If you like what you just read & want to continue your analytics learning, subscribe to our emailsfollow us on twitter or join our Facebook Group

Analytics Vidhya Content team

Responses From Readers

Clear

venugopal
venugopal

Good Compilation...

Indu
Indu

Thanks for sharing this in both R and Python. Very helpful. It would be nice to have datasets to accompany this code for those who are just starting out....

Huaixiu Zheng
Huaixiu Zheng

thanks for sharing

We use cookies essential for this site to function well. Please click to help us improve its usefulness with additional cookies. Learn about our use of cookies in our Privacy Policy & Cookies Policy.

Show details