SlideShare a Scribd company logo
Introduction to machine learning BY miss saba sumreen
What is machine learning?
How many people heard, know and using about machine learning?
Hebert Alexander simon:
 ”learning is any process by which a system improves performance from experience”
 “machine learning is concerned with computer programs that automatically improve their
performance through experience”. The emphasis of machine learning is on automatic
methods. In other words, the goal is to devise learning algorithms that do the learning
automatically without human intervention or assistance. The machine learning paradigm
can be viewed as “programming by example.” Often we have a specific task in mind,
such as spam filtering. But rather than program the computer to solve the task directly, in
machine learning, we seek methods by which the computer will come up with its own
program based on examples that we provide. Machine learning is a core subarea of
artificial intelligence. It is very unlikely that we will be able to build any kind of
intelligent system capable of any of the facilities that we associate with intelligence, such
as language or vision, without using learning to get there. These tasks are otherwise
simply too difficult to solve. Further, we would not consider a system to be truly
intelligent if it were incapable of learning since learning is at the core of intelligence.
Although a subarea of AI, machine learning also intersects broadly with other fields,
especially statistics, but also mathematics, physics, theoretical computer science and
more.
Examples of Machine Learning Problems
There are many examples of machine learning problems. Much of this course will focus on
classification problems in which the goal is to categorize objects into a fixed set of
categories. Here are several examples:
optical character recognition: categorize images of handwritten characters by the letters
represented • face detection: find faces in images (or indicate if a face is present)
spam filtering: identify email messages as spam or non-spam
topic spotting: categorize news articles (say) as to whether they are about politics, sports,
entertainment, etc
spoken language understanding: within the context of a limited domain, determine the
meaning of something uttered by a speaker to the extent that it can be classified into one of a
fixed set of categories
medical diagnosis: diagnose a patient as a sufferer or non-sufferer of some disease
customer segmentation: predict, for instance, which customers will respond to a particular
promotion
fraud detection: identify credit card transactions (for instance) which may be fraudulent in
nature
weather prediction: predict, for instance, whether or not it will rain tomorrow (In this last
case, we most likely would actually be more interested in estimating the probability of rain
tomorrow.) Although much of what we will talk about will be about classification problems,
there are other important learning problems. In classification, we want to categorize objects
into fixed categories. In regression, on the other hand, we are trying to predict a real value.
For instance, we may wish to predict how much it will rain tomorrow. Or, we might want to
predict how much a house will sell for.
A richer learning scenario is one in which the goal is actually to behave intelligently, or to
make intelligent decisions. For instance, a robot needs to learn to navigate through its
environment without colliding with anything. To use machine learning to make money on the
stock market, we might treat investment as a classification problem (will the stock go up or
down) or a regression problem (how much will the stock go up), or, dispensing with these
intermediate goals, we might want the computer to learn directly how to decide to make
investments so as to maximize wealth. A final example is game playing where the goal is for
the computer to learn to play well through experience.
Learning Models
To study machine learning mathematically, we need to formally define the learning problem.
This precise definition is called a learning model. A learning model should be rich enough to
capture important aspects of real learning problems, but simple enough to study the problem
mathematically. As with any mathematical model, simplifying assumptions are unavoidable.
A learning model should answer several questions:
• What is being learned?
• How is the data being generated? In other words, where does it come from?
• How is the data presented to the learner? For instance, does the learner see all the data at
once, or only one example at a time?
• What is the goal of learning in this model
3 Intelligent agents
In computer science, a software agent is a computer program that acts for a user or
other program in a relationship of agency, which derives from the Latin agere (to do): an
agreement to act on one's behalf. Such "action on behalf of" implies the authority to
decide which, if any, action is appropriate.
 Agents include humans, robots, softbots, thermostats, etc.
 The agent function maps from percept histories to actions: f : P∗ → A
 The agent program runs on the physical architecture to produce f
An agent is anything that can perceive its environment through sensors and acts upon that
environment through effectors.
 A human agent has sensory organs such as eyes, ears, nose, tongue and skin parallel to
the sensors, and other organs such as hands, legs, mouth, for effectors.
 A robotic agent replaces cameras and infrared range finders for the sensors, and various
motors and actuators for effectors.
 A software agent has encoded bit strings as its programs and actions
