Machine Leaning - Introduction

Artificial Intelligence

Jesus A. Gonzalez

July 29, 2016

Machine Learning I - Content

  1. What is Machine Learning?
  2. Types of Learning
  3. Design of a Learning System
  4. Concept Learning
  5. Version Space
  6. Applications

ML - Introduction

ML - Introduction

ML - Generalization

ML - Learning Definitions

ML - Learning Definitions

ML - Learning Definitions

ML - Why should machines learn?

ML - Why should machines learn?

ML - Areas involved in ML

ML - Areas involved in ML

ML - Areas involved in ML

ML - Areas involved in ML

ML - Areas involved in ML

ML - Areas involved in ML

ML - Varieties of ML

ML - Types of Learning

ML - Tasks

ML - Steps to design of a ML system

  1. Data collection
    • Depends on the domain
    • What type of data?
    • From a database?
    • Select a sub-set of data?
    • Too much data?
    • Small amount of data?
      • Sampling?

ML - Steps to design of a ML system

  1. Prepare the input data
    • Data cleaning
    • Format data for specific algorithm
      • Table
      • Logical predicates
      • Graphs

ML - Steps to design of a ML system

  1. Analyze the input data (preview)
    • Missing values
    • Identify noise
    • Identify outliers

ML - Steps to design of a ML system

  1. Training an algorithm
    • Which algorithm?
    • Would this be the best algorithm for the task?
    • Try only one algorithm or more?

ML - Steps to design of a ML system

  1. Evaluate the algorithm
    • How do we evaluate?
    • 10-FCV
    • Confusion matriz
    • Which metrics should we use?
      • Accuracy
      • Precision / recall
      • F-Measure
      • ROC or AUC

ML - Steps to design of a ML system

  1. Use the algorithm or model

Inductive Learning (IL)- DEFINITION

IL - Concept Learning

IL - Notation

IL - Notation

IL - The Problem of Inductive Learning

IL - The Problem of Inductive Learning

IL - The Problem of Inductive Learning

IL - The Problem of Inductive Learning

Machine Learning as a Search Problem

ML Example (Tom Mitchell 1997)

ML Example (Tom Mitchell 1997)

ML - Notation

ML - Learning Algorithm

ML - Learning Algorithm

ML - Inductive Learning Hypothesis

ML - Design of a ML system

ML- Computing the Hypothesis Space

ML- Ordering the Hypothesis Space: General to Specific

ML- Ordering the Hypothesis Space: General to Specific

ML - The Find-S Algorithm

ML - The Find-S Algorithm

ML - The Find-S Algorithm

Finding a most specific hypothesis

  1. Initialize \(h\) to the most specific hypothesis in \(H\)
  2. For each positive training instance \(x\)
    • For each attribute constraint \(a_i\) in \(h\)
      • If the constraint \(a_i\) in \(h\) is satisfied by \(x\)
        • Then do nothing
        • Else replace \(a_i\) in \(h\) by the next more general constraint that is satisfied by \(x\)
  3. Output hypothesis \(h\)

ML - The Find-S Algorithm

ML - The Find-S Algorithm

ML - The Find-S Algorithm - Questions

ML - Version Spaces and the Candidate-elimination Algorithm

ML - Version Spaces - Definitions - Consistent Hypothesis

\[Consistent(h, D) = (\forall \langle x, c(x) \rangle \in D) \; h(x) = c(x)\]

ML - Version Spaces - Definitions - Version Space

\[VS_{H,D} = \{h \in H | Consistent(h, D)\}\]

ML - Version Spaces - Definitions

ML - Version Space - List-Then-Eliminate Algorithm

ML - Version Space - List-Then-Eliminate Algorithm

  1. \(VersionSpace \leftarrow\) a list containing every hypothesis in \(H\)
  2. For each training example, \(\langle x, c(x) \rangle\)
    • remove from \(VersionSpace\) any hypothesis \(h\) for which \(h(x) \neq c(x)\)
  3. Output the list of hypotheses in \(VersionSpace\)

ML - Version Space - Candidate-Elimination Algorithm

ML - Version Space - Candidate-Elimination Algorithm

ML - Version Space - Candidate-Elimination Algorithm

ML - Version Space - Candidate-Elimination Algorithm - Definitions

ML - Version Space - Candidate-Elimination Algorithm - Definitions

ML - Version Space - Candidate-Elimination Algorithm

ML - Version Space - Candidate-Elimination Algorithm

ML - Version Space - Candidate-Elimination Algorithm

ML - Version Space - Candidate-Elimination Algorithm

ML - Version Space - Candidate-Elimination Algorithm

ML - Version Space - Candidate-Elimination Algorithm

ML - Version Space - Candidate-Elimination Algorithm

ML - Version Space - Candidate-Elimination Algorithm

ML - Version Space - Candidate-Elimination Algorithm

ML - Version Space - Candidate-Elimination Algorithm

ML - Version Space - Candidate-Elimination