Introduction to Artificial Intelligence
By:
Dr. Mohammad Shoab
Week 9 & 10
Forms of Learning
Any component of an agent can be improved by learning from data. The improvements, and the techniques used to make them, depend on four major factors:
Introduction to Artificial Intelligence
Department of Computer Science
Machine Learning
Introduction to Artificial Intelligence
Department of Computer Science
Machine Learning is Used When
Introduction to Artificial Intelligence
Department of Computer Science
What is Meant by Learning?
Data from Past
Experiences
Calculating a model
Estimating the output
for new input values
Introduction to Artificial Intelligence
Department of Computer Science
Challenges of Machine Learning
High Dimensionality
Choice of Statistical Model
Introduction to Artificial Intelligence
Department of Computer Science
Cont…
Noise and Errors
Introduction to Artificial Intelligence
Department of Computer Science
Cont…
Insufficient Training Data: The amount of data is not sufficient to build a good approximation of the process that generated the data.
Feature Extraction in Patterns: Feature extraction is the process of converting the data to a reduced representation of a set of features.
Image Reference:
Face Verification
Introduction to Artificial Intelligence
Department of Computer Science
Learning Types
Introduction to Artificial Intelligence
Department of Computer Science
Supervised Learning
Introduction to Artificial Intelligence
Department of Computer Science
Linear Regression
Input: {x1, x2,…, xn} numeric values, called features
Output: y numeric values, called Target Value
Introduction to Artificial Intelligence
Department of Computer Science
Cont…
The equation for basic linear regression can be written as so:
Where x[i] is the feature(s) for the data and where w[i] and b are parameters which are developed during training.
For simple linear regression models with only one feature in the data, the formula looks like this:
Where w is the slope, x is the single feature and b is the y-intercept.
Introduction to Artificial Intelligence
Department of Computer Science
Classification
Input: {x1, x2,…, xn} categorical values, called features
Output: y categorical values, called Target Value
Introduction to Artificial Intelligence
Department of Computer Science
Types of Classification
Introduction to Artificial Intelligence
Department of Computer Science
Decision Tree
Introduction to Artificial Intelligence
Department of Computer Science
Cont…
Introduction to Artificial Intelligence
Department of Computer Science
Cont…
Example:
Introduction to Artificial Intelligence
Department of Computer Science
Types of Decision Tree
Introduction to Artificial Intelligence
Department of Computer Science
Artificial Neural Network
Introduction to Artificial Intelligence
Department of Computer Science
Cont…
Introduction to Artificial Intelligence
Department of Computer Science
Examples of Machine Learning in Real-World
Introduction to Artificial Intelligence
Department of Computer Science
The End
22
Introduction to Artificial Intelligence
Department of Computer Science
Exercise
Q1. Explain forms of learning.
Q2. What is machine learning?
Q3. Write some situations when we use machine learning.
Q4. Explain challenges of machine learning.
Q5. What is supervised learning?
Q6. Explain linear regression.
Q7. What is classification? Explain it’s types.
Q8. Explain decision tree with it’s types.
Q9. What is artificial neural network? Draw it’s diagram.
Q10. Write some examples of machine learning in real world.
23
Introduction to Artificial Intelligence
Department of Computer Science
Q11. Any component of an agent can be improved by learning from
Q12. Machine learning focuses on the development of
24
Introduction to Artificial Intelligence
Department of Computer Science
Q13. Supervised machine learning algorithms are designed to learn by
Q14. The goal of a regression algorithm is to predict a
25
Introduction to Artificial Intelligence
Department of Computer Science
Q15. Decision Trees are a type of
Q16. Having more hidden layers in ANN will enable to model
Introduction to Artificial Intelligence
Department of Computer Science