Rationality
Rationality is nothing but status of being reasonable, sensible, and having good sense of
judgment.
Rationality is concerned with expected actions and results depending upon what the agent
has perceived. Performing actions with the aim of obtaining useful information is an important
part of rationality.
PEAS
To design a rational agent, we must specify the task environment
Consider, e.g., the task of designing an automated taxi:
Performance measure?? safety, destination, profits, legality, comfort, ...
Environment?? US streets/freeways, traffic, pedestrians, weather, ...
Actuators?? steering, accelerator, brake, horn, speaker/display, ...
Sensors?? video, accelerometers, gauges, engine sensors, keyboard, GPS, ...
Internet shopping agent
Performance measure?? price, quality, appropriateness, efficiency
Environment?? current and future WWW sites, vendors, shippers
Actuators?? display to user, follow URL, fill in form
Sensors?? HTML pages (text, graphics, scripts)
Vacuum-cleaner world:
Consider a Vacuum cleaner world
Imagine that our intelligent agent is a robot vacuum cleaner.
Let's suppose that the world has just two rooms. The robot can be in either room and there can be
dirt in zero, one, or two rooms.
Goal formulation: intuitively, we want all the dirt cleaned up. Formally, the goal is
{ state 7, state 8 }.
Percepts: location and contents, e.g., [A,Dirty]
Actions: Left, Right, Suck, NoOp
A vacuum-cleaner agent
Percept sequence Action
[A,Clean] Right
[A,Dirty] Suck
[B,Clean] Left
[B,Dirty] Suck
[A,Clean], [A,Clean] Right
[A,Clean], [A,Dirty] Suck . . . . .
function Reflex-Vacuum-Agent([location,status]) returns an action
if status = Dirty then return Suck
else if location = A then return Right
else if location = B then return Left
Properties ofEnvironment
The environment has multifold properties −
 Discrete / Continuous − If there are a limited number of distinct, clearly defined, states
of the environment, the environment is discrete (For example, chess); otherwise it is
continuous (For example, driving).
 Observable / Partially Observable − If it is possible to determine the complete state of
the environment at each time point from the percepts it is observable; otherwise it is
only partially observable.
 Static / Dynamic − If the environment does not change while an agent is acting, then it
is static; otherwise it is dynamic.
 Single agent / Multiple agents − The environment may contain other agents which may
be of the same or different kind as that of the agent.
 Accessible / Inaccessible − If the agent’s sensory apparatus can have access to the
complete state of the environment, then the environment is accessible to that agent.
 Deterministic / Non-deterministic − If the next state of the environment is completely
determined by the current state and the actions of the agent, then the environment is
deterministic; otherwise it is non-deterministic.
 Episodic / Non-episodic − In an episodic environment, each episode consists of the
agent perceiving and then acting. The quality of its action depends just on the episode
itself. Subsequent episodes do not depend on the actions in the previous episodes.
Episodic environments are much simpler because the agent does not need to think
ahead.
Solitaire Backgammon Internet shopping Taxi
Observable?? Yes Yes No No
Deterministic?? Yes No Partly No
Episodic?? No No No No
Static?? Yes Semi Semi No
Discrete?? Yes Yes Yes No
Single-agent?? Yes No Yes (except auctions) No
Lecture 6:
Agent types
Four basic types in order of increasing generality: –
 simple reflex agents
 reflex agents with state
 goal-based agents
 utility-based agents
All these can be turned into learning agents
Simple Reflex Agents
 They choose actions only based on the current percept.
 They are rational only if a correct decision is made only on the basis of current precept.
 Their environment is completely observable.
Condition-Action Rule − It is a rule that maps a state (condition) to an action.
Model BasedReflex Agents
They use a model of the world to choose their actions. They maintain an internal state.
Model − The knowledge about how the things happen in the world.
Internal State − It is a representation of unobserved aspects of current state depending on
percept history.
Updating the state requires the information about −
 How the world evolves.
 How the agent’s actions affect the world.
Goal BasedAgents
They choose their actions in order to achieve goals. Goal-based approach is more flexible than
reflex agent since the knowledge supporting a decision is explicitly modeled, thereby allowing
for modifications.
Goal − It is the description of desirable situations.
Utility BasedAgents
They choose actions based on a preference (utility) for each state. Goals are inadequate when −
 There are conflicting goals, out of which only few can be achieved.
 Goals have some uncertainty of being achieved and you need to weigh likelihood of
