SlideShare a Scribd company logo
1 of 54
Download to read offline
Artificial Intelligence (CSIT 4th Sem)
Unit:5 Machine Learning
Prepared By : Narayan Dhamala
1
Introduction to Machine Learning
Prepared By : Narayan Dhamala
 Machine learning is the study of computer system that learn from
data and experience.
 Machine learning is subfield of artificial intelligence which gives
the computer ability to learn without being explicitly programmed.
 The goal of machine learning is to build computer system that
can adapt and learn from their experience.
 A computer program is said to be learn if it‟s performance P
improves over a task T with an experience E.
2
Concept of Learning
Prepared By : Narayan Dhamala
 Learning is a way of updating the knowledge.
 Learning is making useful changes in our mind.
 Learning is constructing or modifying representations of what is
being experienced.
 Learning denotes changes in the system that are adaptive in the
sense that they enable the system to do the same task (or tasks
drawn from the same population) more effectively the next time.
3
Types of Learning
Prepared By : Narayan Dhamala
The strategies for learning can be classified according to the amount of inference the system
has to perform on its training data. In increasing order we have
1. Rote learning – the new knowledge is implanted directly with no inference at all, e.g. simple
memorization of past events, or a knowledge engineer‟s direct programming of rules elicited
from a human expert into an expert system.
2. Supervised learning – the system is supplied with a set of training examples consisting of
inputs and corresponding outputs, and is required to discover the relation or mapping
between then, e.g. as a series of rules, or a neural network.
3. Unsupervised learning – the system is supplied with a set of training examples consisting
only of inputs and is required to discover for itself what appropriate outputs should be, e.g. a
Kohonen Network or Self Organizing Map.
4. Reinforcement learning- Is concerned with how intelligent agents ought to act in an
environment to maximize some notion of reward from sequence of actions.
4
Prepared By : Narayan Dhamala
5
Prepared By : Narayan Dhamala
6
Learning Framework
Prepared By : Narayan Dhamala
7
• There are four major components in a learning system:
Environment
Learning
Element
Performance
Element
Knowledge
Base
Learning Framework:
The Environment
Prepared By : Narayan Dhamala
• 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 wrt
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
8
Learning Framework:
Learning Elements
Prepared By : Narayan Dhamala
• Four learning situations
– Rote Learning
• environment provides information at the required level
– Learning by being told
• information is too abstract, the learning element must hypothesize missing data
– Learning by example
• information is too specific, the learning element must hypothesize more general rules
– Learning by analogy
• information provided is relevant only to an analogous task, the learning element must
discover the analogy
9
Learning Framework:
Learning Elements
Prepared By : Narayan Dhamala
• Four learning situations
– Rote Learning
• environment provides information at the required level
– Learning by being told
• information is too abstract, the learning element must hypothesize missing data
– Learning by example
• information is too specific, the learning element must hypothesize more general rules
– Learning by analogy
• information provided is relevant only to an analogous task, the learning element must
discover the analogy
10
Learning Framework:
The Knowledge Base
Prepared By : Narayan Dhamala
• Expressive
– the representation contains the relevant knowledge in an easy to get to
fashion
• Modifiable
– it must be easy to change the data in the knowledge base
• Extendibility
– the knowledge base must contain meta-knowledge (knowledge on how
the data base is structured) so the system can change its structure
11
Learning Framework:
The Performance Element
Prepared By : Narayan Dhamala
• Complexity
– for learning, the simplest task is classification based on a single rule while
the most complex task requires the application of multiple rules in
sequence
• Feedback
– the performance element must send information to the learning system to
be used to evaluate the overall performance
• Transparency
– the learning element should have access to all the internal actions of the
performance element
12
Statistical Based Learning: Naïve Bayes Model
Prepared By : Narayan Dhamala
• Statistical Learning is a set of tools for understanding
data. These tools broadly come under two classes:
supervised learning & unsupervised learning.
• Generally, supervised learning refers to predicting or
estimating an output based on one or more inputs.
• Unsupervised learning, on the other hand, provides a
relationship or finds a pattern within the given data
without a supervised output.
13
BAYESIAN METHODS
• Learning and classification (Supervised learning) method
based on probability theory.
• Baye‟s theorem plays a critical role in probabilistic
learning and classification.
• Uses prior probability of each category given no
information about an item.
• Categorization produces a posterior probability
distribution over the possible categories given a
description of an item.
P(A|B) =
BAYESIAN METHODS...
D =
AFTER TRAINING
Size<small, medium, large>
Color<red, blue, green>
Shape<circle, triangle, square>
Category<positive, negative>
BAYESIAN METHODS...
Naïve Bayesian Classifier: Training Dataset
Class:
C1:buys_computer = „yes‟
C2:buys_computer = „no‟
Data sample
X = (age <=30,
Income = medium,
Student = yes
Credit_rating = Fair)
Naïve Bayesian Classifier: An Example
• P(Ci): P(buys_computer = “yes”) = 9/14 = 0.643
P(buys_computer = “no”) = 5/14= 0.357
• Compute P(X|Ci) for each class
P(age = “<=30” | buys_computer = “yes”) = 2/9 = 0.222
P(age = “<= 30” | buys_computer = “no”) = 3/5 = 0.6
P(income = “medium” | buys_computer = “yes”) = 4/9 = 0.444
P(income = “medium” | buys_computer = “no”) = 2/5 = 0.4
P(student = “yes” | buys_computer = “yes) = 6/9 = 0.667
P(student = “yes” | buys_computer = “no”) = 1/5 = 0.2
P(credit_rating = “fair” | buys_computer = “yes”) = 6/9 = 0.667
P(credit_rating = “fair” | buys_computer = “no”) = 2/5 = 0.4
• X = (age <= 30 , income = medium, student = yes, credit_rating = fair)
P(X|Ci) : P(X|buys_computer = “yes”) = 0.222 x 0.444 x 0.667 x 0.667 = 0.044
P(X|buys_computer = “no”) = 0.6 x 0.4 x 0.2 x 0.4 = 0.019
P(X|Ci)*P(Ci) : P(X|buys_computer = “yes”) * P(buys_computer = “yes”) = 0.028
P(X|buys_computer = “no”) * P(buys_computer = “no”) = 0.007
Therefore, X belongs to class (“buys_computer = yes”)
Learning by genetic algorithm
Genetic algorithm is an evolutionary algorithm which is based
on the principle of natural selection and natural genetics.
Genetic algorithm plays an important role in search and
optimization problem.
The main purpose of genetic algorithm is to find the
individuals from the search space with the best genetic
materials.
The genetic algorithm process consists of following 4 steps:
1) Encoding (Representation)
2) Selection
3) Crossover &
4) Mutation
Learning by Neural Networks
Neural Network
 A neural network( also called artificial neural network) is a computing system made up of a
