28
Lecture Outlines Professor Wei-Min Shen

Lecture Outlines - Information Sciences Instituteshen/CS360/Lecture-Outline.pdf · * The world you created in simulation (e.g. wumpus) * syntax(on paper, α,β) * semantics(in world/model

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Lecture Outlines - Information Sciences Instituteshen/CS360/Lecture-Outline.pdf · * The world you created in simulation (e.g. wumpus) * syntax(on paper, α,β) * semantics(in world/model

LectureOutlinesProfessorWei-MinShen

Page 2: Lecture Outlines - Information Sciences Instituteshen/CS360/Lecture-Outline.pdf · * The world you created in simulation (e.g. wumpus) * syntax(on paper, α,β) * semantics(in world/model

*  Welcome*  Classstructures/rules(syllabus,HM,projects,tests)*  WhatisAI?*  WhataretherelatedfieldsofAI?*  HowwasAIstarted?(history)*  WhatisthestateoftheartofAI?

Wk1Ch1:Introduction

Page 3: Lecture Outlines - Information Sciences Instituteshen/CS360/Lecture-Outline.pdf · * The world you created in simulation (e.g. wumpus) * syntax(on paper, α,β) * semantics(in world/model

*  ShowSuperBotmoviesandsimulations*  Project1:Descriptionandassignment*  Agent/Robot*  Whatisinsidearobot/agent?(see,act,think,learn)*  Whatdoesitseek?(goal,utility,solveproblems,“fame/

fortune”)

*  Environment/world*  Whatcanbeseen?*  Whatcanbechanged?*  Whoelsearethere?(Obstacleandotheragents)

*  HW:Defineanenvironment/worldandarobotbyyourself

Wk1Ch2:IntelligentAgents

Page 4: Lecture Outlines - Information Sciences Instituteshen/CS360/Lecture-Outline.pdf · * The world you created in simulation (e.g. wumpus) * syntax(on paper, α,β) * semantics(in world/model

*  Howtorepresentaproblem?*  states,actions,initials,goals,(e.g.,tic-tac-toe)

*  Howtosolveaproblem?*  Search:fromheretothere,initialstogoals*  Depth-first,breadth-first

*  Howgoodisyoursolution?(fig6.1,ALFE)*  Howgoodisyourstate?Howcostlyisanaction?*  Best-first,DynamicProgramming,A*,etc.*  Canyouguaranteeanything?(optimalvsheuristic)

*  Howmuchdoyouwanttopayforyoursolution?*  Howdeep/widecanyougo?*  Predeterminedvsdynamic(e.g.,iterativedeepening)

*  Onewayormanyways(bi-directional)?*  Howbigisaproblem?Canyouputthewholeworldinyourhead?*  TowerofHanoi,chess,robot-and-world,

*  HM:statespaceforTOH,assignvaluesforstateandactions.

Wk2Ch3:SolvingProblems

Page 5: Lecture Outlines - Information Sciences Instituteshen/CS360/Lecture-Outline.pdf · * The world you created in simulation (e.g. wumpus) * syntax(on paper, α,β) * semantics(in world/model

*  Howtofindtheextremesoff(x)?*  Whyisitsoimportant?*  Whyisitsohard?(noonehasofferedageneralsolution!)*  Whichwaytogo?*  Howmuchcanyousee?(localvsglobal)*  Howmanypointscanyouremember?*  Howbigisyourstep?(skipTHEpoint?)*  Howwellcanyouguess?*  Howmuchdoyouknowaboutthefunction?*  Howdoyouknowyouaredone?*  Willthefunctionchangebyitself?

*  HW:yourownanswersfortheabovequestions

Wk2Ch4:Optimization

Page 6: Lecture Outlines - Information Sciences Instituteshen/CS360/Lecture-Outline.pdf · * The world you created in simulation (e.g. wumpus) * syntax(on paper, α,β) * semantics(in world/model

*  Keyidea:optimizationforyouselfandyouropponent*  Whenyoucanseethewholegame*  Example,Tic-tac-toe(fig5.1)*  Optimal:CanIalwayswin,orneverloss?*  Key:lookahead,chosethebest*  Minmaxalgorithm,Alpha-betapruning*  Fig5.2,keyidea:whatcanIgainiftheopponentgivesmetheleast

*  Whencannotseethewholegame(chess)*  howfartolook?howgoodisastate?Canyoupredictyouropponent?

*  Whenthereisarandomplayer(dice)*  Israndomplayinganygood?*  WhatarethebestAIgameplayers?*  HW:Writeaminmaxalgorithmfortic-tac-toe

Wk3Ch5:GamePlaying

Page 7: Lecture Outlines - Information Sciences Instituteshen/CS360/Lecture-Outline.pdf · * The world you created in simulation (e.g. wumpus) * syntax(on paper, α,β) * semantics(in world/model

*  Example:MapColoring,canyouthinkofanother?*  Formalism:Variables,ValueSets,Constraints,*  Independentsubset?Existingcycles?

*  Thebasicalgorithms*  GlobalBacktracking*  Ordervariables:themostconstrainedvariablesfirst*  Satisfyoneatatime,ifstuck,backtracking

*  Localsearch:heuristic,findthemin-conflictssolutionlocally*  Centralizedvs.distributed(DCOP)

*  HW:Magicsquare,defineitandsolveit

Wk3Ch6:ConstraintSatisfaction

Page 8: Lecture Outlines - Information Sciences Instituteshen/CS360/Lecture-Outline.pdf · * The world you created in simulation (e.g. wumpus) * syntax(on paper, α,β) * semantics(in world/model

*  Therealworldanditsrepresentationbylogics*  Theworldyoucreatedinsimulation(e.g.wumpus)*  syntax(onpaper,α,β)*  semantics(inworld/modelM),”satisfy”*  Propositionallogic:truthtablefor*  Theoremproving,inferencerule,resolution,hornclause,

forward/backwardchaining,*  Propositionalagent:currentstate,goalstate,localsearch,

globalsearch*  HW:PLrulesforWumpusorTic-Tac-Toe

Wk4Ch7-9:Logics

α |= β ⇔ M (α )⊆M (β )¬,∧,∨,⇒,⇔

Page 9: Lecture Outlines - Information Sciences Instituteshen/CS360/Lecture-Outline.pdf · * The world you created in simulation (e.g. wumpus) * syntax(on paper, α,β) * semantics(in world/model

*  Syntaxandsemantics*  Addvariables(predicates)andquantifiers*  Knowledgeengineering*  Captureandrepresenthumanknowledge,e.g.,using

FOL

*  HW:FOLrulesforWumpusorTic-Tac-Toe

Wk4Ch8:First-orderlogic

Page 10: Lecture Outlines - Information Sciences Instituteshen/CS360/Lecture-Outline.pdf · * The world you created in simulation (e.g. wumpus) * syntax(on paper, α,β) * semantics(in world/model

*  ModusPonenswithvariables*  Unification:findingthevaluesforvariables*  1.Forwardchaining*  E.g.productionsystems,ACT,SOAR*  2.Backwardchaining*  E.g.,Prolog*  3.Resolution*  ConverttoCNF,eliminatingP,-P.

Wk4Ch9:InferenceinFOL

Page 11: Lecture Outlines - Information Sciences Instituteshen/CS360/Lecture-Outline.pdf · * The world you created in simulation (e.g. wumpus) * syntax(on paper, α,β) * semantics(in world/model

*  Project2:Robotsearchesatargetroomonamap*  RepresentingActions*  Preandpostcondition(singleorsetofstates)

*  Searchingforoptimalsolutions*  Graph-Based,Forward,Backward.*  DynamicProgramming,A*,Q-search(readALFE6.1)

*  Searchingforsatisfacingsolutions*  means-end-analysis*  Heuristicplanning

*  Otherplanningmethods*  Logicdeduction:Booleansatisfactory,situation-calculus*  Constraint-satisfaction*  Partiallyorderedplans

Wk5Ch10:ActionsandPlanning

Page 12: Lecture Outlines - Information Sciences Instituteshen/CS360/Lecture-Outline.pdf · * The world you created in simulation (e.g. wumpus) * syntax(on paper, α,β) * semantics(in world/model

*  Whyhard?Time,duration,resources,deadlines,orders,unknowneffects,etc.*  Deterministicapproaches*  Thelongestfirst(criticalpath,takeatleastthislong)*  HierarchicalPlanning*  High-levelactionsfirst*  Findprimitivesolutions*  Findabstractsolutions

*  Non-deterministicapproaches*  Sensor-based,contingency,incremental,*  Multi-agentplanning(collaboration&coordination)

*  HW:modifyWumpusasaschedulingproblem

Wk5Ch11:Scheduling

Page 13: Lecture Outlines - Information Sciences Instituteshen/CS360/Lecture-Outline.pdf · * The world you created in simulation (e.g. wumpus) * syntax(on paper, α,β) * semantics(in world/model

*  WhatisKR?Representation+Processes*  Whyimportant?Simon’sexamplecards/ttt*  Format:Attribute-basedandRelational-based*  Ontology*  Objects:(attributes,part-of),bothphysicalandmental*  Events(process,time),*  Relations,functions,operators:mostlymental

*  Reasoning*  Semanticnet,logic,default(monotonicornot),truthmaintenance

*  Example*  WorkoutanontologyfortheWumpusbasedontheexampleofInternet

shoppinginthebook

Wk6Ch12:KnowledgeRepresentation

Page 14: Lecture Outlines - Information Sciences Instituteshen/CS360/Lecture-Outline.pdf · * The world you created in simulation (e.g. wumpus) * syntax(on paper, α,β) * semantics(in world/model

*  Notallknowledgearecertain*  Earlierstoriesofexpertsystems(medical,legal)

*  Twobigchallenges*  Commonsense(vague):“Waterflowsdown”*  Uncertainty*  Probability=?=LogicofScience

Wk6:LogicsandProbabilities

Page 15: Lecture Outlines - Information Sciences Instituteshen/CS360/Lecture-Outline.pdf · * The world you created in simulation (e.g. wumpus) * syntax(on paper, α,β) * semantics(in world/model

*  Whereisprobability?(intheworldorinyourmind)*  Notation:variableX,valuexi,P(X=xi),P(X)denotesforallvaluesofX,

P(X,Y),P(X,y)*  Remembertwoaxioms*  Sumaxiom:P(A|B)+P(~A|B)=1*  Productaxiom:P(AB|C)=P(A|C)P(B|AC)=P(B|C)P(A|BC)

*  Theycandomuchmorethanlogics*  Deductivereasoning:*  IfA->BandA,thenB*  IfA->Band~B,then~A*  IfA->BandB,then“Abecomemoreplausible”

*  Inductivereasoning:*  IfA->Band~A,then“Bbecomelessplausible”*  IfA->”Bbecomesmoreplausible”andB,then“Abecomemoreplausible”

*  HM:workoutthemathwhytheaboveistrue(ALFE,p102)

Wk6-7Ch13:Probability

Page 16: Lecture Outlines - Information Sciences Instituteshen/CS360/Lecture-Outline.pdf · * The world you created in simulation (e.g. wumpus) * syntax(on paper, α,β) * semantics(in world/model

*  Propositionallogic+probability*  Fulljointdistribution(fig13.3:truthtable+probability)*  Inferences*  Usingfulljointdistributions(1stpartofproductrule)*  Marginalizationorsummingout*  UsingBayesianrule(2ndpartofproductrule)*  ExampleforWumpusworld

*  Bayesiannetwork:topology+CPTs(fig14.2)*  Comparetotruth-tableformat(25rows)*  Inferences,exactvsapproximate

*  RelationalandFOL+probability*  Otheruncertainreasoningtheories*  Dempster-Shafer,Fuzzysetsandlogic,

Wk7Ch14:ProbabilityReasoning

Page 17: Lecture Outlines - Information Sciences Instituteshen/CS360/Lecture-Outline.pdf · * The world you created in simulation (e.g. wumpus) * syntax(on paper, α,β) * semantics(in world/model

*  Readings:AIMA15*  Examples:Speechrecognition,see=?=truth

*  Given:amapofcoloredrooms,andanexperience(act/see):e1:t

*  Compute:whichroomtherobotwas/is/will-bein:X*  States,observations,transitions,actions,sensors,

*  Definitions(ALFE5.10)*  Wecaninfer:*  P(Xt|e1:t)whichroomIaminnow(stateestimation)*  P(Xt+k|e1:t)whichroomIwillbeinattimet+k(prediction)*  P(Xk|e1:t)whichroomIwasinattimek(smoothing)*  P(x1:t|e1:t)whatroomsIhavebeeninthepast(explain)*  P(Mt|e1:t)canIimprovemymap(learning)

*  HW:Defineanautomataforyourroomsinthesimulation

Wk8:HMM,DBN,Automata

Page 18: Lecture Outlines - Information Sciences Instituteshen/CS360/Lecture-Outline.pdf · * The world you created in simulation (e.g. wumpus) * syntax(on paper, α,β) * semantics(in world/model

*  Readings:AIMA16,17*  StateshaveutilityU(s)*  MaximumExpectedUtility*  EU(a|e)=Sum[P(s|a,e)U(s)]

*  MarkovDecisionProcess(MDP):state,action,transitionP(s’|s,a),reward:sèr,or(s,a)èr*  Solutionsarerepresentedaspolicy:sèa.*  Totaldiscountedexpectedreward(Bellman):*  Equation17.5orinALFEpage167.

*  PartiallyObservedMDP(POMDP)*  Statescannotbecompletelyobserved*  NeedasensormodelP(z|s)

*  Objective:findingtheoptimalpolicybasedonutilities*  ReviewforMidtermexam(ifyouhaveanyquestions)*  HW:DefineyourownworldandrobotusingPOMDP

Wk9:Utility,Actions,MDP,POMDP

Page 19: Lecture Outlines - Information Sciences Instituteshen/CS360/Lecture-Outline.pdf · * The world you created in simulation (e.g. wumpus) * syntax(on paper, α,β) * semantics(in world/model

*  Goodluckonyourtest!

Wk10:Midterm

Page 20: Lecture Outlines - Information Sciences Instituteshen/CS360/Lecture-Outline.pdf · * The world you created in simulation (e.g. wumpus) * syntax(on paper, α,β) * semantics(in world/model

*  TypesReadings:AIMACh18,ALFE4*  Project3:arobotlearnsamodelofacoloredroomtofindatargetquickly*  TypesofMachineLearning*  Unsupervisedvs.Supervised(examples,reinforcement,andenvironment)*  Incrementalvs.patch;onlinevs.offline

*  KeyIdeas:Hypothesesandexamples*  Hypothesesspace(ALFEfig4.3):Attribute-basedvsrelation-based*  Learning=Searchinhypothesisspaceforonetocoverexamples(bothseenandunseen)*  Falsenegative(covertoolittle)àGeneralization*  Falsepositive(covertoomuch)àSpecialization*  Correctnesscriteria:Overfitting,Identical,PAC,andothers

*  AlgorithmsforAttribute-BasedLearning*  VersionSpace*  DecisionTrees(HW:)*  NeuralNetwork(fig18.19andALEF4.11)(HW:)*  LinearRegression:Learnh=ax+bfromexamples(x,y)byminimizingΣ(y-h)2[eq18.2-3]*  Supportvectormachines(HW:18.16,18.25)*  EnsembleLearningandBoosting*  Learnanewhypothesisbasedontheresultsofthelasthypothesis(weighttheexamples)

Wk11:SupervisedLearning1:Attribute-Based

Page 21: Lecture Outlines - Information Sciences Instituteshen/CS360/Lecture-Outline.pdf · * The world you created in simulation (e.g. wumpus) * syntax(on paper, α,β) * semantics(in world/model

*  Supportvectormachines(HW:18.16,18.25)*  Thekeyideaofmax-marginseparator(fig18.30)*  Supportvectors:thepointsclosesttotheseparator,all

otherdatapointshavezeroweights*  Whenthedataarenotlinearlyseparable(fig18.31),

rewriteseparatorinahigherdimension*  Itisnon-parametric,but(eq.18.13)canusefewer

examplesthanthetrainingdata

Wk11:SupportVectorMachines

Page 22: Lecture Outlines - Information Sciences Instituteshen/CS360/Lecture-Outline.pdf · * The world you created in simulation (e.g. wumpus) * syntax(on paper, α,β) * semantics(in world/model

*  Readings:AIMA19,ALFE4.7-4.10*  Ageneralchallenge:agoodhypothesisspace

*  Tooopen:tooslowtoconverge*  Toorestrict:ruleoutthegoodhypotheses*  Goodprioriknowledgewouldhelp

*  Relation-basedlearning*  Deductive(e.g.EBL):useprioriknowledgetoexplainexamplesànewhypotheses(fig19.7)*  Inductivealgorithms(ALFE4.7-4.10)*  FOIL*  CDL(ComplementaryDiscriminationLearning)

*  HW:learntherelationalrulesofXfromexamples

Wk12:SupervisedLearning2Relation-Based

Page 23: Lecture Outlines - Information Sciences Instituteshen/CS360/Lecture-Outline.pdf · * The world you created in simulation (e.g. wumpus) * syntax(on paper, α,β) * semantics(in world/model

*  Readings:AIMA20,ALFE5.10*  Clustering*  NaïveBayesModels*  ByBayesianApproach(Cheeseman’sCLASSIFY)*  K-meanalgorithm(seeAndrewNg’slecture)

*  TheEMalgorithm*  ClusteringwithmixturesofGaussians(fig20.11)*  Bayesiannetworkwithhiddenvariables(fig20.13)*  HiddenMarkovmodels(fig20.14)*  PO-MDP(ALFE5.10)

*  HW:LearnaBayesianmodelfromexamples

Wk13:UnsupervisedLearningProbability-Based

Page 24: Lecture Outlines - Information Sciences Instituteshen/CS360/Lecture-Outline.pdf · * The world you created in simulation (e.g. wumpus) * syntax(on paper, α,β) * semantics(in world/model

*  ReinforcementLearning*  Delayedsupervision/reward*  Whenweonlyknowtherewardsfromthegoals

Week13:ReinforcementLearning

Page 25: Lecture Outlines - Information Sciences Instituteshen/CS360/Lecture-Outline.pdf · * The world you created in simulation (e.g. wumpus) * syntax(on paper, α,β) * semantics(in world/model

*  HowtolearningPOMDPwithoutknowingthestates

Wk14:Surprise-BasedLearning

Page 26: Lecture Outlines - Information Sciences Instituteshen/CS360/Lecture-Outline.pdf · * The world you created in simulation (e.g. wumpus) * syntax(on paper, α,β) * semantics(in world/model

*  ActionsandPerceptions*  Communication*  Naturallanguageoverview*  Speechunderstanding*  Collaboration*  Self-Organizationandself-reconfiguration*  Rubenstein2010.

Wk15:IntegratedIntelligence

Page 27: Lecture Outlines - Information Sciences Instituteshen/CS360/Lecture-Outline.pdf · * The world you created in simulation (e.g. wumpus) * syntax(on paper, α,β) * semantics(in world/model

*  Relational+ProbabilisticModels*  Existingresearch:FOL+Probability

*  StructuralLearning*  Existingresearch:SBL,*  Scaleuptotherealworld*  Integratewithallaspects*  Reconfigurebothmindandbody

Mk16:TowardstheFuture

Page 28: Lecture Outlines - Information Sciences Instituteshen/CS360/Lecture-Outline.pdf · * The world you created in simulation (e.g. wumpus) * syntax(on paper, α,β) * semantics(in world/model

*  GoodLuck!

Mk17:FinalExam