success against the importance of a goal.
introduction to machine learning

More Related Content

What's hot

Ai 02 intelligent_agents(1)
Ai 02 intelligent_agents(1)Ai 02 intelligent_agents(1)
Ai 02 intelligent_agents(1)
Mohammed Romi
 
Artificial Intelligence Chapter two agents
Artificial Intelligence Chapter two agentsArtificial Intelligence Chapter two agents
Artificial Intelligence Chapter two agentsEhsan Nowrouzi
 
Artificial intelligence(03)
Artificial intelligence(03)Artificial intelligence(03)
Artificial intelligence(03)
Nazir Ahmed
 
1.introduction to ai
1.introduction to ai1.introduction to ai
1.introduction to ai
KONGU ENGINEERING COLLEGE
 
Aritificial intelligence
Aritificial intelligenceAritificial intelligence
Aritificial intelligence
Dr. Jasmine Beulah Gnanadurai
 
AI Lecture 2 (intelligent agents)
AI Lecture 2 (intelligent agents)AI Lecture 2 (intelligent agents)
AI Lecture 2 (intelligent agents)
Tajim Md. Niamat Ullah Akhund
 
Patterns of Assigning Responsibilities
Patterns of Assigning ResponsibilitiesPatterns of Assigning Responsibilities
Patterns of Assigning Responsibilitiesguest2a92cd9
 
Unit 2 ai
Unit 2 aiUnit 2 ai
Unit 2 ai
Jeevan Chapagain
 
Utah Code Camp 2014 - Learning from Data by Thomas Holloway
Utah Code Camp 2014 - Learning from Data by Thomas HollowayUtah Code Camp 2014 - Learning from Data by Thomas Holloway
Utah Code Camp 2014 - Learning from Data by Thomas Holloway
Thomas Holloway
 
Ai assignment
Ai assignmentAi assignment
Ai assignment
Darshil Kapadiya
 
Machine learning para tertulianos, by javier ramirez at teowaki
Machine learning para tertulianos, by javier ramirez at teowakiMachine learning para tertulianos, by javier ramirez at teowaki
Machine learning para tertulianos, by javier ramirez at teowaki
javier ramirez
 
Reinforcement learning
Reinforcement learningReinforcement learning
Reinforcement learning
Farzad M. Zaravand
 

What's hot (13)

Ai 02 intelligent_agents(1)
Ai 02 intelligent_agents(1)Ai 02 intelligent_agents(1)
Ai 02 intelligent_agents(1)
 
Artificial Intelligence Chapter two agents
Artificial Intelligence Chapter two agentsArtificial Intelligence Chapter two agents
Artificial Intelligence Chapter two agents
 
Artificial intelligence(03)
Artificial intelligence(03)Artificial intelligence(03)
Artificial intelligence(03)
 
Ai Slides
Ai SlidesAi Slides
Ai Slides
 
1.introduction to ai
1.introduction to ai1.introduction to ai
1.introduction to ai
 
Aritificial intelligence
Aritificial intelligenceAritificial intelligence
Aritificial intelligence
 
AI Lecture 2 (intelligent agents)
AI Lecture 2 (intelligent agents)AI Lecture 2 (intelligent agents)
AI Lecture 2 (intelligent agents)
 
Patterns of Assigning Responsibilities
Patterns of Assigning ResponsibilitiesPatterns of Assigning Responsibilities
Patterns of Assigning Responsibilities
 
Unit 2 ai
Unit 2 aiUnit 2 ai
Unit 2 ai
 
Utah Code Camp 2014 - Learning from Data by Thomas Holloway
Utah Code Camp 2014 - Learning from Data by Thomas HollowayUtah Code Camp 2014 - Learning from Data by Thomas Holloway
Utah Code Camp 2014 - Learning from Data by Thomas Holloway
 
Ai assignment
Ai assignmentAi assignment
Ai assignment
 
Machine learning para tertulianos, by javier ramirez at teowaki
Machine learning para tertulianos, by javier ramirez at teowakiMachine learning para tertulianos, by javier ramirez at teowaki
Machine learning para tertulianos, by javier ramirez at teowaki
 
