SlideShare una empresa de Scribd logo
1 de 9
Descargar para leer sin conexión
Artificial Intelligence
Programming Python
Contents
1. What is Artificial Intelligence? ....................................................................................................1
2. Problems in AI.............................................................................................................................1
a. Reasoning and Problem Solving .................................................................................................2
b. Knowledge Representation .........................................................................................................2
c. Planning.......................................................................................................................................2
d. Learning......................................................................................................................................3
e. Natural Language Processing......................................................................................................3
f. Perception....................................................................................................................................3
g. Motion and Manipulation............................................................................................................3
h. Social Intelligence.......................................................................................................................3
i. General Intelligence.....................................................................................................................3
3. Approaches to Artificial Intelligence...........................................................................................3
a. Cybernetics and Brain Simulation...............................................................................................4
b. Symbolic .....................................................................................................................................4
c. Sub-Symbolic..............................................................................................................................4
d. Statistical Learning .....................................................................................................................4
4. Python AI Tutorial – Artificial Intelligence Tools.........................................................................4
a. Search and Optimization.............................................................................................................5
b. Logic ...........................................................................................................................................5
c. Probabilistic Methods for Uncertain Reasoning .........................................................................5
d. Classifiers and Statistical Learning Methods..............................................................................5
e. Artificial Neural Networks..........................................................................................................6
f. Evaluating Progress .....................................................................................................................6
5. Python AI Tutorial – Applications of Artificial Intelligence .........................................................6
Python AI Tutorial
1
https://data-flair.training/big-data-hadoop/
1. What is Artificial Intelligence?
Artificial Intelligence, often dubbed AI, is the intelligence a machine demonstrates. With
machine intelligence, it is possible to give a device the ability to discern its environment and
act to maximize its chances of success in achieving its goals. In other words, AI is when a
machine can mimic cognitive functions like learning and problem-solving.
“AI is whatever hasn’t been done yet.”
As we said, an AI takes in its environment and acts to maximize its chances of success in
achieving its goals. A goal can be simple or complex, explicit or induced. It is also true that
many algorithms in AI can learn from data, learn new heuristics to improve and write other
algorithms.
One difference to humans is that AI does not possess the features of human commonsense
reasoning and folk psychology. This makes it end up making different mistakes than a human
would.
2. Problems in AI
When simulating or creating AI, we may run into problems around the following traits-
Python AI Tutorial
2
https://data-flair.training/big-data-hadoop/
a. Reasoning and Problem Solving
Earlier, algorithms mimicked step-by-step reasoning that humans display. AI research later
introduced methods to work with incomplete and uncertain information. However, as the
problems grew larger, these algorithms became exponentially slower. Humans often use fast,
intuitive judgments instead of a step-by-step deduction.
b. Knowledge Representation
Some expert systems accumulate esoteric knowledge from experts. A comprehensive
commonsense knowledge base holds many things including- objects, properties, categories,
relations between objects, situations, events, states, time, causes, effects, knowledge about
knowledge, and other domains. When we talk about ontology, we talk about what exists.
Under knowledge representation, we observe the following domains-
 Default reasoning; Qualification problem
 Breadth of commonsense knowledge
 Subsymbolic form of some commonsense knowledge