number of simple, highly interconnected processing elements, which process information by
their dynamic state response to external inputs.
 An artificial neural network is an information processing paradigm that is inspired by
biological nervous system.
 It is composed of large number of highly interconnected processing elements called
neurons.
 Each neuron in ANN receives a number of inputs.
 An activation function is applied to these inputs which results the output value of the neuron.
Learning by Neural Networks
Biological neural network vs Artificial neural network
 The term "Artificial Neural Network" is derived from Biological neural networks that
develop the structure of a human brain. Similar to the human brain that has neurons
interconnected to one another, artificial neural networks also have neurons that are
interconnected to one another in various layers of the networks. These neurons are known
as nodes.
 Dendrites from Biological Neural Network represent inputs in Artificial Neural Networks, cell
nucleus represents Nodes, synapse represents Weights, and Axon represents Output.
Learning by Neural Networks
Biological neural network vs Artificial neural network
 The Relationship between Biological neural network and artificial neural network is as
follows
Learning by Neural Networks
Mathematical Model of ANN
Mathematical Model of ANN
Mathematical Model of ANN
Types of ANN
 The different types of ANN are as follows
1) Feed Forward ANN
 Feed forward neural network is the simplest form of neural networks where input data
travels in one direction only, passing through artificial neural nodes and exiting through
output nodes.
 The feed forward neural network does not contain loop or cycle.
 In feed forward neural network, the hidden layers may or may not be present but the input
and output layers are present there.
 Based on this, they can be further classified as a single-layered or multi-layered feed-
forward neural network.
Types of ANN
Types of ANN
Note:
• Single Layer Perceptron – This is the simplest feed forward neural network which does
not contain any hidden layer.
• Multi Layer Perceptron – A Multi Layer Perceptron has one or more hidden layers.
Advantages of Feed forward Neural Network
• Less complex, easy to design & maintain
• Fast and speedy [One-way propagation]
• Highly responsive to noisy data
Dis-advantages of Feed forward Neural Network
 Cannot be used for deep learning [due to absence of dense layers and back propagation]
Types of ANN
2) Recurrent (Feed back)Neural Network
 Recurrent neural network is a type of neural network in which the output from the previous
steps are feed as input to the current step.
 The recurrent neural network contains loop or cycle.
 The main and most important feature of RNN is Hidden state, which remembers some
information about a sequence.
Types of ANN
Advantages of Recurrent Neural Networks
• Model sequential data where each sample can be assumed to be dependent on historical
ones is one of the advantage.
• Used with convolution layers to extend the pixel effectiveness.
Disadvantages of Recurrent Neural Networks
• Training recurrent neural nets could be a difficult task
• Difficult to process long sequential data using ReLU(rectified linear ) as an activation
function.
Advantages and Dis-advantages of Neural Network
Advantages:
• A neural network can perform tasks in parallel,which a linear program cannot perform.
• When an element of the neural network fails, it can continue without any problem by their
parallel nature.
• A neural network does not need to be reprogrammed as it learns itself.
• It can be implemented in an easy way without any problem.
• As adaptive, intelligent systems, neural networks are robust and excel at solving complex
problems. Neural networks are efficient in their programming and the scientists agree that
the advantages of using ANNs outweigh the risks.
• It can be implemented in any application.
Disadvantages:
• The neural network requires training to operate.
• Requires high processing time for large neural networks.
• The architecture of a neural network is different from the architecture and history of
microprocessors so they have to be emulated.
Applications of ANN
Brain modeling:
Aid our understanding of how the brain works, how behavior emerges from the interaction of
networks of neurons, what needs to “get fixed” in brain damaged patients .
Real world applications :
 Financial modeling – predicting the stock market
 Time series prediction – climate, weather, seizures
 Computer games – intelligent agents, chess, backgammon
 Robotics – autonomous adaptable robots
 Pattern recognition – speech recognition, seismic activity, sonar signals
 Data analysis – data compression, data mining