Reinforcement learning
Reinforcement learningReinforcement learning
Reinforcement learning
 

Similar to introduction to machine learning

ARTIFICIAL INTELLIGENCE - SHORT NOTES
ARTIFICIAL INTELLIGENCE - SHORT NOTESARTIFICIAL INTELLIGENCE - SHORT NOTES
ARTIFICIAL INTELLIGENCE - SHORT NOTES
suthi
 
Lecture 4 (1).pptx
Lecture 4 (1).pptxLecture 4 (1).pptx
Lecture 4 (1).pptx
SumairaRasool6
 
introduction to inteligent IntelligentAgent.ppt
introduction to inteligent IntelligentAgent.pptintroduction to inteligent IntelligentAgent.ppt
introduction to inteligent IntelligentAgent.ppt
dejene3
 
Introduction To Artificial Intelligence
Introduction To Artificial IntelligenceIntroduction To Artificial Intelligence
Introduction To Artificial Intelligence
NeHal VeRma
 
Machine Learning.pptx
Machine Learning.pptxMachine Learning.pptx
Machine Learning.pptx
chadhar227
 
Unit 1.ppt
Unit 1.pptUnit 1.ppt
Unit 1.ppt
BaskarChelladurai
 
DOC-20221019-WA0003..pdf
DOC-20221019-WA0003..pdfDOC-20221019-WA0003..pdf
DOC-20221019-WA0003..pdf
YogeshAM4
 
DOC-20221019-WA0003..pdf
DOC-20221019-WA0003..pdfDOC-20221019-WA0003..pdf
DOC-20221019-WA0003..pdf
YogeshAM4
 
Artificial Intelligence power point presentation document
Artificial Intelligence power point presentation documentArtificial Intelligence power point presentation document
Artificial Intelligence power point presentation document
David Raj Kanthi
 
CS4700-Agents_v3.pptx
CS4700-Agents_v3.pptxCS4700-Agents_v3.pptx
CS4700-Agents_v3.pptx
0137RajatThakur
 
Artificial intelligence
Artificial intelligenceArtificial intelligence
Artificial intelligence
Mudassir Khan
 
Knowledge representation
Knowledge representationKnowledge representation
Knowledge representation
Dr. Jasmine Beulah Gnanadurai
 
Artificial Intelligent Agents
Artificial Intelligent AgentsArtificial Intelligent Agents
Artificial Intelligent Agents
Dr. Mazhar Ali Dootio
 
AIML-M1 and M2-TIEpdf.pdf
AIML-M1 and M2-TIEpdf.pdfAIML-M1 and M2-TIEpdf.pdf
AIML-M1 and M2-TIEpdf.pdf
Devikashetty14
 
recent.pptx
recent.pptxrecent.pptx
recent.pptx
addisuaddaaa
 
Artificial intelligence_ class 12 KATHIR.pptx
Artificial intelligence_ class 12  KATHIR.pptxArtificial intelligence_ class 12  KATHIR.pptx
Artificial intelligence_ class 12 KATHIR.pptx
varadharajjayakumarv
 
AI Module 1.pptx.pdf Artificial Intelligence Notes
AI Module 1.pptx.pdf Artificial Intelligence NotesAI Module 1.pptx.pdf Artificial Intelligence Notes
AI Module 1.pptx.pdf Artificial Intelligence Notes
ankushbh1998
 
Ai lecture1 final
Ai lecture1 finalAi lecture1 final
Ai lecture1 final
Shivam Agrawal
 
Machine learning
Machine learningMachine learning
Machine learning
eonx_32
 

Similar to introduction to machine learning (20)

ARTIFICIAL INTELLIGENCE - SHORT NOTES
ARTIFICIAL INTELLIGENCE - SHORT NOTESARTIFICIAL INTELLIGENCE - SHORT NOTES
ARTIFICIAL INTELLIGENCE - SHORT NOTES
 
Lecture 4 (1).pptx
Lecture 4 (1).pptxLecture 4 (1).pptx
Lecture 4 (1).pptx
 
introduction to inteligent IntelligentAgent.ppt
introduction to inteligent IntelligentAgent.pptintroduction to inteligent IntelligentAgent.ppt
introduction to inteligent IntelligentAgent.ppt
 
