94
CS 6140: Machine Learning Spring 2017 Instructor: Lu Wang College of Computer and Informa@on Science Northeastern University Webpage: www.ccs.neu.edu/home/luwang Email: [email protected]

CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

  • Upload
    buicong

  • View
    263

  • Download
    0

Embed Size (px)

Citation preview

Page 1: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

CS6140:MachineLearningSpring2017

Instructor:LuWangCollegeofComputerandInforma@onScience

NortheasternUniversityWebpage:www.ccs.neu.edu/home/luwang

Email:[email protected]

Page 2: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

TimeandLoca@on

•  Time:Thursdaysfrom6:00pm–9:00pm

•  Loca)on:ForsythBuilding129

Page 3: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

CourseWebpage

•  hPp://www.ccs.neu.edu/home/luwang/courses/cs6140_sp2017.html

Page 4: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

Prerequisites

•  Programming– Beingabletowritecodeinsomeprogramminglanguages(e.g.Python,Java,C/C++,Matlab)proficiently

•  Courses– Algorithms– Probabilityandsta@s@cs– Linearalgebra

Page 5: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

Prerequisites

•  Courses–  Algorithms–  Probabilityandsta@s@cs–  Linearalgebra

•  Aquiz:–  22simpleques@ons,20ofthemasTrueorFalseques@ons(relevanttoprobability,sta@s@cs,andlinearalgebra)

–  Thepurposeofthisquizistoindicatetheexpectedbackgroundofstudents.

–  80%oftheques@onsshouldbeeasytoanswer.–  Notcountedinyourfinalscore!

Page 6: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

TextbookandReferences

•  MainTextbook–  KevinMurphy,"MachineLearning-aProbabilis@cPerspec@ve",MITPress,2012.

–  ChristopherM.Bishop,"PaPernRecogni@onandMachineLearning",Springer,2006.

•  Othertextbooks–  TomMitchell,"MachineLearning",McGrawHill,1997.

•  Machinelearninglectures

Page 7: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

ContentoftheCourse•  Regression:linearregression,logis@cregression•  DimensionalityReduc)on:PrincipalComponentAnalysis(PCA),Independent

ComponentAnalysis(ICA),LinearDiscriminantAnalysis•  Probabilis)cModels:NaiveBayes,maximumlikelihoodes@ma@on•  Sta)s)calLearningTheory:VCdimension•  Kernels:SupportVectorMachines(SVMs),kerneltricks,duality•  Sequen)alModelsandStructuralModels:HiddenMarkovModel(HMM),

Condi@onalRandomFields(CRFs)•  Clustering:spectralclustering,hierarchicalclustering•  LatentVariableModels:K-means,mixturemodels,expecta@on-maximiza@on

(EM)algorithms,LatentDirichletAlloca@on(LDA),representa@onlearning•  DeepLearning:feedforwardneuralnetwork,restrictedBoltzmannmachine,

autoencoders,recurrentneuralnetwork,convolu@onalneuralnetwork•  ReinforcementLearning:Markovdecisionprocesses,Q-learning•  andothers,includingadvancedtopicsformachinelearninginnaturallanguage

processingandtextanalysis

Page 8: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

TheGoal

•  Scien@ficunderstandingofmachinelearningmodels

•  Howtoapplyanddesignlearningmethodsfornovelproblems

Page 9: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

TheGoal

•  Notonlywhat,butalsowhy!

Page 10: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

Grading•  Assignment

–  3assignments,10%foreach

•  Quiz–  10in-classtests,1%foreach

•  Exam–  1exam,30%

•  Project–  1project,27%

•  Par@cipa@on–  3%–  Classes–  Piazza

Page 11: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

Exam

•  Openbook•  April20,2017

Page 12: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

CourseProject

•  Amachinelearningrelevantresearchproject

•  2-3studentsasateam

Page 13: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

Topics

•  Machinelearningrelevant– Naturallanguageprocessing– Computervision– Robo@cs– Bioinforma@cs– Healthinforma@cs– …

Page 14: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

CourseProjectGrading

