UNIT 4- AI
UNIT 4- AI
The domain model defines the actions along with the objects. It is necessary to
specify the operators too that actually describe the action. Along with this,
information about actions and state constraints while acting should also be given.
This entirely formulates the domain model.
The initial state is the state where any action is yet to take place (the stage when
the exam schedule is put up!).
The final state or the goal state is the state which the plan is intended to achieve.
• Sometimes, Effects are split into ADD list and DELETE list
• STRIPS
• Stanford Research Institute Problem Solver
• Historically important
• ADL
• Action Description Languages
• PDDL
• Planning Domain Definition Language
• Goal State:
Preconditions:
Holding(A) Pickup(A)
Clear(B)
Preconditions:
Arm Empty
On(A, Table)
Clear(A)
• Solution:
• To solve the above problem, first find the differences between initial states and goal states, and for each difference, generate a new state and will apply the operators. The operators we have for this problem are:
• Move
• Delete
• Expand
Machine Learning
Machine learning is building and exploring of methods for programming computer to
make them Learn.
• Rote learning
• Learning from observations
• Supervised learning
• unsupervised learning
• semi-supervised learning
• ensemble learning
• Discovery based learning
• Learning by problem solving
•An agent is defined the computational entity which is capable of receiving the
environment and can act based on the situation.
•The agent is composed of learning element performance element and a curiosity
element.
•Based on the coordination between these elements the outcome of the agents
behaviour is measured.
5. Travel back from the output layer to the hidden layer to adjust the weights such that the error is
decreased.
Forward pass:
computes ‘functional signal’, feed forward propagation
of input pattern signals through network
Backward pass phase:
computes ‘error signal’, propagates the error backwards
through network starting at output units (where the
error is the difference between actual and desired
output values)
🡪they can represent non-linear functions and they have an efficient training
algorithm
• In order to classify a dataset like the one above it’s necessary to move
away from a 2d view of the data to a 3d view. Explaining this is easiest
with another simplified example. Imagine that our two sets of colored
balls above are sitting on a sheet and this sheet is lifted suddenly,
launching the balls into the air. While the balls are up in the air, you use
the sheet to separate them. This ‘lifting’ of the balls represents the
mapping of data into a higher dimension. This is known as kernelling.
• Some of you may have selected the hyper-plane B as it has higher margin
compared to A. But, here is the catch, SVM selects the hyperplane which
classifies the classes accurately prior to maximizing margin. Here,
hyperplane B has a classification error and A has classified all correctly.
Therefore, the right hyperplane is A.
• We are unable to segregate the two classes using a straight line, as one of star lies in the territory
of other (circle) class as an outlier.
• One star at other end is like an outlier for star class. SVM has a feature to ignore outliers and find
the hyperplane that has maximum margin. Hence, we can say, SVM is robust to outliers.
• Many decision
Class
2
boundaries can
separate these two
classes
• Which one should
we choose?
Class
1
Class Class
2 2
Class Class
1 1
Support vectors
datapoints that the margin
pushes up against
Class
2
The maximum margin linear
classifier is the linear classifier
Class
m with the maximum margin.
This is the simplest kind of
1 SVM (Called an Linear SVM)
99