Introduction To Artificial Intelligence
Introduction To Artificial IntelligenceIntroduction To Artificial Intelligence
Introduction To Artificial Intelligence
 
Machine Learning.pptx
Machine Learning.pptxMachine Learning.pptx
Machine Learning.pptx
 
Unit 1.ppt
Unit 1.pptUnit 1.ppt
Unit 1.ppt
 
DOC-20221019-WA0003..pdf
DOC-20221019-WA0003..pdfDOC-20221019-WA0003..pdf
DOC-20221019-WA0003..pdf
 
DOC-20221019-WA0003..pdf
DOC-20221019-WA0003..pdfDOC-20221019-WA0003..pdf
DOC-20221019-WA0003..pdf
 
Artificial Intelligence power point presentation document
Artificial Intelligence power point presentation documentArtificial Intelligence power point presentation document
Artificial Intelligence power point presentation document
 
CS4700-Agents_v3.pptx
CS4700-Agents_v3.pptxCS4700-Agents_v3.pptx
CS4700-Agents_v3.pptx
 
Artificial intelligence
Artificial intelligenceArtificial intelligence
Artificial intelligence
 
Knowledge representation
Knowledge representationKnowledge representation
Knowledge representation
 
Artificial Intelligent Agents
Artificial Intelligent AgentsArtificial Intelligent Agents
Artificial Intelligent Agents
 
AIML-M1 and M2-TIEpdf.pdf
AIML-M1 and M2-TIEpdf.pdfAIML-M1 and M2-TIEpdf.pdf
AIML-M1 and M2-TIEpdf.pdf
 
recent.pptx
recent.pptxrecent.pptx
recent.pptx
 
Artificial intelligence_ class 12 KATHIR.pptx
Artificial intelligence_ class 12  KATHIR.pptxArtificial intelligence_ class 12  KATHIR.pptx
Artificial intelligence_ class 12 KATHIR.pptx
 
AI Module 1.pptx.pdf Artificial Intelligence Notes
AI Module 1.pptx.pdf Artificial Intelligence NotesAI Module 1.pptx.pdf Artificial Intelligence Notes
AI Module 1.pptx.pdf Artificial Intelligence Notes
 
Ai lecture1 final
Ai lecture1 finalAi lecture1 final
Ai lecture1 final
 
Machine learning
Machine learningMachine learning
Machine learning
 
unit 1.pptx
unit 1.pptxunit 1.pptx
unit 1.pptx
 

More from colleges

searching
searchingsearching
searching
colleges
 
searching technique
searching techniquesearching technique
searching technique
colleges
 
Automata theory
Automata theoryAutomata theory
Automata theory
colleges
 
Introduction to web architecture
Introduction to web architectureIntroduction to web architecture
Introduction to web architecture
colleges
 
Enterprise application development
Enterprise application developmentEnterprise application development
Enterprise application development
colleges
 
Introduction to oop
Introduction to oopIntroduction to oop
Introduction to oop
colleges
 

More from colleges (6)

searching
searchingsearching
searching
 
searching technique
searching techniquesearching technique
searching technique
 
Automata theory
Automata theoryAutomata theory
Automata theory
 
Introduction to web architecture
Introduction to web architectureIntroduction to web architecture
Introduction to web architecture
 
Enterprise application development
Enterprise application developmentEnterprise application development
Enterprise application development
 
Introduction to oop
Introduction to oopIntroduction to oop
Introduction to oop
 

Recently uploaded

Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdfAutomated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
timtebeek1
 
Using Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional SafetyUsing Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional Safety
Ayan Halder
 
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing SuiteAI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
Google
 
GraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph TechnologyGraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph Technology
Neo4j
 
Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604
Fermin Galan
 
A Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of PassageA Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of Passage
Philip Schwarz
 
Launch Your Streaming Platforms in Minutes
Launch Your Streaming Platforms in MinutesLaunch Your Streaming Platforms in Minutes
Launch Your Streaming Platforms in Minutes
Roshan Dwivedi
 