c. Planning
An intelligent agent should be capable of setting goals, achieving them, and visualizing the
future. Assuming it is the only system in the world, an agent can be certain of their actions’
consequences. If there are more actors, the agent should be able to reason under uncertainty.
For this, it should be able to assess its environment, make predictions, evaluate predictions,
and adapt according to its assessment. With multi-agent planning, we observe multiple agents
cooperate and compete to achieve a goal.
Python AI Tutorial
3
https://data-flair.training/big-data-hadoop/
d. Learning
AI is related to Machine Learning in some way. We have often talked about unsupervised
learning- the ability to take a stream of input and find patterns in it. This includes
classification and numerical regression. We classify things into categories and produce a
function that describes how inputs and outputs relate and change each other. These function
approximators.
e. Natural Language Processing
NLP is an area of Computer Science that gives machines the ability to read the human
language and understand it. With it, we can retrieve information, mine text, answer questions,
and translating using machines. We use strategies like keyword spotting and lexical affinity.
f. Perception
With machine perception, we can take input from sensors like cameras, microphones, and
lidar to recognize objects. We can use it for applications like speech recognition, facial
recognition, and object recognition. We can also analyze visual input with Computer Vision.
g. Motion and Manipulation
With AI, we can develop advanced robotic arms and more for modern factories. These can
use the experience to learn to deal with friction and gear slippage. The term Motion Planning
means dividing a task into primitives like individual joint movements.
h. Social Intelligence
“Should I go to bed, Siri?”, I ask as I reach home from a busy day. “I think you should sleep
on it”, Siri quips back. Affective Computing, an umbrella term, encompasses systems that
can recognize, interpret, process, or simulate human affects/ emotions. In this domain, we
have observed textual sentiment analysis and multimodal affect analysis. The aim is to allow
AI to understand others’ motives and emotional states to predict their actions. It can mimic
human emotion and expressions to appear sensitive and interact with humans. A robot with
rudimentary social skills is Kismet, developed at MIT by Dr. Cynthia Breazeal.
i. General Intelligence
Lately, many AI researchers have begun working on tractable narrow AI applications like a
medical diagnosis. The future could hold machines with Artificial General Intelligence(AGI)
that combines such narrow skills. Google’s DeepMind will be an example of this.
3. Approaches to Artificial Intelligence
We observe four different approaches to AI-
Python AI Tutorial
4
https://data-flair.training/big-data-hadoop/
Python AI Tutorial – AI Approaches
a. Cybernetics and Brain Simulation
Some machines exist that use electronic networks to display rudimentary intelligence.
b. Symbolic
This approach considers reducing human intelligence to symbolic manipulation. This
includes cognitive simulation, logic-based, anti-logic or scruffy, and knowledge-based
approaches.
c. Sub-Symbolic
For processes of human cognition like perception, robotics, learning, and pattern recognition,
sub-symbolic approaches came into picture. This includes approaches like embodied
intelligence and computational intelligence and soft computing.
d. Statistical Learning
Statistical learning techniques like HMM and neural networks deliver better accuracy in
practical domains like data mining. Limitations of HMM include that it cannot model the
infinite possible combinations of natural language.
4. Python AI Tutorial – Artificial Intelligence Tools
For AI, we have the following tools-
Python AI Tutorial
5
https://data-flair.training/big-data-hadoop/
Python AI Tutorial – Artificial Intelligence Tools
a. Search and Optimization
To intelligently search through possible solutions and use reasoning to do so is a tool for AI.
For real-world problems, simple exhaustive searches rarely suffice. This is because these
have really large search spaces. This leads to a slow search or one that never ends. To get
around this, we can use heuristics.
b. Logic
AI research uses different forms of logic. Propositional logics use truth functions like ‘or’ and
‘not’. The fuzzy set theory holds a degree of truth (values between 0 and 1) to vague
statements. First-order logic adds quantifiers and predicates. Fuzzy logic helps with control
systems to contribute vague rules.
c. Probabilistic Methods for Uncertain Reasoning
We often use tools like Bayesian networks for reasoning, learning, planning, and perception.
We can also use probabilistic algorithms to filter, predict, smoothen, and explain streams of
data.
d. Classifiers and Statistical Learning Methods
Classifiers and controllers work together. Consider an object. If it is shiny, the classifier
knows it is a diamond. If it is shiny, the controller picks it up. But before inferring an action,
a controller classifies conditions. As a function, a classifier matches patterns to find the
closest match. Supervised learning puts each pattern into a predefined class.
Python AI Tutorial
6
https://data-flair.training/big-data-hadoop/
e. Artificial Neural Networks
ANNs are collections of nodes that are interconnected- inspired by the huge network of
neurons in the human brain.
Python AI Tutorial – Artificial Neural Networks
Under these, we have categories like feedforward neural networks and recurrent neural
networks. We will take up ANNs as a separate topic in another tutorial.
f. Evaluating Progress
Since AI is general purpose, there is no way to find out which domains it excels in. Games
are a good benchmark to assess progress. Some of these include AlphaGo and StarCraft.
5. Python AI Tutorial – Applications of Artificial Intelligence
Like we said, AI is pretty general-purpose. Here are a few domains it finds use in-
 Automotive
 Healthcare
 Video games
Python AI Tutorial
7
https://data-flair.training/big-data-hadoop/
 Military
 Finance and Economics
 Art
 Auditing
 Advertising
So, this was all in Python AI Tutorial. Hope you like our explanation.
Next step to follow
 Copy in Python – Shallow Copy and Deep Copy
 NLTK Python Tutorial (Natural Language Toolkit)
 Python Assert Statements | Assertion Error in Python
 Python Speech Recognition - Artificial Intelligence

Más contenido relacionado

La actualidad más candente