Learning by Training ANN
 Training a Neural Network means finding the appropriate Weights of the Neural
Connections.
 Once a network has been structured for a particular application, that network is ready to be
trained. To start this process the initial weights are chosen randomly. Then, the training, or
learning, begins.
 There are two approaches to training - supervised and unsupervised.
 Supervised training involves a mechanism of providing the network with the desired output
either by manually "grading" the network's performance or by providing the desired outputs
with the inputs.
 Unsupervised training is where the network has to make sense of the inputs without
outside help.
Supervised Training
In supervised training, both the inputs and the outputs are provided. The network then
processes the inputs and compares its resulting outputs against the desired outputs. Errors
are then propagated back through the system, causing the system to adjust the weights
which control the network. This process occurs over and over as the weights are
continually tweaked. The set of data which enables the training is called the "training set."
During the training of a network the same set of data is processed many times as the
connection weights are ever refined.
Learning by Training ANN
Unsupervised Training
The other type of training is called unsupervised training. In unsupervised training, the
network is provided with inputs but not with desired outputs. The system itself must then
decide what features it will use to group the input data. This is often referred to as self-
organization or adaption.
Learning by Training ANN
Learning by Training ANN
Learning by Training ANN
Learning by Training ANN
Perceptron Learning
 Learning a perceptron means finding the right values for Weight. The hypothesis space of
a perceptron is the space of all weight vectors.
 The perceptron learning algorithm can be stated as below.
1. Assign random values to the weight vector
2. Apply the weight update rule to every training example
3. Are all training examples correctly classified?
a. Yes. Quit
b. b. No. Go back to Step 2.
 There are two popular weight update rules.
i) The perceptron rule, and
ii) Delta rule
Perceptron Learning
Perceptron Learning
Perceptron Learning
Perceptron Learning
Perceptron Learning
Perceptron Learning
Perceptron Learning
For example of back propagation algorithm (see notes
provided in class)
Prepared By : Narayan Dhamala
54
END

More Related Content

What's hot

Classical relations and fuzzy relations
Classical relations and fuzzy relationsClassical relations and fuzzy relations
Classical relations and fuzzy relationsBaran Kaynak
 
Adversarial search
Adversarial searchAdversarial search
Adversarial searchNilu Desai
 
Informed and Uninformed search Strategies
Informed and Uninformed search StrategiesInformed and Uninformed search Strategies
Informed and Uninformed search StrategiesAmey Kerkar
 
Computational Intelligence and Applications
Computational Intelligence and ApplicationsComputational Intelligence and Applications
Computational Intelligence and ApplicationsChetan Kumar S
 
Fuzzy logic and application in AI
Fuzzy logic and application in AIFuzzy logic and application in AI
Fuzzy logic and application in AIIldar Nurgaliev
 
Artificial Intelligence Searching Techniques
Artificial Intelligence Searching TechniquesArtificial Intelligence Searching Techniques
Artificial Intelligence Searching TechniquesDr. C.V. Suresh Babu
 
Deep Reinforcement Learning
Deep Reinforcement LearningDeep Reinforcement Learning
Deep Reinforcement LearningUsman Qayyum
 
Fuzzy rules and fuzzy reasoning
Fuzzy rules and fuzzy reasoningFuzzy rules and fuzzy reasoning
Fuzzy rules and fuzzy reasoningVeni7
 
Learning rule of first order rules
Learning rule of first order rulesLearning rule of first order rules
Learning rule of first order rulesswapnac12
 
Fuzzy logic Notes AI CSE 8th Sem
Fuzzy logic Notes AI CSE 8th SemFuzzy logic Notes AI CSE 8th Sem
Fuzzy logic Notes AI CSE 8th SemDigiGurukul
 
An introduction to reinforcement learning
An introduction to reinforcement learningAn introduction to reinforcement learning
An introduction to reinforcement learningSubrat Panda, PhD
 

What's hot (20)

AI: Learning in AI
AI: Learning in AI AI: Learning in AI
AI: Learning in AI
 
AI: AI & Problem Solving
AI: AI & Problem SolvingAI: AI & Problem Solving
AI: AI & Problem Solving
 
Classical relations and fuzzy relations
Classical relations and fuzzy relationsClassical relations and fuzzy relations
Classical relations and fuzzy relations
 
Adversarial search
Adversarial searchAdversarial search
Adversarial search
 
