0% found this document useful (0 votes)
7 views

Chapter 6 Python Libraries for Machine Learning

The document provides an overview of various Python libraries used for Machine Learning, including NumPy, SciPy, Scikit-learn, Theano, TensorFlow, Keras, PyTorch, Pandas, Matplotlib, and Seaborn. Each library is described in terms of its purpose, functionality, and relevance to Machine Learning tasks. The document emphasizes the open-source nature of many of these libraries, making them accessible for use in various projects.
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)
7 views

Chapter 6 Python Libraries for Machine Learning

The document provides an overview of various Python libraries used for Machine Learning, including NumPy, SciPy, Scikit-learn, Theano, TensorFlow, Keras, PyTorch, Pandas, Matplotlib, and Seaborn. Each library is described in terms of its purpose, functionality, and relevance to Machine Learning tasks. The document emphasizes the open-source nature of many of these libraries, making them accessible for use in various projects.
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/ 21

Mapua University

Python
libraries for
Machine
Learning
CS158 - 1 Artificial Intelligence
School of Information Technology
Raymond B. Sedilla, MSIT
Python libraries for Machine Learning
Numpy
NumPy is a Python library used for working with arrays.

It also has functions for working in domain of linear algebra, fourier


transform, and matrices.

NumPy was created in 2005 by Travis Oliphant. It is an open source project


and you can use it freely.

NumPy stands for Numerical Python.

https://www.w3schools.com/python/python_intro.asp
Scipy
SciPy is a scientific computation library that uses NumPy underneath.

SciPy stands for Scientific Python.

It provides more utility functions for optimization, stats and signal


processing.

Like NumPy, SciPy is open source so we can use it freely. SciPy was created
by NumPy's creator Travis Olliphant.

https://www.w3schools.com/python/python_intro.asp
Original Image Tinted Image
Scikit Learn
Scikit-learn is one of the most popular ML libraries for classical ML
algorithms. It is built on two basic Python libraries, viz., NumPy and SciPy.

Scikit-learn supports most of the supervised and unsupervised learning


algorithms. Scikit-learn can also be used for data-mining and data analysis,
making it an excellent tool for starting with ML.
Theano
Theano is a popular python library is used to define, evaluate and optimize
mathematical expressions efficiently involving multi-dimensional arrays.

It is achieved by optimizing the utilization of CPU and GPU. It is extensively


used for unit-testing and self-verification to detect and diagnose different
types of errors.

Theano is a very powerful library that has been used in large-scale


computationally intensive scientific projects for a long time but is
approachable and straightforward enough to be used by individuals for
their projects.
TensorFlow
TensorFlow is a popular open-source library for high-performance
numerical computation developed by the Google Brain team in Google.

Tensorflow is a framework that involves defining and running computations


involving tensors.

It can train and run deep neural networks that can be used to develop
several AI applications. TensorFlow is widely used in the field of deep
learning research and application.
Keras
Keras is a very popular Machine Learning library for Python. It is a high-level
neural networks API capable of running on top of TensorFlow, CNTK, or
Theano.

It can run seamlessly on both CPU and GPU. Keras makes it really for ML
beginners to build and design a Neural Network. One of the best things
about Keras is that it allows for easy and fast prototyping.
PyTorch
PyTorch is a popular open-source Machine Learning library for Python
based on Torch, an open-source Machine Learning library implemented in C
with a wrapper in Lua.

It has an extensive choice of tools and libraries that support Computer


Vision, Natural Language Processing(NLP), and many more ML programs. It
allows developers to perform computations on Tensors with GPU
acceleration and also helps in creating computational graphs.
Pandas
Pandas is a popular Python library for data analysis. It is not directly related
to Machine Learning as we know that the dataset must be prepared before
training.

In this case, Pandas comes handy as it was developed specifically for data
extraction and preparation. It provides high-level data structures and a wide
variety of tools for data analysis. It provides many inbuilt methods for
groping, combining, and filtering data.
Matplotlib
Matplotlib is a very popular Python library for data visualization. Like
Pandas, it is not directly related to Machine Learning.

It mainly comes in handy when a programmer wants to visualize the


patterns in the data. It is a 2D plotting library used for creating 2D graphs
and plots.

A module named pyplot makes it easy for programmers to plot as it


provides features to control line styles, font properties, formatting axes, etc.
It offers various kinds of graphs and plots for data visualization, viz.,
histogram, error charts, bar charts, etc.
Seaborn
Seaborn is a library mainly used for statistical plotting in Python. It is built
on Matplotlib and provides beautiful default styles and color palettes to
make statistical plots more attractive.

You might also like