•  Wewanttoseenovelandinteres@ngprojects!– Theproblemneedstobewell-defined,novel,useful,andprac@cal

– machinelearningtechniques

– Reasonableresultsandobserva@ons

Page 15: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

ProjectfromLastYear

Page 16: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

ProjectfromLastYear

•  Predic@ngFollow-backBehaviorinInstagramUsers

Page 17: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

ProjectfromLastYear

•  Predic@ngGraspPointsUsingConvolu@onalNeuralNetworks

Page 18: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

ProjectfromLastYear

•  Ar@ficialNeuralNetworksforDrugResponsePredic@oninTailoredTherapy

Page 19: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

ProjectfromLastYear

•  ThreatDetec@onfromTwiPer

Page 20: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

ProjectfromLastYear

•  PlayerRankinginPopularGames

Page 21: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

CourseProjectGrading

•  Threereports– Proposal(2%)– Progress,withcode(10%)– Final,withcode(10%)

•  Onepresenta@on–  Inclass(5%)

Page 22: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

SubmissionandLatePolicy•  Eachassignmentorreport,bothelectroniccopyandhardcopy,isdueatthebeginningofclassonthecorrespondingduedate.

•  Programminglanguage–  Python,Java,C/C++,Matlab

•  Electronicversion–  Onblackboard

•  Hardcopy–  Inclass

Page 23: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

SubmissionandLatePolicy

•  Assignmentorreportturnedinlatewillbecharged10points(outof100points)offforeachlateday(i.e.24hours).

•  Eachstudenthasabudgetof5daysthroughoutthesemesterbeforealatepenaltyisapplied.

Page 24: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

Howtofindus?•  Coursewebpage:–  hPp://www.ccs.neu.edu/home/luwang/courses/cs6140_sp2017.html

•  Officehours–  LuWang:Thursdaysfrom4:30pmto5:30pm,orbyappointment,448WVH

–  RuiDong(TA),Tuesdaysfrom4:00pmto5:00pm,orbyappointment,466BWVH

•  Piazza–  hPp://piazza.com/northeastern/spring2017/cs614002– Allcourserelevantques@onsgohere

Page 25: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

WhatisMachineLearning?

•  “Asetofmethodsthatcanautoma@callydetectpaPernsindata,andthenusetheuncoveredpaPernstopredictfuturedata,ortoperformotherkindsofdecisionsmakingundercertainty.”

Page 26: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

RealWorldApplica@ons

Page 27: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

RealWorldApplica@ons

Page 28: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

RealWorldApplica@ons

Page 29: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

RealWorldApplica@ons

Page 30: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

RealWorldApplica@ons

Page 31: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

RealWorldApplica@ons

Page 32: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

RealWorldApplica@ons

Page 33: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

RealWorldApplica@ons

Page 34: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

RealWorldApplica@ons

Page 35: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

RealWorldApplica@ons

Page 36: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

Rela@onswithOtherAreas

•  NaturalLanguageProcessing

•  ComputerVision

•  Robo@cs

•  Alotofotherareas…

Page 37: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

Today’sOutline

•  Basicconceptsinmachinelearning

•  K-nearestneighbors

•  Linearregression

•  Ridgeregression

Page 38: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

Supervisedvs.UnsupervisedLearning

Page 39: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

SupervisedLearning

Page 40: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

Supervisedvs.UnsupervisedLearning

•  Supervisedlearning

Trainingset Trainingsample Gold-standardlabel-  Classifica)on,ifcategorical-  Regression,ifnumerical

Page 41: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

SupervisedLearning

Page 42: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

SupervisedLearning

Page 43: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

SupervisedLearning

•  Goal:– Generalizabletonewinputsamples– Overfivngvs.underfivng– Onesolu@on:weuseprobabilis@cmodels

•  Typicalsetup:– Step1:Features– Step2:Trainingset,testset,developmentset– Step3:Evalua@on

Page 44: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

SupervisedLearning

Page 45: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

SupervisedLearning

Page 46: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

SupervisedLearning

Page 47: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

