[go: up one dir, main page]

0% found this document useful (0 votes)
54 views5 pages

Teoh Teik Toe Python For Artificial Intelligence 2022

The document introduces Python and discusses why it is popular for artificial intelligence. Python is easy to use, flexible, builds better analytics tools, is important for deep learning, and has a huge community base. It has become one of the dominant languages for machine learning, data science, and artificial intelligence.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
54 views5 pages

Teoh Teik Toe Python For Artificial Intelligence 2022

The document introduces Python and discusses why it is popular for artificial intelligence. Python is easy to use, flexible, builds better analytics tools, is important for deep learning, and has a huge community base. It has become one of the dominant languages for machine learning, data science, and artificial intelligence.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Chapter 1

Python for Artificial Intelligence

Abstract Python is a very popular programming language with many great features
for developing Artificial Intelligence. Many Artificial Intelligence developers all
around the world use Python. This chapter will provide an introduction to the Python
Programming Language before covering its history and common uses and explain
why it is so popular among Artificial Intelligence developers.

Learning outcomes:
• Introduce the Python programming language.

“Python has gotten sufficiently weapons grade that we don’t descend into R
anymore. Sorry, R people. I used to be one of you but we no longer descend into
R.” – Chris Wiggins
Python is a general-purpose programming language conceived in 1989 by Dutch
programmer Guido van Rossum.
Python is free and open source, with development coordinated through the
Python Software Foundation.
Python has experienced rapid adoption in the last decade and is now one of the
most commonly used programming languages.

1.1 Common Uses

Python is a general-purpose language used in almost all application domains such


as
• Communications
• Web development (Flask and Django covered in the future chapters)
• CGI and graphical user interfaces
• Game development
• AI and data science (very popular)

© The Author(s), under exclusive license to Springer Nature Singapore Pte Ltd. 2022 3
T. T. Teoh, Z. Rong, Artificial Intelligence with Python,
Machine Learning: Foundations, Methodologies, and Applications,
https://doi.org/10.1007/978-981-16-8615-3_1
4 1 Python for Artificial Intelligence

• Multimedia, data processing, security, etc.


Python is beginner-friendly and routinely used to teach computer science and
programming in the top computer science programs.
Python is particularly popular within the scientific and data science communities.
It is steadily replacing familiar tools like Excel in the fields of finance and
banking.

1.1.1 Relative Popularity

The following chart, produced using Stack Overflow Trends, shows one measure of
the relative popularity of Python.

The figure indicates not only that Python is widely used but also that adoption of
Python has accelerated significantly since 2012.
This is driven at least in part by uptake in the scientific domain, particularly in
rapidly growing fields like data science.
For example, the popularity of pandas, a library for data analysis with Python,
has exploded, as seen here.
(The corresponding time path for MATLAB is shown for comparison.)
1.1 Common Uses 5

Note that pandas takes off in 2012, which is the same year that we see Python’s
popularity begins to spike in the first figure.
Overall, it is clear that
• Python is one of the most popular programming languages worldwide.
• Python is a major tool for scientific computing, accounting for a rapidly rising
share of scientific work around the globe.

1.1.2 Features

Python is a high-level language suitable for rapid development.


It has a relatively small core language supported by many libraries.
Multiple programming styles are supported (procedural, object-oriented, func-
tional, etc.)
Python is interpreted rather than compiled.

1.1.3 Syntax and Design

One nice feature of Python is its elegant syntax—we will see many examples later
on.
6 1 Python for Artificial Intelligence

Elegant code might sound superfluous, but in fact it is highly beneficial because
it makes the syntax easy to read and easy to remember.
Remembering how to read from files, sort dictionaries, and other such routine
tasks means that you do not need to break your flow in order to hunt down correct
syntax.
Closely related to elegant syntax is an elegant design.
Features like iterators, generators, decorators, and list comprehensions make
Python highly expressive, allowing you to get more done with less code.
Namespaces improve productivity by cutting down on bugs and syntax errors.

1.2 Scientific Programming

Python has become one of the core languages of scientific computing.


It is either the dominant player or a major player in
• Machine learning and data science
• Astronomy
• Artificial intelligence
• Chemistry
• Computational biology
• Meteorology
Its popularity in economics is also beginning to rise.

1.3 Why Python for Artificial Intelligence

Python is very popular for Artificial Intelligence developers for a few reasons:
1. It is easy to use:
• Python is easy to use and has a fast learning curve. New data scientists can easily
learn Python with its simple to utilize syntax and better comprehensibility.
• Python additionally gives a lot of data mining tools that help in better handling
of the data, for example, Rapid Miner, Weka, Orange, and so on.
• Python is significant for data scientists since it has many useful and easy to use
libraries like Pandas, NumPy, SciPy, TensorFlow, and many more concepts that
a skilled Python programmer must be well acquainted with.
2. Python is flexible:
• Python not only lets you create software but also enables you to deal with the
analysis, computing of numeric and logical data, and web development.
1.3 Why Python for Artificial Intelligence 7

• Python has additionally become ubiquitous on the web, controlling various


prominent websites with web development frameworks like TurboGears, Django,
and Tornado.
• It is perfect for developers who have the talent for application and web develop-
ment. No big surprise, most data scientists favor this to the next programming
alternatives available in the market.
3. Python builds better analytics tools:
• Data analytics is a necessary part of data science. Data analytics tools give infor-
mation about different frameworks that are important to assess the performance
in any business. Python programming language is the best choice for building
data analytics tools.
• Python can easily provide better knowledge, get examples, and correlate data
from big datasets. Python is additionally significant in self-service analytics.
Python has likewise helped the data mining organizations to all the more likely
to handle the data for their sake.
4. Python is significant for deep learning:
• Python has a lot of packages like TensorFlow, Keras, and Theano that are
assisting data scientists with developing deep learning algorithms. Python gives
superior help with regard to deep learning algorithms.
• Deep learning algorithms were inspired by the human brain architecture. It
manages to build artificial neural networks that reenact the conduct of the human
mind. Deep learning neural networks give weight and biasing to different input
parameters and give the desired output.
5. Huge community base:
• Python has a gigantic community base of engineers and data scientists like
Python.org, Fullstackpython.com, realpython.com, etc. Python developers can
impart their issues and thoughts to the community. Python Package Index is an
extraordinary place to explore the different skylines of the Python programming
language. Python developers are continually making enhancements in the lan-
guage that is helping it to turn out to be better over time.

You might also like