Artificial intelligence
Artificial intelligenceArtificial intelligence
Artificial intelligence
iarthur
 
2017 10texasamaiconferencesurden-171020161407
2017 10texasamaiconferencesurden-1710201614072017 10texasamaiconferencesurden-171020161407
2017 10texasamaiconferencesurden-171020161407
Cemil Yigit
 
What Is Machine Learning? | What Is Machine Learning And How Does It Work? | ...
What Is Machine Learning? | What Is Machine Learning And How Does It Work? | ...What Is Machine Learning? | What Is Machine Learning And How Does It Work? | ...
What Is Machine Learning? | What Is Machine Learning And How Does It Work? | ...
Simplilearn
 

La actualidad más candente (20)

Artificial intelligence introduction
Artificial intelligence introductionArtificial intelligence introduction
Artificial intelligence introduction
 
artificial intelligence
artificial intelligence  artificial intelligence
artificial intelligence
 
Artificial intelligence
Artificial intelligenceArtificial intelligence
Artificial intelligence
 
How to use Artificial Intelligence with Python? Edureka
How to use Artificial Intelligence with Python? EdurekaHow to use Artificial Intelligence with Python? Edureka
How to use Artificial Intelligence with Python? Edureka
 
Ai=ml academic-institutions-Webinar
Ai=ml academic-institutions-WebinarAi=ml academic-institutions-Webinar
Ai=ml academic-institutions-Webinar
 
Demystifying Ml, DL and AI
Demystifying Ml, DL and AIDemystifying Ml, DL and AI
Demystifying Ml, DL and AI
 
AI & ML
AI & MLAI & ML
AI & ML
 
Python Course Basic
Python Course BasicPython Course Basic
Python Course Basic
 
The Use of Artificial Intelligence and Machine Learning in Speech Recognition
The Use of Artificial Intelligence and Machine Learning in Speech RecognitionThe Use of Artificial Intelligence and Machine Learning in Speech Recognition
The Use of Artificial Intelligence and Machine Learning in Speech Recognition
 
Lebanon SoftShore Artificial Intelligence Seminar - March 38, 2014
Lebanon SoftShore Artificial Intelligence Seminar - March 38, 2014Lebanon SoftShore Artificial Intelligence Seminar - March 38, 2014
Lebanon SoftShore Artificial Intelligence Seminar - March 38, 2014
 
2017 10texasamaiconferencesurden-171020161407
2017 10texasamaiconferencesurden-1710201614072017 10texasamaiconferencesurden-171020161407
2017 10texasamaiconferencesurden-171020161407
 
ARTIFICIAL INTELLIGENT ( ITS / TASK 6 ) done by Wael Saad Hameedi / P71062
ARTIFICIAL INTELLIGENT ( ITS / TASK 6 ) done by Wael Saad Hameedi / P71062ARTIFICIAL INTELLIGENT ( ITS / TASK 6 ) done by Wael Saad Hameedi / P71062
ARTIFICIAL INTELLIGENT ( ITS / TASK 6 ) done by Wael Saad Hameedi / P71062
 
ARTIFICIAL INTELLIGENCE Presentation
ARTIFICIAL INTELLIGENCE PresentationARTIFICIAL INTELLIGENCE Presentation
ARTIFICIAL INTELLIGENCE Presentation
 
Artificial Intelligence Notes Unit 1
Artificial Intelligence Notes Unit 1 Artificial Intelligence Notes Unit 1
Artificial Intelligence Notes Unit 1
 
Intro To Machine Learning in Python
Intro To Machine Learning in PythonIntro To Machine Learning in Python
Intro To Machine Learning in Python
 
Diff between AI& ML&DL
Diff between AI& ML&DLDiff between AI& ML&DL
Diff between AI& ML&DL
 
What Is Machine Learning? | What Is Machine Learning And How Does It Work? | ...
What Is Machine Learning? | What Is Machine Learning And How Does It Work? | ...What Is Machine Learning? | What Is Machine Learning And How Does It Work? | ...
What Is Machine Learning? | What Is Machine Learning And How Does It Work? | ...
 
Step Into World of Artificial Intelligence
Step Into World of Artificial IntelligenceStep Into World of Artificial Intelligence
Step Into World of Artificial Intelligence
 
Pattern recognition
Pattern recognitionPattern recognition
Pattern recognition
 
Beekman5 std ppt_14
Beekman5 std ppt_14Beekman5 std ppt_14
Beekman5 std ppt_14
 

Similar a Python AI tutorial