SupervisedLearning

•  Regression– Predic@ngstockprice– Predic@ngtemperature– Predic@ngrevenue…

Page 48: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

Supervisedvs.UnsupervisedLearning

•  UnsupervisedLearning

•  Moreabout“knowledgediscovery”

Page 49: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

UnsupervisedLearning

•  Dimensionreduc@on– Principalcomponentanalysis

Page 50: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

UnsupervisedLearning

•  Clustering(e.g.graphmining)

RolX:RoleExtrac.onandMininginLargeNetworks,byHendersonetal,2011

Page 51: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

UnsupervisedLearning

•  Topicmodeling

Page 52: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

Parametricvs.Non-parametricmodel

•  Fixednumberofparameters?–  Ifyes,parametricmodel

•  Numberofparametersgrowwiththeamountoftrainingdata?–  Ifyes,non-parametricmodel

•  Computa@onaltractability

Page 53: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

Today’sOutline

•  Basicconceptsinmachinelearning

•  K-nearestneighbors– Supervisedlearning– Anon-parametricclassifier

•  Linearregression

•  Ridgeregression

Page 54: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

Anon-parametricclassifier:K-nearestneighbors(KNN)

Page 55: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

Anon-parametricclassifier:K-nearestneighbors(KNN)

•  Basicidea:memorizeallthetrainingsamples– Themoreyouhaveintrainingdata,themorethemodelhastoremember

Page 56: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

Anon-parametricclassifier:K-nearestneighbors(KNN)

•  Basicidea:memorizeallthetrainingsamples– Themoreyouhaveintrainingdata,themorethemodelhastoremember

•  Nearestneighbor(or1-nearestneighbor):– Tes@ngphase:findclosetsample,andreturncorrespondinglabel

Page 57: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:
Page 58: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:
Page 59: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

Anon-parametricclassifier:K-nearestneighbors(KNN)

•  Basicidea:memorizeallthetrainingsamples– Themoreyouhaveintrainingdata,themorethemodelhastoremember

•  K-Nearestneighbor:– Tes@ngphase:findtheKnearestneighbors,andreturnthemajorityvoteoftheirlabels

Page 60: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:
Page 61: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

AboutK

•  K=1:justpiecewiseconstantlabeling•  K=N:globalmajorityvote(class)

Page 62: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

ProblemsofkNN

•  Canbeslowwhentrainingdataisbig– Searchingfortheneighborstakes@me

•  Needslotsofmemorytostoretrainingdata

•  Needstotunekanddistancefunc@on

•  Notaprobabilitydistribu@on

Page 63: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

ProblemsofkNN

•  Distancefunc@on– Euclideandistance

Page 64: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

ProblemsofkNN

•  Distancefunc@on– Mahalanobisdistance:weightsoncomponents

Page 65: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

Probabilis@ckNN

•  Wepreferaprobabilis@coutputbecausesome@meswemaygetan“uncertain”result– 1samplesas“yes”,199samplesas“no”à?– 99samplesas“yes”,101samplesas“no”à?

•  Probabilis@ckNN:

Page 66: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

Probabilis@ckNN

3-classsynthe@ctrainingdata

Page 67: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

Smoothing

•  Class1:3,class2:0,class3:1•  Originalprobability:– P(y=1)=3/4,p(y=2)=0/4,p(y=3)=1/4

Page 68: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

Smoothing

•  Class1:3,class2:0,class3:1•  Originalprobability:– P(y=1)=3/4,p(y=2)=0/4,p(y=3)=1/4

•  Add-1smoothing:– Class1:3+1,class2:0+1,class3:1+1– P(y=1)=4/7,p(y=2)=1/7,p(y=3)=2/7

Page 69: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

Soxmax

•  Class1:3,class2:0,class3:1•  Originalprobability:– P(y=1)=3/4,p(y=2)=0/4,p(y=3)=1/4

•  Redistributeprobabilitymassintodifferentclasses– Defineasoxmaxas

Page 70: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

Today’sOutline

•  Basicconceptsinmachinelearning

•  K-nearestneighbors