Informed and Uninformed search Strategies
Informed and Uninformed search StrategiesInformed and Uninformed search Strategies
Informed and Uninformed search Strategies
 
Computational Intelligence and Applications
Computational Intelligence and ApplicationsComputational Intelligence and Applications
Computational Intelligence and Applications
 
Fuzzy logic and application in AI
Fuzzy logic and application in AIFuzzy logic and application in AI
Fuzzy logic and application in AI
 
Artificial Intelligence Searching Techniques
Artificial Intelligence Searching TechniquesArtificial Intelligence Searching Techniques
Artificial Intelligence Searching Techniques
 
Backpropagation algo
Backpropagation  algoBackpropagation  algo
Backpropagation algo
 
Deep Reinforcement Learning
Deep Reinforcement LearningDeep Reinforcement Learning
Deep Reinforcement Learning
 
Fuzzy rules and fuzzy reasoning
Fuzzy rules and fuzzy reasoningFuzzy rules and fuzzy reasoning
Fuzzy rules and fuzzy reasoning
 
Learning rule of first order rules
Learning rule of first order rulesLearning rule of first order rules
Learning rule of first order rules
 
Ethernet
EthernetEthernet
Ethernet
 
Fuzzy logic Notes AI CSE 8th Sem
Fuzzy logic Notes AI CSE 8th SemFuzzy logic Notes AI CSE 8th Sem
Fuzzy logic Notes AI CSE 8th Sem
 
Fuzzy logic
Fuzzy logicFuzzy logic
Fuzzy logic
 
Transport layer
Transport layer Transport layer
Transport layer
 
Agents1
Agents1Agents1
Agents1
 
Reasoning in AI
Reasoning in AIReasoning in AI
Reasoning in AI
 
Knowledge representation
Knowledge representationKnowledge representation
Knowledge representation
 
An introduction to reinforcement learning
An introduction to reinforcement learningAn introduction to reinforcement learning
An introduction to reinforcement learning
 

Similar to Machine Learning Guide for Artificial Intelligence Students

learning.ppt
learning.pptlearning.ppt
learning.pptBadWork
 
Intro to machine learning
Intro to machine learningIntro to machine learning
Intro to machine learningAkshay Kanchan
 
LearningAG.ppt
LearningAG.pptLearningAG.ppt
LearningAG.pptbutest
 
CSA 3702 machine learning module 1
CSA 3702 machine learning module 1CSA 3702 machine learning module 1
CSA 3702 machine learning module 1Nandhini S
 
machine learning algorithm.pptx
machine learning algorithm.pptxmachine learning algorithm.pptx
machine learning algorithm.pptxSasmitaDash28
 
Learning Methods in a Neural Network
Learning Methods in a Neural NetworkLearning Methods in a Neural Network
Learning Methods in a Neural NetworkSaransh Choudhary
 
AI_06_Machine Learning.pptx
AI_06_Machine Learning.pptxAI_06_Machine Learning.pptx
AI_06_Machine Learning.pptxYousef Aburawi
 
Cognitive Science Unit 4
Cognitive Science Unit 4Cognitive Science Unit 4
Cognitive Science Unit 4CSITSansar
 
nncollovcapaldo2013-131220052427-phpapp01.pdf
nncollovcapaldo2013-131220052427-phpapp01.pdfnncollovcapaldo2013-131220052427-phpapp01.pdf
nncollovcapaldo2013-131220052427-phpapp01.pdfGayathriRHICETCSESTA
 
nncollovcapaldo2013-131220052427-phpapp01.pdf
nncollovcapaldo2013-131220052427-phpapp01.pdfnncollovcapaldo2013-131220052427-phpapp01.pdf
nncollovcapaldo2013-131220052427-phpapp01.pdfGayathriRHICETCSESTA
 
Machine Learning an Exploratory Tool: Key Concepts
Machine Learning an Exploratory Tool: Key ConceptsMachine Learning an Exploratory Tool: Key Concepts
Machine Learning an Exploratory Tool: Key Conceptsachakracu
 
Artificial Intelligence Approaches
Artificial Intelligence  ApproachesArtificial Intelligence  Approaches
Artificial Intelligence ApproachesJincy Nelson
 
Chapter 6 - Learning data and analytics course
Chapter 6 - Learning data and analytics courseChapter 6 - Learning data and analytics course
Chapter 6 - Learning data and analytics coursegideymichael
 
EssentialsOfMachineLearning.pdf
EssentialsOfMachineLearning.pdfEssentialsOfMachineLearning.pdf
EssentialsOfMachineLearning.pdfAnkita Tiwari
 
Artificial_Neural_Network.pdf
Artificial_Neural_Network.pdfArtificial_Neural_Network.pdf
Artificial_Neural_Network.pdfssuser136534
 
32_Nov07_MachineLear..
32_Nov07_MachineLear..32_Nov07_MachineLear..
32_Nov07_MachineLear..butest
 

Similar to Machine Learning Guide for Artificial Intelligence Students (20)

learning.ppt
learning.pptlearning.ppt
learning.ppt
 
Intro to machine learning
Intro to machine learningIntro to machine learning
Intro to machine learning
 