GOING AOT WITH GRAALVM FOR SPRING BOOT (SPRING IO)
GOING AOT WITH GRAALVM FOR  SPRING BOOT (SPRING IO)GOING AOT WITH GRAALVM FOR  SPRING BOOT (SPRING IO)
GOING AOT WITH GRAALVM FOR SPRING BOOT (SPRING IO)
Alina Yurenko
 
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
Łukasz Chruściel
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOMLORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
lorraineandreiamcidl
 
Fundamentals of Programming and Language Processors
Fundamentals of Programming and Language ProcessorsFundamentals of Programming and Language Processors
Fundamentals of Programming and Language Processors
Rakesh Kumar R
 
AI Genie Review: World’s First Open AI WordPress Website Creator
AI Genie Review: World’s First Open AI WordPress Website CreatorAI Genie Review: World’s First Open AI WordPress Website Creator
AI Genie Review: World’s First Open AI WordPress Website Creator
Google
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
Safe Software
 
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata
 
E-commerce Application Development Company.pdf
E-commerce Application Development Company.pdfE-commerce Application Development Company.pdf
E-commerce Application Development Company.pdf
Hornet Dynamics
 
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI AppAI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
Google
 
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptxTop Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
rickgrimesss22
 
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdfVitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke
 
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Łukasz Chruściel
 
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Mind IT Systems
 

Recently uploaded (20)

Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdfAutomated software refactoring with OpenRewrite and Generative AI.pptx.pdf
Automated software refactoring with OpenRewrite and Generative AI.pptx.pdf
 
Using Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional SafetyUsing Xen Hypervisor for Functional Safety
Using Xen Hypervisor for Functional Safety
 
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing SuiteAI Pilot Review: The World’s First Virtual Assistant Marketing Suite
AI Pilot Review: The World’s First Virtual Assistant Marketing Suite
 
GraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph TechnologyGraphSummit Paris - The art of the possible with Graph Technology
GraphSummit Paris - The art of the possible with Graph Technology
 
Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604Orion Context Broker introduction 20240604
Orion Context Broker introduction 20240604
 
A Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of PassageA Sighting of filterA in Typelevel Rite of Passage
A Sighting of filterA in Typelevel Rite of Passage
 
Launch Your Streaming Platforms in Minutes
Launch Your Streaming Platforms in MinutesLaunch Your Streaming Platforms in Minutes
Launch Your Streaming Platforms in Minutes
 
GOING AOT WITH GRAALVM FOR SPRING BOOT (SPRING IO)
GOING AOT WITH GRAALVM FOR  SPRING BOOT (SPRING IO)GOING AOT WITH GRAALVM FOR  SPRING BOOT (SPRING IO)
GOING AOT WITH GRAALVM FOR SPRING BOOT (SPRING IO)
 
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf2024 eCommerceDays Toulouse - Sylius 2.0.pdf
2024 eCommerceDays Toulouse - Sylius 2.0.pdf
 
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOMLORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
LORRAINE ANDREI_LEQUIGAN_HOW TO USE ZOOM
 
Fundamentals of Programming and Language Processors
Fundamentals of Programming and Language ProcessorsFundamentals of Programming and Language Processors
Fundamentals of Programming and Language Processors
 
AI Genie Review: World’s First Open AI WordPress Website Creator
AI Genie Review: World’s First Open AI WordPress Website CreatorAI Genie Review: World’s First Open AI WordPress Website Creator
AI Genie Review: World’s First Open AI WordPress Website Creator
 
Essentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FMEEssentials of Automations: The Art of Triggers and Actions in FME
Essentials of Automations: The Art of Triggers and Actions in FME
 
OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024OpenMetadata Community Meeting - 5th June 2024
OpenMetadata Community Meeting - 5th June 2024
 
E-commerce Application Development Company.pdf
E-commerce Application Development Company.pdfE-commerce Application Development Company.pdf
E-commerce Application Development Company.pdf
 
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI AppAI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
AI Fusion Buddy Review: Brand New, Groundbreaking Gemini-Powered AI App
 
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptxTop Features to Include in Your Winzo Clone App for Business Growth (4).pptx
Top Features to Include in Your Winzo Clone App for Business Growth (4).pptx
 
Vitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdfVitthal Shirke Java Microservices Resume.pdf
Vitthal Shirke Java Microservices Resume.pdf
 
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️Need for Speed: Removing speed bumps from your Symfony projects ⚡️
Need for Speed: Removing speed bumps from your Symfony projects ⚡️
 
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
Custom Healthcare Software for Managing Chronic Conditions and Remote Patient...
 

