Machine Learning.! A completely different way to have an. agent acquire the appropriate abilities to solve a particular goal is via machine learning.

Similar documents
Multiclass and Multi-label Classification

1.1 Brutus Bites Back

1.1 Brutus Bites Back A Develop Understanding Task

Big Picture Biology Student Workbook

Reasoning with Neural Networks

LIZARD EVOLUTION VIRTUAL LAB

The Kaggle Competitions: An Introduction to CAMCOS Fall 2015

Introduction to the Cheetah

2010 Canadian Computing Competition Day 1, Question 1 Barking Dogs!

Recurrent neural network grammars. Slide credits: Chris Dyer, Adhiguna Kuncoro

[Boston March for Science 2017 photo Hendrik Strobelt]

Recursion with Turtles

Approximating the position of a hidden agent in a graph

Modeling: Having Kittens

Identity Management with Petname Systems. Md. Sadek Ferdous 28th May, 2009

Controllability of Complex Networks. Yang-Yu Liu, Jean-Jacques Slotine, Albert-Laszlo Barbasi Presented By Arindam Bhattacharya

King Fahd University of Petroleum & Minerals College of Industrial Management

VETERINARY SCIENCE CURRICULUM. Unit 1: Safety and Sanitation

Name Class Date. How does a founding population adapt to new environmental conditions?

Integrated Math 1 Honors Module 2 Honors Systems of Equations and Inequalities

Part One: Introduction to Pedigree teaches students how to use Pedigree tools to create and analyze pedigrees.

A Column Generation Algorithm to Solve a Synchronized Log-Truck Scheduling Problem

Addition: Sums to 10. Operations and Algebraic Thinking. Objective. Common Core State Standards. Talk About It. Solve It.

The River of Life Lower Key Stage 2

by Jennifer Oxley and Billy Aronson

A-FAVP.1 Foundations of Advanced Veterinary Practice

Optimizing Phylogenetic Supertrees Using Answer Set Programming

Data Mining Classification: Alternative Techniques. Lecture Notes for Chapter 4. Rule-Based. Introduction to Data Mining, 2 nd Edition

Who Wants to Live A Million Years? Objective: Students will learn about the process of natural selection through an online simulation.

An Esterel Virtual Machine (EVM) Aruchunan Vaseekaran

MAIL ORDER HATCHERIES: OPERATIONAL AND DISTRIBUTION LOGISTICS, SALMONELLA INTERVENTION ACTIVITIES AIMED AT PREVENTION OF HUMAN SALMONELLOSIS

INQUIRY & INVESTIGATION

Application of Fuzzy Logic in Automated Cow Status Monitoring

Performance Task: Lizards, Lizards, Everywhere!

Scratch Lesson Plan. Part One: Structure. Part Two: Movement

Mr. Bouchard Summer Assignment AP Biology. Name: Block: Score: / 20. Topic: Chemistry Review and Evolution Intro Packet Due: 9/4/18

Sketch Out the Design

Semantics. These slides were produced by Hadas Kotek.

2. Landscape Types. Complete the sentences with the correct word from the brackets. rain lake

Turtle Ballet: Simulating Parallel Turtles in a Nonparallel LOGO Version. Erich Neuwirth

Lecture 4: Controllability and observability

Guide to Preparation of a Site Master File for Breeder/Supplier/Users under Scientific Animal Protection Legislation

Probability and Heredity

Section: 101 (2pm-3pm) 102 (3pm-4pm)

Effects of Natural Selection

Catapult Project (Quadratic Functions)

Philippines Crocodile (Crocodylus mindorensis ) - the effects of temperature on sex determination.

Blue eyed Villagers. Contents. Summer Puzzle 2. 2 Discussion 3. 3 Solution 4

Do the traits of organisms provide evidence for evolution?

Candidate Number. Other Names

EVENTS OR STEPS The events in the story are the steps that the character takes to solve the problem or reach the goal.

Dog Years Dilemma. Using as much math language and good reasoning as you can, figure out how many human years old Trina's puppy is?

Body Parts and Products (Sessions I and II) BROWARD COUNTY ELEMENTARY SCIENCE BENCHMARK PLAN

Chapter 18: Categorical data

CONTENTS. Life Science... 2

THE PIGEONHOLE PRINCIPLE AND ITS APPLICATIONS

Virtual Lab: Sex-Linked Traits Worksheet. 1. Please make sure you have read through all of the information in the

