Unit 1
Unit 1
• What is AI
(AI) is the ability of a computer or a robot controlled by a
computer to do tasks that are usually done by humans
Diffrence between AI and ML
• AI –Engineering of making Intelligent Machines and Programes
• ML-Ability to learn without being explicitly programmed
In 1997 Deep Mind was the first AI to beat Garry
Kasparov in Chess.
• Most widely telecasted game ever
Lee Sedol 18 times world champion in Go
Chess was defeated by AI AlphaGo
• Complex than Chess, China Japan & Korea
• We use games to train AI
• Games are a confined Environment,
• If we can beat a game than same principals can be applied to Business
They applied artificial intelligence
to a Google warehouse to control the air cooling
• As soon they switch on the AI, it goes down.
• And then they switch it back off, it goes up.
• They were able to save 40%
• on their electricity bill,
Chat GPT
• https://chat.openai.com/
• The full form of GPT is "Generative Pre-trained Transformer." GPT is a type
of deep learning model that uses a transformer architecture and is trained
on large amounts of text data to generate human-like responses
• Best library for web scraping data
• Syntax error
• Error message
• I have a dataset named data.csv with a dependent variable in the last
column and an index in the first column. Can you please write a python
code that builds a logistic regression model and trains it on this dataset.
Also please return accuracy at the end
What is Reinforcement Learning
• maze is our representation of an environment.
• agent is our artificial intelligence, it will be learning from the feedback
• is the agent performs certain actions in this environment.
• And as a result, the state will change
• Based upon the action it gets a reward +/-
• It learns from the feedback
• Actions leading to bad rewards and sates are avoided
• Driving a car and policeman is a feedbback
• Training a Dog
Major Areas of AI
•Computer vision
•Fuzzy logic
•Expert systems
•Robotics
•Machine learning
•Neural networks/deep learning
•Natural language processing
Computer Vision
• techniques used computer to understanding digital images and videos
• Uses ML to identify objects, faces, people, animals etc.
• CNN breaks images down into pixels, giving them tags
• The neural network then uses the labels to conduct convolutions and
make predictions about what it sees.
• Object tracking
• Image classification
• Facial recognition
Fuzzy Logic
entity which act upon an environment using sensors and actuators for achieving
goals. An intelligent agent may learn from the environment to achieve their goals. A
thermostat(a device that automatically regulates temperature, or
that activates a device when the temperature reaches a certain point.
) is an example of an intelligent agent.
Following are the main four rules for an AI agent:
•Rule 1: An AI agent must have the ability to perceive the environment.
•Rule 2: The observation must be used to make decisions.
•Rule 3: Decision should result in an action.
•Rule 4: The action taken by an AI agent must be a rational action.
AI Applications(Ecommerce )
• Increase in volume of voice search
• chatbots
• Recommendation systems
• Image tagging
• Personalized search
• shopping from Mobile witnessing a rise(73%)
• Handling fake reviews
• Image Searching and Recognition
• Augmented and Virtual Reality (3D presentations)
• Sales Forecasting
AI Applications in Medicine
• Error reduction in diagnosis
• Reducing the costs of care
• Develop drugs faster
• Personalize treatment(design the right treatment plan.)
• Improve gene editing
• But this is just the beginning
AI Representation
• Humans are best at understanding, reasoning, and interpreting knowledge.
• But how machines do all these things comes under knowledge representation and
reasoning
• Following are the kind of knowledge which needs to be represented in AI systems:
• Object: All the facts about objects in our world domain. E.g., Guitars contains strings,
trumpets are brass instruments.
• Events: Events are the actions which occur in our world.
• Performance: It describe behavior which involves knowledge about how to do things.
• Meta-knowledge: It is knowledge about what we know.
• Facts: Facts are the truths about the real world and what we represent.
• Knowledge-Base: The central component of the knowledge-based agents is the
knowledge base. It is represented as KB.
Future Scope of AI
• The scope of Artificial Intelligence is limited to domestic and
commercial purposes as the medical and aviation sectors are also
using AI to improve their services. If AI is outperforming human
efforts, then opting for AI automation will reduce costs in the long run
for a business.
• Banking- customer support, enhanced data quality, fraud
prevention, digital assistants etc
• Health care and medicine
• Jobs in AI will increase by 74
Issues in the design of search algorithm
1.The direction in which to conduct search (forward versus backward
reasoning). If the search proceeds from start state towards a goal
state, it is a forward search or we can also search from the goal.
2.How to select applicable rules (Matching). Production systems
typically spend most of their time looking for rules to apply. So, it is
critical to have efficient procedures for matching rules against states.
3.How to represent each node of the search process (knowledge
representation problem).
Defining Problems as a State Space Search,
• It has a start state, end state and all states in between the two where
the answer to the problem is to be searched.
• Problem: Question to be solved, It defienes the start, end and all valid
states in between
• State Space search: All possible states are considered in order to find
the goal state with desired property
• Eg: 8 Puzzle Problem
END