LearningAG.ppt
LearningAG.pptLearningAG.ppt
LearningAG.ppt
 
CSA 3702 machine learning module 1
CSA 3702 machine learning module 1CSA 3702 machine learning module 1
CSA 3702 machine learning module 1
 
machine learning algorithm.pptx
machine learning algorithm.pptxmachine learning algorithm.pptx
machine learning algorithm.pptx
 
Learning Methods in a Neural Network
Learning Methods in a Neural NetworkLearning Methods in a Neural Network
Learning Methods in a Neural Network
 
Lec 18-19.pptx
Lec 18-19.pptxLec 18-19.pptx
Lec 18-19.pptx
 
AI_06_Machine Learning.pptx
AI_06_Machine Learning.pptxAI_06_Machine Learning.pptx
AI_06_Machine Learning.pptx
 
Cognitive Science Unit 4
Cognitive Science Unit 4Cognitive Science Unit 4
Cognitive Science Unit 4
 
Learning in AI
Learning in AILearning in AI
Learning in AI
 
nncollovcapaldo2013-131220052427-phpapp01.pdf
nncollovcapaldo2013-131220052427-phpapp01.pdfnncollovcapaldo2013-131220052427-phpapp01.pdf
nncollovcapaldo2013-131220052427-phpapp01.pdf
 
nncollovcapaldo2013-131220052427-phpapp01.pdf
nncollovcapaldo2013-131220052427-phpapp01.pdfnncollovcapaldo2013-131220052427-phpapp01.pdf
nncollovcapaldo2013-131220052427-phpapp01.pdf
 
Machine Learning an Exploratory Tool: Key Concepts
Machine Learning an Exploratory Tool: Key ConceptsMachine Learning an Exploratory Tool: Key Concepts
Machine Learning an Exploratory Tool: Key Concepts
 
Artificial Intelligence Approaches
Artificial Intelligence  ApproachesArtificial Intelligence  Approaches
Artificial Intelligence Approaches
 
Introduction to machine learning
Introduction to machine learningIntroduction to machine learning
Introduction to machine learning
 
Machine Learning - Deep Learning
Machine Learning - Deep LearningMachine Learning - Deep Learning
Machine Learning - Deep Learning
 
Chapter 6 - Learning data and analytics course
Chapter 6 - Learning data and analytics courseChapter 6 - Learning data and analytics course
Chapter 6 - Learning data and analytics course
 
EssentialsOfMachineLearning.pdf
EssentialsOfMachineLearning.pdfEssentialsOfMachineLearning.pdf
EssentialsOfMachineLearning.pdf
 
Artificial_Neural_Network.pdf
Artificial_Neural_Network.pdfArtificial_Neural_Network.pdf
Artificial_Neural_Network.pdf
 
32_Nov07_MachineLear..
32_Nov07_MachineLear..32_Nov07_MachineLear..
32_Nov07_MachineLear..
 

Recently uploaded

THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTIONTHE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTIONjhunlian
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxk795866
 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...Chandu841456
 
System Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingSystem Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingBootNeck1
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfROCENODodongVILLACER
 
Solving The Right Triangles PowerPoint 2.ppt
Solving The Right Triangles PowerPoint 2.pptSolving The Right Triangles PowerPoint 2.ppt
Solving The Right Triangles PowerPoint 2.pptJasonTagapanGulla
 
Steel Structures - Building technology.pptx
Steel Structures - Building technology.pptxSteel Structures - Building technology.pptx
Steel Structures - Building technology.pptxNikhil Raut
 
Indian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.pptIndian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.pptMadan Karki
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
The SRE Report 2024 - Great Findings for the teams
The SRE Report 2024 - Great Findings for the teamsThe SRE Report 2024 - Great Findings for the teams
The SRE Report 2024 - Great Findings for the teamsDILIPKUMARMONDAL6
 
Input Output Management in Operating System
Input Output Management in Operating SystemInput Output Management in Operating System
Input Output Management in Operating SystemRashmi Bhat
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girlsssuser7cb4ff
 
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncWhy does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncssuser2ae721
 
Vishratwadi & Ghorpadi Bridge Tender documents
Vishratwadi & Ghorpadi Bridge Tender documentsVishratwadi & Ghorpadi Bridge Tender documents
Vishratwadi & Ghorpadi Bridge Tender documentsSachinPawar510423
 
Industrial Safety Unit-I SAFETY TERMINOLOGIES
Industrial Safety Unit-I SAFETY TERMINOLOGIESIndustrial Safety Unit-I SAFETY TERMINOLOGIES
Industrial Safety Unit-I SAFETY TERMINOLOGIESNarmatha D
 
Earthing details of Electrical Substation
Earthing details of Electrical SubstationEarthing details of Electrical Substation
Earthing details of Electrical Substationstephanwindworld
 
