Docsity

Artificial intelligence lecture note, Lecture notes of Artificial Intelligence

Toggle sidebar
bg1
Chapter- 6 : Machine Learning
•Machine learning is a branch of AI that uses algorithm to allow computer to evolve
behaviors based on data collected from databases or gathered through sensors.
•Machine learning focuses on prediction based on known properties learned from the
training data.
•The performance is usually evaluated learned with respect to reproduce known
knowledge.
Why Machine Learning?
•Recent Progress in algorithms and theory
•Huge computational power is available
•Many tasks would benefit from adaptive systems:
■Robot exploring Mars (or cleaning your house!)
■Software agents (OS functions, web searching)
■Speech, vision, language, …
Machine Learning Algorithms
•Supervised Learning
•Unsupervised Learning
•Semi-supervised Learning
•Reinforcement Learning (Environment provides feedback)
•Inductive learning
•Artificial Neural Network Learning
•Genetic Algorithm
•Bayesian Network..etc
Learning
•Learning is acquiring new or modifying existing knowledge, behaviors, skills and may
involve synthesizing different types of information
Learning involves 3 factors:
Prepared By: Bhupesh Kumar Mishra 1
pf3
pf4
pf5
pf8

Partial preview of the text

Download Artificial intelligence lecture note and more Lecture notes Artificial Intelligence in PDF only on Docsity!

Chapter- 6 : Machine Learning

  • Machine learning is a branch of AI that uses algorithm to allow computer to evolve behaviors based on data collected from databases or gathered through sensors.
  • Machine learning focuses on prediction based on known properties learned from the training data.
  • The performance is usually evaluated learned with respect to reproduce known knowledge.

Why Machine Learning?

  • Recent Progress in algorithms and theory
  • Huge computational power is available
  • Many tasks would benefit from adaptive systems:

■ Robot exploring Mars (or cleaning your house!)

■ Software agents (OS functions, web searching)

■ Speech, vision, language, …

Machine Learning Algorithms

  • Supervised Learning
  • Unsupervised Learning
  • Semi-supervised Learning
  • Reinforcement Learning (Environment provides feedback)
  • Inductive learning
  • Artificial Neural Network Learning
  • Genetic Algorithm
  • Bayesian Network..etc

Learning

  • Learning is acquiring new or modifying existing knowledge, behaviors, skills and may involve synthesizing different types of information

Learning involves 3 factors:

Changes: Learning changes the learner. For machine learning the problem is determining the nature of these changes and how to best represent them.

Generalization: Learning leads to generalization. Performance must improve not only on the same task but on similar tasks

Improvement: Learning leads to improvements. Machine learning must address the possibility that changes may degrade performance and find ways to prevent it.

Learning Methods

  • There are two different kinds of information processing which must be considered in a machine learning system - Inductive learning is concerned with determining general patterns, organizational schemes, rules, and laws from raw data, experience or examples. - Deductive learning is concerned with determination of specific facts using general rules or the determination of new general rules from old general rules. - A=B, B=C, then A =C

Types of learning method

1. Rote Learning

  • It is a technique which focuses on memorization.
  • Memorization - saving new knowledge to be retrieved when needed rather than calculated.
  • It avoids understanding the inner complexities and inferences of the subject that is being learned.
  • It works by taking problems that the performance element has solved and memorizing the problem and the solution.
  • (^) Only useful if it takes less time to retrieve the knowledge than it does to recomputed it

Example : A.L. Samuels Checkers Player (1959-1967). It is a program that knows and follows the rules of checkers. It memorizes and recalls board positions it has encountered in previous games

2. Learning by Analogy

  • Learning by analogy means acquiring new knowledge about an input entity by transferring it from a known similar entity.
  • ID3 builds the tree from the top down
  • Entropy or Information gain is used to select the most useful attribute for classification
  • Entropy(H) = - ∑ (pi )log2(p (^) i)
  • Entropy is the basis of Information Theory
  • Entropy is a measure of randomness, hence the smaller the entropy the greater the information content

ID3 algorithm

  • Create a root node for tree
  • If all examples are positive, then create a positive node and stop
  • If all examples are negative, then create a negative node and stop
  • Otherwise
    • Calculate entropy, information gain to select root node and branch node.( nodes with highest information gain or minimum entropy is selected as root node)
    • Partition the examples into subset
    • Repeat until all examples are classified

Eg: Refer class note

Learning Framework There are four major components in a learning system:

Environment

  • The environment refers the nature and quality of information given to the learning element.
  • The nature of information depends on its level (the degree of generality with respect to the performance element)
  • High level information is abstract, it deals with a broad class of problems
  • Low level information is detailed; it deals with a single problem.
  • The quality of information involves
  • noise free
  • reliable
  • ordered

Learning Elements

  • Acquire new knowledge through learning elements. Learning may be of
  • Rote learning
  • (^) Learning by examples
  • Learning by analogy
  • Explanation based learning…etc
  • The learning elements should have access to all internal actions of the performance element.

The Knowledge Base The knowledge base should be

  1. Expressive
    • Knowledge should be represented in understandable way
  2. Modifiable
    • (^) it must be easy to change the data in the knowledge base
  3. Extendibility
    • The knowledge base must contain meta-knowledge (knowledge on how the data base is structured) so the system can change its structure The Performance Element
  • The performance element analyzes how complex the learning is and how learning is being performed?
  • Crossover decomposes two distinct solutions and then randomly mixes their parts to form novel solutions
  • Mutation randomly produces a candidate solution.

Comparison between Genetic Algorithm and Nature

Genetic Algorithm Nature Optimization problem Environment Feasible solutions Individuals living in that environment Solution Quality (fitness function) Individual’s degree of adaption to its surrounding environment A set of feasible solutions A population of organisms Stochastic operators Selection, Crossover and mutation in nature’s evolutionary process Iteratively applying a set of stochastic operators on a set of feasible solutions

Evolution of populations to suit their environment

Genetic Algorithm

  • GA starts with k randomly generated states ( population)
  • A state is represented a string over a finite alphabet ( often a string of 0s and 1s)
  • Evaluation function (fitness function) defines fitness value of each states.
  • Produce the next generation of states by selection, crossover, and mutation.

The primary advantage of GA comes from crossover operation.

Algorithm

  • produce an initial population of individuals
  • evaluate the fitness of all individuals
  • while (solution not found)
    • select fitter individuals for reproduction
    • recombine between individuals
    • mutate individuals
    • (^) evaluate the fitness of the modified individuals
    • generate a new population
  • End while

GA flowchart