7 Machine Learning Made Easier

Machine learning is the buzzword of the decade as students and companies vie to get this skill for business applications. However many parts of machine learning are quite easy. In supervised learning, we know what we are trying to predict (a group to class in classification and a number/equation to predict in regression), whereas in unsupervised learning we do not know what is to be predicted (no given tag is there), so we do association analysis and cluster analysis. Text mining on the other hand looks at frequency of words for pattern analysis. Social network analysis looks at relationships between nodes, edges, and actors to see how networks behave. Deep learning is an even more recent case of such advances in techniques.

One of the most widely used techniques is decision trees.

Decision trees in Python (weather dataset)


#rattle package in R has weather dataset
#(see help at

 In [259]:

import os as os

 In [260]:

import pandas as pd

 In [261]:




 In [262]:



 'VirtualBox VMs',
 'Dropbox', ...

Get Python for R Users now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.