Understanding ai
Understanding aiUnderstanding ai
Understanding ai
AMI AMITO
 
Understanding ai
Understanding aiUnderstanding ai
Understanding ai
AMI AMITO
 
project-report-on-artificial-intelligence_compress (1).pdf
project-report-on-artificial-intelligence_compress (1).pdfproject-report-on-artificial-intelligence_compress (1).pdf
project-report-on-artificial-intelligence_compress (1).pdf
biradargraphics3
 

Similar a Python AI tutorial (20)

AI Foundation, Challenges and Applications.pptx
AI Foundation, Challenges and Applications.pptxAI Foundation, Challenges and Applications.pptx
AI Foundation, Challenges and Applications.pptx
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
 
Understanding ai
Understanding aiUnderstanding ai
Understanding ai
 
Understanding ai
Understanding aiUnderstanding ai
Understanding ai
 
Artificial intelligence
Artificial intelligence Artificial intelligence
Artificial intelligence
 
Artificial Intteligence-unit 1.pptx
Artificial Intteligence-unit 1.pptxArtificial Intteligence-unit 1.pptx
Artificial Intteligence-unit 1.pptx
 
Artificial intelligence by JD
Artificial intelligence by JDArtificial intelligence by JD
Artificial intelligence by JD
 
RMV Artificial Intelligence
RMV Artificial IntelligenceRMV Artificial Intelligence
RMV Artificial Intelligence
 
Introduction to Knowledge Graphs
Introduction to Knowledge GraphsIntroduction to Knowledge Graphs
Introduction to Knowledge Graphs
 
chapter 3 - Artificial Intelligence.pptx
chapter 3 - Artificial Intelligence.pptxchapter 3 - Artificial Intelligence.pptx
chapter 3 - Artificial Intelligence.pptx
 
Artificial intelligence
Artificial intelligenceArtificial intelligence
Artificial intelligence
 
Artificial intelligence
Artificial intelligenceArtificial intelligence
Artificial intelligence
 
project-report-on-artificial-intelligence_compress (1).pdf
project-report-on-artificial-intelligence_compress (1).pdfproject-report-on-artificial-intelligence_compress (1).pdf
project-report-on-artificial-intelligence_compress (1).pdf
 
AI Lesson 01
AI Lesson 01AI Lesson 01
AI Lesson 01
 
Artificial intelligence
Artificial intelligenceArtificial intelligence
Artificial intelligence
 
Chapter 3 - EMTE.pptx
Chapter 3 - EMTE.pptxChapter 3 - EMTE.pptx
Chapter 3 - EMTE.pptx
 
Introduction to Artificial Intelligence.pptx
Introduction to Artificial Intelligence.pptxIntroduction to Artificial Intelligence.pptx
Introduction to Artificial Intelligence.pptx
 
What is Artificial Intelligence?
What is Artificial Intelligence?What is Artificial Intelligence?
What is Artificial Intelligence?
 
AI.pdf
AI.pdfAI.pdf
AI.pdf
 
Artificial intelligence
Artificial intelligenceArtificial intelligence
Artificial intelligence
 

Más de grinu

Más de grinu (8)

Artificial neural network for machine learning
Artificial neural network for machine learningArtificial neural network for machine learning
Artificial neural network for machine learning
 
Why should I learn python
Why should I learn pythonWhy should I learn python
Why should I learn python
 
Python standard library & list of important libraries
Python standard library & list of important librariesPython standard library & list of important libraries
Python standard library & list of important libraries
 
Data mining tutorial
Data mining tutorialData mining tutorial
Data mining tutorial
 
Python Machine Learning Tutorial
Python Machine Learning TutorialPython Machine Learning Tutorial
Python Machine Learning Tutorial
 
Machine Learning Tutorial for Beginners
Machine Learning Tutorial for BeginnersMachine Learning Tutorial for Beginners
Machine Learning Tutorial for Beginners
 
Heuristic search-in-artificial-intelligence
Heuristic search-in-artificial-intelligenceHeuristic search-in-artificial-intelligence
Heuristic search-in-artificial-intelligence
 
20 interesting-applications-of-deep-learning-with-python
20 interesting-applications-of-deep-learning-with-python20 interesting-applications-of-deep-learning-with-python
20 interesting-applications-of-deep-learning-with-python
 

Último

DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
MayuraD1
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
jaanualu31
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Kandungan 087776558899
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
mphochane1998
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Último (20)

DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptxA CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
 
kiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadkiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal load
 