We recommend you cite the published version. The publisher s URL is

BEGONIA CHATTER THE FUKUMI METHOD FOR PROPAGATING RHIZOMATOUS AND REX BEGONIAS

Human Uniqueness. Human Uniqueness. Why are we so different? 12/6/2017. Four Candidates

Heuristic search, A* CS171, Winter 2018 Introduction to Artificial Intelligence Prof. Richard Lathrop. Reading: R&N

AKC Rally More Advanced Signs

English 11H Mrs. V. Pechstein

Go, Dog. Go! PLAYGUIDE. The Story Dogs, dogs, everywhere! Big ones, little ones, at work and at play. The CATCO

Subdomain Entry Vocabulary Modules Evaluation

Reproducible for Educational Use Only This guide is reproducible for educational use only and is not for resale. Enslow Publishers, Inc.

The Economics of Antibiotic Use in U.S. Livestock Agriculture

DATE: The Komodo Dragon

LN #13 (1 Hr) Decomposition, Pattern Recognition & Abstraction CTPS Department of CSE

Evolution and Gene Frequencies: A Game of Survival and Reproductive Success

Amazing arthropods. Kindergarten-Second. Life Science TEKS. Life Science Vocabulary

GPS in pigeon racing Denmark 2017 Kasper Korndal-Henriksen Ove Fuglsang Jensen

CHAPTER 3 MUTATION AND ADAPTIVE TRAITS

PupDate. Lacey Rahmani UX

Virtual Genetics Lab (VGL)

Set theory is useful for solving many types of problems, including Internet searches, database queries, data analyses, games, and puzzles.

Teacher Edition. AlphaWorld. Amazing Sea Lizards. Written by Marilyn Woolley

I. Introduction. Orientation and Navigation 3/8/2012. Most difficult problem Must know. How birds find their way. Two terms often misused

Released Items Grade 5 ELA-Reading AzMERIT

Big and Little A Lesson for Third Graders

Nathan A. Thompson, Ph.D. Adjunct Faculty, University of Cincinnati Vice President, Assessment Systems Corporation

Comparing DNA Sequences Cladogram Practice

Economic analysis of the Zimbabwe Handwashing Campaign Webinar of May 31 st 2018

Lecture 1: Turtle Graphics. the turtle and the crane and the swallow observe the time of their coming; Jeremiah 8:7

Please initial and date as your child has completely mastered reading each column.

A Very Improbable Story Ebook Gratuit

Brinton & Fujiki Brigham Young University Social Communication Intervention Script for story book, The Pigeon Finds a Hotdog

National Academic Reference Standards (NARS) Veterinary Medicine. February st Edition

Introduction to phylogenetic trees and tree-thinking Copyright 2005, D. A. Baum (Free use for non-commercial educational pruposes)

What are taxonomy, classification, and systematics?

How to Stop your Dog from Digging

Lacey Blocker Vernon Parish Teacher Leader NBCT

Design of 32 bit Parallel Prefix Adders

Contents. Introduction...3. Concept Webs: Topic/Main Idea and Details. Charts: Classifying. Sequence Webs: Sequence

Hello Scratch! by Gabriel Ford, Sadie Ford, and Melissa Ford. Sample Chapter 3. Copyright 2018 Manning Publications

Chapter 16: Evolution Lizard Evolution Virtual Lab Honors Biology. Name: Block: Introduction

Two Sets to Build Difference Edward I. Maxwell

Cane toads and Australian snakes