NO1 Certified Black Magic Specialist Expert Amil baba in Uae Dubai Abu Dhabi ...
NO1 Certified Black Magic Specialist Expert Amil baba in Uae Dubai Abu Dhabi ...NO1 Certified Black Magic Specialist Expert Amil baba in Uae Dubai Abu Dhabi ...
NO1 Certified Black Magic Specialist Expert Amil baba in Uae Dubai Abu Dhabi ...Amil Baba Dawood bangali
 
Energy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxEnergy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxsiddharthjain2303
 

Recently uploaded (20)

THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTIONTHE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptx
 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...
 
System Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event SchedulingSystem Simulation and Modelling with types and Event Scheduling
System Simulation and Modelling with types and Event Scheduling
 
Risk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdfRisk Assessment For Installation of Drainage Pipes.pdf
Risk Assessment For Installation of Drainage Pipes.pdf
 
Solving The Right Triangles PowerPoint 2.ppt
Solving The Right Triangles PowerPoint 2.pptSolving The Right Triangles PowerPoint 2.ppt
Solving The Right Triangles PowerPoint 2.ppt
 
Steel Structures - Building technology.pptx
Steel Structures - Building technology.pptxSteel Structures - Building technology.pptx
Steel Structures - Building technology.pptx
 
Indian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.pptIndian Dairy Industry Present Status and.ppt
Indian Dairy Industry Present Status and.ppt
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
The SRE Report 2024 - Great Findings for the teams
The SRE Report 2024 - Great Findings for the teamsThe SRE Report 2024 - Great Findings for the teams
The SRE Report 2024 - Great Findings for the teams
 
Input Output Management in Operating System
Input Output Management in Operating SystemInput Output Management in Operating System
Input Output Management in Operating System
 
Call Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call GirlsCall Girls Narol 7397865700 Independent Call Girls
Call Girls Narol 7397865700 Independent Call Girls
 
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsyncWhy does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
Why does (not) Kafka need fsync: Eliminating tail latency spikes caused by fsync
 
Vishratwadi & Ghorpadi Bridge Tender documents
Vishratwadi & Ghorpadi Bridge Tender documentsVishratwadi & Ghorpadi Bridge Tender documents
Vishratwadi & Ghorpadi Bridge Tender documents
 
Industrial Safety Unit-I SAFETY TERMINOLOGIES
Industrial Safety Unit-I SAFETY TERMINOLOGIESIndustrial Safety Unit-I SAFETY TERMINOLOGIES
Industrial Safety Unit-I SAFETY TERMINOLOGIES
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
Earthing details of Electrical Substation
Earthing details of Electrical SubstationEarthing details of Electrical Substation
Earthing details of Electrical Substation
 
NO1 Certified Black Magic Specialist Expert Amil baba in Uae Dubai Abu Dhabi ...
NO1 Certified Black Magic Specialist Expert Amil baba in Uae Dubai Abu Dhabi ...NO1 Certified Black Magic Specialist Expert Amil baba in Uae Dubai Abu Dhabi ...
NO1 Certified Black Magic Specialist Expert Amil baba in Uae Dubai Abu Dhabi ...
 
young call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Serviceyoung call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Service
 
Energy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptxEnergy Awareness training ppt for manufacturing process.pptx
Energy Awareness training ppt for manufacturing process.pptx
 