Wadi Rum luxhotel lodge Analysis case study.pptx
Wadi Rum luxhotel lodge Analysis case study.pptxWadi Rum luxhotel lodge Analysis case study.pptx
Wadi Rum luxhotel lodge Analysis case study.pptx
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
 
Moment Distribution Method For Btech Civil
Moment Distribution Method For Btech CivilMoment Distribution Method For Btech Civil
Moment Distribution Method For Btech Civil
 

Python AI tutorial

  • 2. Contents 1. What is Artificial Intelligence? ....................................................................................................1 2. Problems in AI.............................................................................................................................1 a. Reasoning and Problem Solving .................................................................................................2 b. Knowledge Representation .........................................................................................................2 c. Planning.......................................................................................................................................2 d. Learning......................................................................................................................................3 e. Natural Language Processing......................................................................................................3 f. Perception....................................................................................................................................3 g. Motion and Manipulation............................................................................................................3 h. Social Intelligence.......................................................................................................................3 i. General Intelligence.....................................................................................................................3 3. Approaches to Artificial Intelligence...........................................................................................3 a. Cybernetics and Brain Simulation...............................................................................................4 b. Symbolic .....................................................................................................................................4 c. Sub-Symbolic..............................................................................................................................4 d. Statistical Learning .....................................................................................................................4 4. Python AI Tutorial – Artificial Intelligence Tools.........................................................................4 a. Search and Optimization.............................................................................................................5 b. Logic ...........................................................................................................................................5 c. Probabilistic Methods for Uncertain Reasoning .........................................................................5 d. Classifiers and Statistical Learning Methods..............................................................................5 e. Artificial Neural Networks..........................................................................................................6 f. Evaluating Progress .....................................................................................................................6 5. Python AI Tutorial – Applications of Artificial Intelligence .........................................................6
  • 3. Python AI Tutorial 1 https://data-flair.training/big-data-hadoop/ 1. What is Artificial Intelligence? Artificial Intelligence, often dubbed AI, is the intelligence a machine demonstrates. With machine intelligence, it is possible to give a device the ability to discern its environment and act to maximize its chances of success in achieving its goals. In other words, AI is when a machine can mimic cognitive functions like learning and problem-solving. “AI is whatever hasn’t been done yet.” As we said, an AI takes in its environment and acts to maximize its chances of success in achieving its goals. A goal can be simple or complex, explicit or induced. It is also true that many algorithms in AI can learn from data, learn new heuristics to improve and write other algorithms. One difference to humans is that AI does not possess the features of human commonsense reasoning and folk psychology. This makes it end up making different mistakes than a human would. 2. Problems in AI When simulating or creating AI, we may run into problems around the following traits-
  • 4. Python AI Tutorial 2 https://data-flair.training/big-data-hadoop/ a. Reasoning and Problem Solving Earlier, algorithms mimicked step-by-step reasoning that humans display. AI research later introduced methods to work with incomplete and uncertain information. However, as the problems grew larger, these algorithms became exponentially slower. Humans often use fast, intuitive judgments instead of a step-by-step deduction. b. Knowledge Representation Some expert systems accumulate esoteric knowledge from experts. A comprehensive commonsense knowledge base holds many things including- objects, properties, categories, relations between objects, situations, events, states, time, causes, effects, knowledge about knowledge, and other domains. When we talk about ontology, we talk about what exists. Under knowledge representation, we observe the following domains-  Default reasoning; Qualification problem  Breadth of commonsense knowledge  Subsymbolic form of some commonsense knowledge c. Planning An intelligent agent should be capable of setting goals, achieving them, and visualizing the future. Assuming it is the only system in the world, an agent can be certain of their actions’ consequences. If there are more actors, the agent should be able to reason under uncertainty. For this, it should be able to assess its environment, make predictions, evaluate predictions, and adapt according to its assessment. With multi-agent planning, we observe multiple agents cooperate and compete to achieve a goal.
  • 5. Python AI Tutorial 3 https://data-flair.training/big-data-hadoop/ d. Learning AI is related to Machine Learning in some way. We have often talked about unsupervised learning- the ability to take a stream of input and find patterns in it. This includes classification and numerical regression. We classify things into categories and produce a function that describes how inputs and outputs relate and change each other. These function approximators. e. Natural Language Processing NLP is an area of Computer Science that gives machines the ability to read the human language and understand it. With it, we can retrieve information, mine text, answer questions, and translating using machines. We use strategies like keyword spotting and lexical affinity. f. Perception With machine perception, we can take input from sensors like cameras, microphones, and lidar to recognize objects. We can use it for applications like speech recognition, facial recognition, and object recognition. We can also analyze visual input with Computer Vision. g. Motion and Manipulation With AI, we can develop advanced robotic arms and more for modern factories. These can use the experience to learn to deal with friction and gear slippage. The term Motion Planning means dividing a task into primitives like individual joint movements. h. Social Intelligence “Should I go to bed, Siri?”, I ask as I reach home from a busy day. “I think you should sleep on it”, Siri quips back. Affective Computing, an umbrella term, encompasses systems that can recognize, interpret, process, or simulate human affects/ emotions. In this domain, we have observed textual sentiment analysis and multimodal affect analysis. The aim is to allow AI to understand others’ motives and emotional states to predict their actions. It can mimic human emotion and expressions to appear sensitive and interact with humans. A robot with rudimentary social skills is Kismet, developed at MIT by Dr. Cynthia Breazeal. i. General Intelligence Lately, many AI researchers have begun working on tractable narrow AI applications like a medical diagnosis. The future could hold machines with Artificial General Intelligence(AGI) that combines such narrow skills. Google’s DeepMind will be an example of this. 3. Approaches to Artificial Intelligence We observe four different approaches to AI-
  • 6. Python AI Tutorial 4 https://data-flair.training/big-data-hadoop/ Python AI Tutorial – AI Approaches a. Cybernetics and Brain Simulation Some machines exist that use electronic networks to display rudimentary intelligence. b. Symbolic This approach considers reducing human intelligence to symbolic manipulation. This includes cognitive simulation, logic-based, anti-logic or scruffy, and knowledge-based approaches. c. Sub-Symbolic For processes of human cognition like perception, robotics, learning, and pattern recognition, sub-symbolic approaches came into picture. This includes approaches like embodied intelligence and computational intelligence and soft computing. d. Statistical Learning Statistical learning techniques like HMM and neural networks deliver better accuracy in practical domains like data mining. Limitations of HMM include that it cannot model the infinite possible combinations of natural language. 4. Python AI Tutorial – Artificial Intelligence Tools For AI, we have the following tools-
  • 7. Python AI Tutorial 5 https://data-flair.training/big-data-hadoop/ Python AI Tutorial – Artificial Intelligence Tools a. Search and Optimization To intelligently search through possible solutions and use reasoning to do so is a tool for AI. For real-world problems, simple exhaustive searches rarely suffice. This is because these have really large search spaces. This leads to a slow search or one that never ends. To get around this, we can use heuristics. b. Logic AI research uses different forms of logic. Propositional logics use truth functions like ‘or’ and ‘not’. The fuzzy set theory holds a degree of truth (values between 0 and 1) to vague statements. First-order logic adds quantifiers and predicates. Fuzzy logic helps with control systems to contribute vague rules. c. Probabilistic Methods for Uncertain Reasoning We often use tools like Bayesian networks for reasoning, learning, planning, and perception. We can also use probabilistic algorithms to filter, predict, smoothen, and explain streams of data. d. Classifiers and Statistical Learning Methods Classifiers and controllers work together. Consider an object. If it is shiny, the classifier knows it is a diamond. If it is shiny, the controller picks it up. But before inferring an action, a controller classifies conditions. As a function, a classifier matches patterns to find the closest match. Supervised learning puts each pattern into a predefined class.
  • 8. Python AI Tutorial 6 https://data-flair.training/big-data-hadoop/ e. Artificial Neural Networks ANNs are collections of nodes that are interconnected- inspired by the huge network of neurons in the human brain. Python AI Tutorial – Artificial Neural Networks Under these, we have categories like feedforward neural networks and recurrent neural networks. We will take up ANNs as a separate topic in another tutorial. f. Evaluating Progress Since AI is general purpose, there is no way to find out which domains it excels in. Games are a good benchmark to assess progress. Some of these include AlphaGo and StarCraft. 5. Python AI Tutorial – Applications of Artificial Intelligence Like we said, AI is pretty general-purpose. Here are a few domains it finds use in-  Automotive  Healthcare  Video games
  • 9. Python AI Tutorial 7 https://data-flair.training/big-data-hadoop/  Military  Finance and Economics  Art  Auditing  Advertising So, this was all in Python AI Tutorial. Hope you like our explanation. Next step to follow  Copy in Python – Shallow Copy and Deep Copy  NLTK Python Tutorial (Natural Language Toolkit)  Python Assert Statements | Assertion Error in Python  Python Speech Recognition - Artificial Intelligence