You are on page 1of 5

23/10/2016

SupervisedandUnsupervisedlearning

UPERVISEDANDUNSUPERVISED
LEARNING
September19,2014

saimadhu

42Comments

DATAMINING

Indatascienceworldsupervisedandunsupervisedlearningalgorithms
werethefamouswordswecouldhearmorefrequentlywhenwewere
talkingwiththepeoplewhoareworkingindatasciencefield,furthermore
thekeydifferencesbetweenthesetwolearningalgorithmsisthemustlearn
conceptsfordifferentiatingtherealworldproblems.

SupervisedLearningWikiDefinition
Supervised learning is a data mining task of inferring a function
from labeled training data.The training data consist of a set of training
examples. In supervised learning, each example is a pair consisting of an
input object (typically a vector) and the desired output value (also called
the supervisory signal). Asupervised learning algorithm analyzes the
training data and produces an inferred function, which can be used for
mappingnewexamples.Anoptimalscenariowillallowforthealgorithm
tocorrectlydeterminetheclasslabelsforunseeninstances.Thisrequires
the learning algorithm to generalize from the training data to unseen
situationsinareasonableway.
http://dataaspirant.com/2014/09/19/supervisedandunsupervisedlearning/

1/5

23/10/2016

SupervisedandUnsupervisedlearning

UnsupervisedLearningWikiDefinition
In data mining or even in data science world, the problem of
anunsupervised learning task is trying to find hidden structure in
unlabeleddata.Sincetheexamplesgiventothelearnerareunlabeled,there
isnoerrororrewardsignaltoevaluateapotentialsolution.

Supervisedandunsupervisedlearningwithareallife
example

Suppose you have a basket and it is filled with different kinds of


fruits.
Yourtaskistoarrangethemasgroups.
Forunderstandingletmeclearthenamesofthefruitsinourbasket.
Wehavefourtypesoffruits.Theyare

http://dataaspirant.com/2014/09/19/supervisedandunsupervisedlearning/

2/5

23/10/2016

SupervisedandUnsupervisedlearning

APPLE

BANANA

GRAPE

http://dataaspirant.com/2014/09/19/supervisedandunsupervisedlearning/

3/5

23/10/2016

SupervisedandUnsupervisedlearning

CHERRIES

SupervisedLearning:
Youalreadylearnfromyourpreviousworkaboutthephysical
charactersoffruits
Soarrangingthesametypeoffruitsatoneplaceiseasynow
Indataminingterminologythepreviousworkiscalledastraining
thedata
Youalreadylearnthethingsfromyourtraindata,thisisbecause
ofresponsevariable
Responsevariablemeansjustadecisionvariable
Youcanobserveresponsevariablebelow(FRUITNAME)
SHAPE

FRUIT
NAME

No.

SIZE

COLOR

Big

Red

Roundedshapewitha
depressionatthetop

Apple

Small

Red

Heartshapedtonearly
globular

Cherry

Big

Green

Longcurvingcylinder

Banana

Small

Green

Roundtooval,Bunchshape
Cylindrical

Grape

http://dataaspirant.com/2014/09/19/supervisedandunsupervisedlearning/

4/5

23/10/2016

SupervisedandUnsupervisedlearning

Suppose you have taken a new fruit from the basket then you will
seethesize,color,andshapeofthatparticularfruit.
If size is Big , color is Red , the shape is rounded shape with a
depression at the top, you will confirm the fruit name as apple and
youwillputinapplegroup.
Likewiseforotherfruitsalso.
Thejobofgroupingfruitswasdoneandthehappyending.
YoucanobserveinthetablethatacolumnwaslabeledasFRUIT
NAME.Thisiscalledasaresponsevariable.
If you learn the thing before from training data and then applying
thatknowledgetothetestdata(fornewfruit),Thistypeoflearningis
calledasSupervisedLearning.

SupervisedLearningAlgorithms:
Allclassificationandregressionalgorithmscomeundersupervised
learning.
LogisticRegression
Decisiontrees
Supportvectormachine(SVM)
kNearestNeighbors
NaiveBayes
Randomforest
Linearregression
polynomialregression
SVMforregression

UnsupervisedLearning:
Supposeyouhaveabasketanditisfilledwithsomedifferenttypes
offruitsandyourtaskistoarrangethemasgroups.
Thistime,youdontknowanythingaboutthefruits,honestlysaying
this is the first time you have seen them. You have no clue about
those.
So,howwillyouarrangethem?
Whatwillyoudofirst???
http://dataaspirant.com/2014/09/19/supervisedandunsupervisedlearning/

5/5

You might also like