Machine Learning Guide for Artificial Intelligence Students

  • 1. Artificial Intelligence (CSIT 4th Sem) Unit:5 Machine Learning Prepared By : Narayan Dhamala 1
  • 2. Introduction to Machine Learning Prepared By : Narayan Dhamala  Machine learning is the study of computer system that learn from data and experience.  Machine learning is subfield of artificial intelligence which gives the computer ability to learn without being explicitly programmed.  The goal of machine learning is to build computer system that can adapt and learn from their experience.  A computer program is said to be learn if it‟s performance P improves over a task T with an experience E. 2
  • 3. Concept of Learning Prepared By : Narayan Dhamala  Learning is a way of updating the knowledge.  Learning is making useful changes in our mind.  Learning is constructing or modifying representations of what is being experienced.  Learning denotes changes in the system that are adaptive in the sense that they enable the system to do the same task (or tasks drawn from the same population) more effectively the next time. 3
  • 4. Types of Learning Prepared By : Narayan Dhamala The strategies for learning can be classified according to the amount of inference the system has to perform on its training data. In increasing order we have 1. Rote learning – the new knowledge is implanted directly with no inference at all, e.g. simple memorization of past events, or a knowledge engineer‟s direct programming of rules elicited from a human expert into an expert system. 2. Supervised learning – the system is supplied with a set of training examples consisting of inputs and corresponding outputs, and is required to discover the relation or mapping between then, e.g. as a series of rules, or a neural network. 3. Unsupervised learning – the system is supplied with a set of training examples consisting only of inputs and is required to discover for itself what appropriate outputs should be, e.g. a Kohonen Network or Self Organizing Map. 4. Reinforcement learning- Is concerned with how intelligent agents ought to act in an environment to maximize some notion of reward from sequence of actions. 4
  • 5. Prepared By : Narayan Dhamala 5
  • 6. Prepared By : Narayan Dhamala 6
  • 7. Learning Framework Prepared By : Narayan Dhamala 7 • There are four major components in a learning system: Environment Learning Element Performance Element Knowledge Base
  • 8. Learning Framework: The Environment Prepared By : Narayan Dhamala • 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 wrt 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 8
  • 9. Learning Framework: Learning Elements Prepared By : Narayan Dhamala • Four learning situations – Rote Learning • environment provides information at the required level – Learning by being told • information is too abstract, the learning element must hypothesize missing data – Learning by example • information is too specific, the learning element must hypothesize more general rules – Learning by analogy • information provided is relevant only to an analogous task, the learning element must discover the analogy 9
  • 10. Learning Framework: Learning Elements Prepared By : Narayan Dhamala • Four learning situations – Rote Learning • environment provides information at the required level – Learning by being told • information is too abstract, the learning element must hypothesize missing data – Learning by example • information is too specific, the learning element must hypothesize more general rules – Learning by analogy • information provided is relevant only to an analogous task, the learning element must discover the analogy 10
  • 11. Learning Framework: The Knowledge Base Prepared By : Narayan Dhamala • Expressive – the representation contains the relevant knowledge in an easy to get to fashion • Modifiable – it must be easy to change the data in the knowledge base • Extendibility – the knowledge base must contain meta-knowledge (knowledge on how the data base is structured) so the system can change its structure 11
  • 12. Learning Framework: The Performance Element Prepared By : Narayan Dhamala • Complexity – for learning, the simplest task is classification based on a single rule while the most complex task requires the application of multiple rules in sequence • Feedback – the performance element must send information to the learning system to be used to evaluate the overall performance • Transparency – the learning element should have access to all the internal actions of the performance element 12
  • 13. Statistical Based Learning: Naïve Bayes Model Prepared By : Narayan Dhamala • Statistical Learning is a set of tools for understanding data. These tools broadly come under two classes: supervised learning & unsupervised learning. • Generally, supervised learning refers to predicting or estimating an output based on one or more inputs. • Unsupervised learning, on the other hand, provides a relationship or finds a pattern within the given data without a supervised output. 13
  • 14. BAYESIAN METHODS • Learning and classification (Supervised learning) method based on probability theory. • Baye‟s theorem plays a critical role in probabilistic learning and classification. • Uses prior probability of each category given no information about an item. • Categorization produces a posterior probability distribution over the possible categories given a description of an item. P(A|B) =
  • 15. BAYESIAN METHODS... D = AFTER TRAINING Size<small, medium, large> Color<red, blue, green> Shape<circle, triangle, square> Category<positive, negative>
  • 17. Naïve Bayesian Classifier: Training Dataset Class: C1:buys_computer = „yes‟ C2:buys_computer = „no‟ Data sample X = (age <=30, Income = medium, Student = yes Credit_rating = Fair)
  • 18. Naïve Bayesian Classifier: An Example • P(Ci): P(buys_computer = “yes”) = 9/14 = 0.643 P(buys_computer = “no”) = 5/14= 0.357 • Compute P(X|Ci) for each class P(age = “<=30” | buys_computer = “yes”) = 2/9 = 0.222 P(age = “<= 30” | buys_computer = “no”) = 3/5 = 0.6 P(income = “medium” | buys_computer = “yes”) = 4/9 = 0.444 P(income = “medium” | buys_computer = “no”) = 2/5 = 0.4 P(student = “yes” | buys_computer = “yes) = 6/9 = 0.667 P(student = “yes” | buys_computer = “no”) = 1/5 = 0.2 P(credit_rating = “fair” | buys_computer = “yes”) = 6/9 = 0.667 P(credit_rating = “fair” | buys_computer = “no”) = 2/5 = 0.4 • X = (age <= 30 , income = medium, student = yes, credit_rating = fair) P(X|Ci) : P(X|buys_computer = “yes”) = 0.222 x 0.444 x 0.667 x 0.667 = 0.044 P(X|buys_computer = “no”) = 0.6 x 0.4 x 0.2 x 0.4 = 0.019 P(X|Ci)*P(Ci) : P(X|buys_computer = “yes”) * P(buys_computer = “yes”) = 0.028 P(X|buys_computer = “no”) * P(buys_computer = “no”) = 0.007 Therefore, X belongs to class (“buys_computer = yes”)
  • 19. Learning by genetic algorithm Genetic algorithm is an evolutionary algorithm which is based on the principle of natural selection and natural genetics. Genetic algorithm plays an important role in search and optimization problem. The main purpose of genetic algorithm is to find the individuals from the search space with the best genetic materials. The genetic algorithm process consists of following 4 steps: 1) Encoding (Representation) 2) Selection 3) Crossover & 4) Mutation
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26. Learning by Neural Networks Neural Network  A neural network( also called artificial neural network) is a computing system made up of a number of simple, highly interconnected processing elements, which process information by their dynamic state response to external inputs.  An artificial neural network is an information processing paradigm that is inspired by biological nervous system.  It is composed of large number of highly interconnected processing elements called neurons.  Each neuron in ANN receives a number of inputs.  An activation function is applied to these inputs which results the output value of the neuron.
  • 27. Learning by Neural Networks Biological neural network vs Artificial neural network  The term "Artificial Neural Network" is derived from Biological neural networks that develop the structure of a human brain. Similar to the human brain that has neurons interconnected to one another, artificial neural networks also have neurons that are interconnected to one another in various layers of the networks. These neurons are known as nodes.  Dendrites from Biological Neural Network represent inputs in Artificial Neural Networks, cell nucleus represents Nodes, synapse represents Weights, and Axon represents Output.
  • 28. Learning by Neural Networks Biological neural network vs Artificial neural network  The Relationship between Biological neural network and artificial neural network is as follows
  • 29. Learning by Neural Networks
  • 33. Types of ANN  The different types of ANN are as follows 1) Feed Forward ANN  Feed forward neural network is the simplest form of neural networks where input data travels in one direction only, passing through artificial neural nodes and exiting through output nodes.  The feed forward neural network does not contain loop or cycle.  In feed forward neural network, the hidden layers may or may not be present but the input and output layers are present there.  Based on this, they can be further classified as a single-layered or multi-layered feed- forward neural network.
  • 35. Types of ANN Note: • Single Layer Perceptron – This is the simplest feed forward neural network which does not contain any hidden layer. • Multi Layer Perceptron – A Multi Layer Perceptron has one or more hidden layers. Advantages of Feed forward Neural Network • Less complex, easy to design & maintain • Fast and speedy [One-way propagation] • Highly responsive to noisy data Dis-advantages of Feed forward Neural Network  Cannot be used for deep learning [due to absence of dense layers and back propagation]
  • 36. Types of ANN 2) Recurrent (Feed back)Neural Network  Recurrent neural network is a type of neural network in which the output from the previous steps are feed as input to the current step.  The recurrent neural network contains loop or cycle.  The main and most important feature of RNN is Hidden state, which remembers some information about a sequence.
  • 37. Types of ANN Advantages of Recurrent Neural Networks • Model sequential data where each sample can be assumed to be dependent on historical ones is one of the advantage. • Used with convolution layers to extend the pixel effectiveness. Disadvantages of Recurrent Neural Networks • Training recurrent neural nets could be a difficult task • Difficult to process long sequential data using ReLU(rectified linear ) as an activation function.
  • 38. Advantages and Dis-advantages of Neural Network Advantages: • A neural network can perform tasks in parallel,which a linear program cannot perform. • When an element of the neural network fails, it can continue without any problem by their parallel nature. • A neural network does not need to be reprogrammed as it learns itself. • It can be implemented in an easy way without any problem. • As adaptive, intelligent systems, neural networks are robust and excel at solving complex problems. Neural networks are efficient in their programming and the scientists agree that the advantages of using ANNs outweigh the risks. • It can be implemented in any application. Disadvantages: • The neural network requires training to operate. • Requires high processing time for large neural networks. • The architecture of a neural network is different from the architecture and history of microprocessors so they have to be emulated.
  • 39. Applications of ANN Brain modeling: Aid our understanding of how the brain works, how behavior emerges from the interaction of networks of neurons, what needs to “get fixed” in brain damaged patients . Real world applications :  Financial modeling – predicting the stock market  Time series prediction – climate, weather, seizures  Computer games – intelligent agents, chess, backgammon  Robotics – autonomous adaptable robots  Pattern recognition – speech recognition, seismic activity, sonar signals  Data analysis – data compression, data mining
  • 40. Learning by Training ANN  Training a Neural Network means finding the appropriate Weights of the Neural Connections.  Once a network has been structured for a particular application, that network is ready to be trained. To start this process the initial weights are chosen randomly. Then, the training, or learning, begins.  There are two approaches to training - supervised and unsupervised.  Supervised training involves a mechanism of providing the network with the desired output either by manually "grading" the network's performance or by providing the desired outputs with the inputs.  Unsupervised training is where the network has to make sense of the inputs without outside help. Supervised Training In supervised training, both the inputs and the outputs are provided. The network then processes the inputs and compares its resulting outputs against the desired outputs. Errors are then propagated back through the system, causing the system to adjust the weights which control the network. This process occurs over and over as the weights are continually tweaked. The set of data which enables the training is called the "training set." During the training of a network the same set of data is processed many times as the connection weights are ever refined.
  • 41. Learning by Training ANN Unsupervised Training The other type of training is called unsupervised training. In unsupervised training, the network is provided with inputs but not with desired outputs. The system itself must then decide what features it will use to group the input data. This is often referred to as self- organization or adaption.
  • 46. Perceptron Learning  Learning a perceptron means finding the right values for Weight. The hypothesis space of a perceptron is the space of all weight vectors.  The perceptron learning algorithm can be stated as below. 1. Assign random values to the weight vector 2. Apply the weight update rule to every training example 3. Are all training examples correctly classified? a. Yes. Quit b. b. No. Go back to Step 2.  There are two popular weight update rules. i) The perceptron rule, and ii) Delta rule
  • 54. For example of back propagation algorithm (see notes provided in class) Prepared By : Narayan Dhamala 54 END