•  Linearregression– Supervisedlearning– Aparametricclassifier

•  Ridgeregression

Page 71: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

Aparametricclassifier:linearregression

•  Assump@on:theresponseisalinearfunc@onoftheinputs

InnerproductbetweeninputsampleXandweightvectorW

Residualerror:differencebetweenpredic@onandtruelabel

Page 72: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

Aparametricclassifier:linearregression

•  Assumeresidualerrorhasanormaldistribu@on

InnerproductbetweeninputsampleXandweightvectorW

Residualerror:differencebetweenpredic@onandtruelabel

Page 73: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

Aparametricclassifier:linearregression

•  Wecanfurtherassume

•  Basicfunc@onexpansion

Page 74: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

Aparametricclassifier:linearregression

Ver@cal:temperatureHorizontal:loca@onwithinaroom

Page 75: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

Aparametricclassifier:linearregression

Page 76: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

LearningwithMaximumLikelihoodEs@ma@on(MLE)

•  MaximumLikelihoodEs@ma@on(MLE)

Page 77: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

LearningwithMaximumLikelihoodEs@ma@on(MLE)

•  Log-likelihood

•  Maximizelog-likelihoodisequivalenttominimizenega@velog-likelihood(NLL)

Page 78: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

LearningwithMaximumLikelihoodEs@ma@on(MLE)

•  Withournormaldistribu@onassump@on

Residualsumofsquares(RSS)àWewanttominimizeit!

Page 79: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

Deriva@onofMLEforLinearRegression

•  Rewriteourobjec@vefunc@onas

Page 80: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

Deriva@onofMLEforLinearRegression

•  Rewriteourobjec@vefunc@onas

•  Getthederiva@ve(orgradient)

Page 81: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

Deriva@onofMLEforLinearRegression

•  Rewriteourobjec@vefunc@onas

•  Getthederiva@ve(orgradient)

•  Setourderiva@veto0

Ordinaryleastsquaressolu)on

Page 82: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:
Page 83: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

Overfivng

Featureweightsw:

Page 84: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

APriorontheWeight

•  Zero-meanGaussianprior

Page 85: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

APriorontheWeight

•  Zero-meanGaussianprior

•  Newobjec@vefunc@on

Page 86: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

APriorontheWeight

•  Zero-meanGaussianprior

•  Newobjec@vefunc@on

Page 87: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

Today’sOutline

•  Basicconceptsinmachinelearning

•  K-nearestneighbors

•  Linearregression

•  Ridgeregression

Page 88: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

RidgeRegression

•  Wewanttominimize

Page 89: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

RidgeRegression

•  Wewanttominimize

•  Newes@ma@onfortheweight

Page 90: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

RidgeRegression

•  Wewanttominimize

•  Newes@ma@onfortheweight

L2regulariza)on

Page 91: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

RidgeRegression

•  Wewanttominimize

•  Newes@ma@onfortheweight

L2regulariza)on

LeavetheproofinAssignment1!

Page 92: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

Whatwelearned

•  Basicconceptsinmachinelearning

•  K-nearestneighbors

•  Linearregression

•  Ridgeregression

Page 93: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

Homework

•  ReadingMurphych1,ch2,andch7(onlythesec@onscoveredinthelecture)

•  SignupatPiazza•  hPp://piazza.com/northeastern/spring2017/cs614002

•  Startthinkingaboutcourseprojectandfindateam!– ProjectproposaldueJan26

Page 94: CS 6140: Machine Learning - College of Computer and ... · CS 6140: Machine Learning Spring 2017 ... – The purpose of this quiz is to indicate the expected ... • Deep Learning:

Homework

•  ReadingMurphych1,ch2,andch7•  SignupatPiazza•  hPp://piazza.com/northeastern/spring2017/cs614002

•  Startthinkingaboutcourseprojectandfindateam!– ProjectproposaldueJan26

•  NextTime:Logis@cRegression,DecisionTree,Genera@veModels(NaiveBayes)– Reading:MurphyCh3,8.1-8.3,8.6,16.2