[EMC Publishing Note: In this document: CAT 1 stands for the C est à toi! Level One Second Edition Teacher s Annotated Edition of the Textbook.

SCIENTIFIC REPORT. Analysis of the baseline survey on the prevalence of Salmonella in turkey flocks, in the EU,

Transcription:

Machine Learning! A completely different way to have an agent acquire the appropriate abilities to solve a particular goal is via machine learning.

Machine Learning! What is Machine Learning? " Programs that get better with experience given a task and some performance measure. Learning to classify news articles Learning to recognize spoken words Learning to play board games Learning to navigate a virtual world! Usually involves some sort of inductive reasoning step. Chap 7 & 11 (online book)

Inductive Reasoning! Deductive reasoning (rule based reasoning) " From the general to the specific! Inductive reasoning " From the specific to the general General Theory Deduction Induction Specific Facts Note: not to be confused with mathematical induction!

Example! Facts: every time you see a swan you notice that the swan is white.! Inductive step: you infer that all swans are white. Observed Swans are white. All Swans are white. Induction Inference is the act or process of drawing a conclusion based solely on what one already knows.

Observation! Deduction is truth preserving " If the rules employed in the deductive reasoning process are sound, then, what holds in the theory will hold for the deduced facts.! Induction is NOT truth preserving " It is more of a statistical argument " The more swans you see that are white, the more probable it is that all swans are white. But this does not exclude the existence of black swans.

Observation D observations X universe of all swans

Different Styles of Machine Learning! Supervised Learning " The learning needs explicit examples of the concept to be learned (e.g. white swans )! Unsupervised Learning " The learner discovers autonomously any structure in the domain that might represent an interesting concept

Knowledge - Representing what has been learned! Symbolic Learners (transparent models) " If-then-else rules " Decision trees " Association rules! Sub-Symbolic Learners (non-transparent models) " Neural Networks " Clustering (Self-Organizing Maps, k-means) " Support Vector Machines

Why Learning?! Scripting works well if there is a well understood relationship between the input (senses) and the actions to be taken! Learning works well where no such clear relationship exists " Perhaps there are too many special cases to consider " Perhaps there is a non-linear numerical relationship between the input and the output that is difficult to characterize! Learning can be adaptive online learning where the agent constantly evaluates its actions and adjusts its acquired knowledge " Very difficult to achieve in scripting

Decision Trees! Learn from labeled observations - supervised learning! Represent the knowledge learned in form of a tree Example: learning when to play tennis. " Examples/observations are days with their observed characteristics and whether we played tennis or not

Play Tennis Example Outlook Temperature Humidity Windy PlayTennis Sunny Hot High False No Sunny Hot High True No Overcast Hot High False Yes Rainy Mild High False Yes Rainy Cool Normal False Yes Rainy Cool Normal True No Overcast Cool Normal True Yes Sunny Mild High False No Sunny Cool Normal False Yes Rainy Mild Normal False Yes Sunny Mild Normal True Yes Overcast Mild High True Yes Overcast Hot Normal False Yes Rainy Mild High True No

Decision Tree Learning Induction Facts or Observations Theory

Interpreting a DT DT Decision Tree A DT uses the attributes of an observation table as nodes and the attribute values as links. All attribute values of a particular attribute need to be represented as links. The target attribute is special - its values show up as leaf nodes in the DT.

Interpreting a DT Each path from the root of the DT to a leaf can be interpreted as a decision rule. IF Outlook = Sunny AND Humidity = Normal THEN Playtennis = Yes IF Outlook = Overcast THEN Playtennis =Yes IF Outlook = Rain AND Wind = Strong THEN Playtennis = No

DT: Explanation & Prediction Explanation: the DT summarizes (explains) all the observations in the table perfectly 100% Accuracy Prediction: once we have a DT (or model) we can use it to make predictions on observations that are not in the original training table, consider: Outlook = Sunny, Temperature = Mild, Humidity = Normal, Windy = False, Playtennis =?

Constructing DTs! How do we choose the attributes and the order in which they appear in a DT? " Recursive partitioning of the original data table " Heuristic - each generated partition has to be less random (entropy reduction) than previously generated partitions

Entropy S is a sample of training examples p + is the proportion of positive examples in S p - is the proportion of negative examples in S Entropy measures the impurity (randomness) of S S p + Entropy(S) - p + log 2 p + - p - log 2 p - Entropy(S) = Entropy([9+,5-]) =.94

AvgEntropy(S, A) = Partitioning the Data Set S v S E(S ) (weighted average) v v Values(A ) Outlook Temperature Humidity Windy PlayTennis Sunny Hot High False No Sunny Hot High True No Sunny Mild High False No E =.97 Sunny Cool Normal False Yes Sunny Sunny Mild Normal True Yes Outlook Temperature Humidity Windy PlayTennis Outlook Overcast Overcast Hot High False Yes Overcast Cool Normal True Yes Overcast Mild High True Yes Overcast Hot Normal False Yes E = 0 Average Entropy =.64 (weighted.69) Rainy Outlook Temperature Humidity Windy PlayTennis Rainy Mild High False Yes Rainy Cool Normal False Yes Rainy Cool Normal True No E =.97 Rainy Mild Normal False Yes Rainy Mild High True No

Partitioning in Action E =.640 E =.789 E =.892 E =.911

Recursive Partitioning Partition(Examples, TargetAttribute, Attributes) Examples are the training examples. TargetAttribute is a binary (+/-) categorical dependent variable and Attributes is the list of independent variables which are available for testing at this point. This function returns a decision tree. Create a Root node for the tree. I f all Examples are positive then return Root as a leaf node with label = +. Else if all Examples are negative then return Root as a leaf node with label = -. Else if Attributes is empty then return Root as a leaf node with label = most common value of TargetAttribute in Examples. Otherwise o A := the attribute from Attributes that reduces entropy the most on the Examples. o Root := A o F or each v values(a )! Add a new branch below the Root node with value A = v! L et Examples v be the subset of Examples where A = v! I f Examples v is empty then add new leaf node to branch with label = most common value of TargetAttribute in Examples.! Else add new subtree to branch Partition(Examples v, TargetAttribute, Attributes {A}) Return Root Based on material from the book: "Machine Learning", Tom M. Mitchell. McGraw-Hill, 1997.

Recursive Partitioning Our data set: Outlook Temperature Humidity Windy PlayTennis Sunny Hot High False No Sunny Hot High True No Overcast Hot High False Yes Rainy Mild High False Yes Rainy Cool Normal False Yes Rainy Cool Normal True No Overcast Cool Normal True Yes Sunny Mild High False No Sunny Cool Normal False Yes Rainy Mild Normal False Yes Sunny Mild Normal True Yes Overcast Mild High True Yes Overcast Hot Normal False Yes Rainy Mild High True No

Sunny Hot High False No Recursive Partitioning Sunny Hot High True No Overcast Hot High False Yes Rainy Mild High False Yes Rainy Cool Normal False Yes Rainy Cool Normal True No Overcast Cool Normal True Yes Sunny Mild High False No Sunny Cool Normal False Yes Rainy Mild Normal False Yes Sunny Mild Normal True Yes Overcast Mild High True Yes Overcast Hot Normal False Yes Rainy Mild High True No Outlook Sunny Hot High False No Sunny Hot High True No Sunny Mild High False No Sunny Cool Normal False Yes Sunny Mild Normal True Yes Rainy Mild High False Yes Rainy Cool Normal False Yes Rainy Cool Normal True No Rainy Mild Normal False Yes Rainy Mild High True No Overcast Hot High False Yes Overcast Cool Normal True Yes Overcast Mild High True Yes Overcast Hot Normal False Yes

Recursive Partitioning Outlook Sunny Hot High False No Sunny Hot High True No Sunny Mild High False No Sunny Cool Normal False Yes Sunny Mild Normal True Yes Rainy Mild High False Yes Rainy Cool Normal False Yes Rainy Cool Normal True No Rainy Mild Normal False Yes Rainy Mild High True No Overcast Hot High False Yes Overcast Cool Normal True Yes Overcast Mild High True Yes Overcast Hot Normal False Yes

Recursive Partitioning Outlook Sunny Hot High False No Sunny Hot High True No Sunny Mild High False No Sunny Cool Normal False Yes Sunny Mild Normal True Yes Rainy Mild High False Yes Rainy Cool Normal False Yes Rainy Cool Normal True No Rainy Mild Normal False Yes Rainy Mild High True No Overcast Hot High False Yes Humidity Overcast Cool Normal True Yes Overcast Mild High True Yes Overcast Hot Normal False Yes Sunny Cool Normal False Yes Sunny Mild Normal True Yes Sunny Hot High False No Sunny Hot High True No Sunny Mild High False No

Recursive Partitioning Outlook Sunny Hot High False No Sunny Hot High True No Sunny Mild High False No Sunny Cool Normal False Yes Sunny Mild Normal True Yes Rainy Mild High False Yes Rainy Cool Normal False Yes Rainy Cool Normal True No Rainy Mild Normal False Yes Rainy Mild High True No Humidity Overcast Hot High False Yes Overcast Cool Normal True Yes Overcast Mild High True Yes Overcast Hot Normal False Yes Windy Sunny Cool Normal False Yes Sunny Mild Normal True Yes Sunny Hot High False No Sunny Hot High True No Sunny Mild High False No Rainy Mild High False Yes Rainy Cool Normal False Yes Rainy Mild Normal False Yes Rainy Cool Normal True No Rainy Mild High True No