introduction to machine learning

  • 1. Introduction to machine learning BY miss saba sumreen What is machine learning? How many people heard, know and using about machine learning? Hebert Alexander simon:  ”learning is any process by which a system improves performance from experience”  “machine learning is concerned with computer programs that automatically improve their performance through experience”. The emphasis of machine learning is on automatic methods. In other words, the goal is to devise learning algorithms that do the learning automatically without human intervention or assistance. The machine learning paradigm can be viewed as “programming by example.” Often we have a specific task in mind, such as spam filtering. But rather than program the computer to solve the task directly, in machine learning, we seek methods by which the computer will come up with its own program based on examples that we provide. Machine learning is a core subarea of artificial intelligence. It is very unlikely that we will be able to build any kind of intelligent system capable of any of the facilities that we associate with intelligence, such as language or vision, without using learning to get there. These tasks are otherwise simply too difficult to solve. Further, we would not consider a system to be truly intelligent if it were incapable of learning since learning is at the core of intelligence. Although a subarea of AI, machine learning also intersects broadly with other fields, especially statistics, but also mathematics, physics, theoretical computer science and more. Examples of Machine Learning Problems There are many examples of machine learning problems. Much of this course will focus on classification problems in which the goal is to categorize objects into a fixed set of categories. Here are several examples: optical character recognition: categorize images of handwritten characters by the letters represented • face detection: find faces in images (or indicate if a face is present) spam filtering: identify email messages as spam or non-spam topic spotting: categorize news articles (say) as to whether they are about politics, sports, entertainment, etc spoken language understanding: within the context of a limited domain, determine the meaning of something uttered by a speaker to the extent that it can be classified into one of a fixed set of categories medical diagnosis: diagnose a patient as a sufferer or non-sufferer of some disease customer segmentation: predict, for instance, which customers will respond to a particular promotion
  • 2. fraud detection: identify credit card transactions (for instance) which may be fraudulent in nature weather prediction: predict, for instance, whether or not it will rain tomorrow (In this last case, we most likely would actually be more interested in estimating the probability of rain tomorrow.) Although much of what we will talk about will be about classification problems, there are other important learning problems. In classification, we want to categorize objects into fixed categories. In regression, on the other hand, we are trying to predict a real value. For instance, we may wish to predict how much it will rain tomorrow. Or, we might want to predict how much a house will sell for. A richer learning scenario is one in which the goal is actually to behave intelligently, or to make intelligent decisions. For instance, a robot needs to learn to navigate through its environment without colliding with anything. To use machine learning to make money on the stock market, we might treat investment as a classification problem (will the stock go up or down) or a regression problem (how much will the stock go up), or, dispensing with these intermediate goals, we might want the computer to learn directly how to decide to make investments so as to maximize wealth. A final example is game playing where the goal is for the computer to learn to play well through experience. Learning Models To study machine learning mathematically, we need to formally define the learning problem. This precise definition is called a learning model. A learning model should be rich enough to capture important aspects of real learning problems, but simple enough to study the problem mathematically. As with any mathematical model, simplifying assumptions are unavoidable. A learning model should answer several questions: • What is being learned? • How is the data being generated? In other words, where does it come from? • How is the data presented to the learner? For instance, does the learner see all the data at once, or only one example at a time? • What is the goal of learning in this model 3 Intelligent agents In computer science, a software agent is a computer program that acts for a user or other program in a relationship of agency, which derives from the Latin agere (to do): an agreement to act on one's behalf. Such "action on behalf of" implies the authority to decide which, if any, action is appropriate.  Agents include humans, robots, softbots, thermostats, etc.  The agent function maps from percept histories to actions: f : P∗ → A  The agent program runs on the physical architecture to produce f
  • 3. An agent is anything that can perceive its environment through sensors and acts upon that environment through effectors.  A human agent has sensory organs such as eyes, ears, nose, tongue and skin parallel to the sensors, and other organs such as hands, legs, mouth, for effectors.  A robotic agent replaces cameras and infrared range finders for the sensors, and various motors and actuators for effectors.  A software agent has encoded bit strings as its programs and actions Rationality Rationality is nothing but status of being reasonable, sensible, and having good sense of judgment. Rationality is concerned with expected actions and results depending upon what the agent has perceived. Performing actions with the aim of obtaining useful information is an important part of rationality. PEAS To design a rational agent, we must specify the task environment Consider, e.g., the task of designing an automated taxi: Performance measure?? safety, destination, profits, legality, comfort, ... Environment?? US streets/freeways, traffic, pedestrians, weather, ... Actuators?? steering, accelerator, brake, horn, speaker/display, ... Sensors?? video, accelerometers, gauges, engine sensors, keyboard, GPS, ...
  • 4. Internet shopping agent Performance measure?? price, quality, appropriateness, efficiency Environment?? current and future WWW sites, vendors, shippers Actuators?? display to user, follow URL, fill in form Sensors?? HTML pages (text, graphics, scripts) Vacuum-cleaner world: Consider a Vacuum cleaner world Imagine that our intelligent agent is a robot vacuum cleaner. Let's suppose that the world has just two rooms. The robot can be in either room and there can be dirt in zero, one, or two rooms. Goal formulation: intuitively, we want all the dirt cleaned up. Formally, the goal is { state 7, state 8 }. Percepts: location and contents, e.g., [A,Dirty] Actions: Left, Right, Suck, NoOp
  • 5. A vacuum-cleaner agent Percept sequence Action [A,Clean] Right [A,Dirty] Suck [B,Clean] Left [B,Dirty] Suck [A,Clean], [A,Clean] Right [A,Clean], [A,Dirty] Suck . . . . . function Reflex-Vacuum-Agent([location,status]) returns an action if status = Dirty then return Suck else if location = A then return Right else if location = B then return Left Properties ofEnvironment The environment has multifold properties −
  • 6.  Discrete / Continuous − If there are a limited number of distinct, clearly defined, states of the environment, the environment is discrete (For example, chess); otherwise it is continuous (For example, driving).  Observable / Partially Observable − If it is possible to determine the complete state of the environment at each time point from the percepts it is observable; otherwise it is only partially observable.  Static / Dynamic − If the environment does not change while an agent is acting, then it is static; otherwise it is dynamic.  Single agent / Multiple agents − The environment may contain other agents which may be of the same or different kind as that of the agent.  Accessible / Inaccessible − If the agent’s sensory apparatus can have access to the complete state of the environment, then the environment is accessible to that agent.  Deterministic / Non-deterministic − If the next state of the environment is completely determined by the current state and the actions of the agent, then the environment is deterministic; otherwise it is non-deterministic.  Episodic / Non-episodic − In an episodic environment, each episode consists of the agent perceiving and then acting. The quality of its action depends just on the episode itself. Subsequent episodes do not depend on the actions in the previous episodes. Episodic environments are much simpler because the agent does not need to think ahead. Solitaire Backgammon Internet shopping Taxi Observable?? Yes Yes No No Deterministic?? Yes No Partly No Episodic?? No No No No Static?? Yes Semi Semi No Discrete?? Yes Yes Yes No Single-agent?? Yes No Yes (except auctions) No
  • 7. Lecture 6: Agent types Four basic types in order of increasing generality: –  simple reflex agents  reflex agents with state  goal-based agents  utility-based agents All these can be turned into learning agents Simple Reflex Agents  They choose actions only based on the current percept.  They are rational only if a correct decision is made only on the basis of current precept.  Their environment is completely observable. Condition-Action Rule − It is a rule that maps a state (condition) to an action. Model BasedReflex Agents They use a model of the world to choose their actions. They maintain an internal state.
  • 8. Model − The knowledge about how the things happen in the world. Internal State − It is a representation of unobserved aspects of current state depending on percept history. Updating the state requires the information about −  How the world evolves.  How the agent’s actions affect the world. Goal BasedAgents They choose their actions in order to achieve goals. Goal-based approach is more flexible than reflex agent since the knowledge supporting a decision is explicitly modeled, thereby allowing for modifications. Goal − It is the description of desirable situations.
  • 9. Utility BasedAgents They choose actions based on a preference (utility) for each state. Goals are inadequate when −  There are conflicting goals, out of which only few can be achieved.  Goals have some uncertainty of being achieved and you need to weigh likelihood of success against the importance of a goal.