Introduction to Data Science
By
S.V.V.D.Jagadeesh
Sr. Assistant Professor
Dept of Artificial Intelligence & Data Science
LAKIREDDY BALI REDDY COLLEGE OF ENGINEERING
At the end of this unit, Student will be able to:
S.V.V.D.Jagadeesh
Thursday, January 2, 2025
Unit-II Outcomes
LBRCE
IDS
S.V.V.D.Jagadeesh
Thursday, January 2, 2025
Machine Learning
LBRCE
IDS
■ Finding oil fields, gold mines, or archeological sites based on existing sites
■ Finding place names or persons in text (classification)
S.V.V.D.Jagadeesh
Thursday, January 2, 2025
Applications of ML in Data Science
LBRCE
IDS
■ Identifying people based on pictures or voice recordings
■ Recognizing birds based on their whistle
■ Identifying profitable customers
■ Proactively identifying car parts that are likely to fail
■ Identifying tumors and diseases
■ Predicting the amount of money a person will spend on product X
S.V.V.D.Jagadeesh
Thursday, January 2, 2025
Applications of ML in Data Science
LBRCE
IDS
■ Predicting the number of eruptions of a volcano in a period
■ Predicting your company’s yearly revenue
■ Predicting which team will win the Champions League in soccer
Sometimes Machine Learning can also be used to find the root cause of an action
■ Understanding and optimizing a business process, such as determining which products add value to a product line
■ Discovering what causes diabetes
■ Determining the causes of traffic jams
S.V.V.D.Jagadeesh
Thursday, January 2, 2025
Applications of ML in Data Science
LBRCE
IDS
S.V.V.D.Jagadeesh
Thursday, January 2, 2025
Python Tools Used in ML
LBRCE
IDS
■ SciPy is a library that integrates fundamental packages often used in scientific computing such as NumPy, matplotlib, Pandas, and SymPy.
■ NumPy gives you access to powerful array functions and linear algebra functions.
■ Matplotlib is a popular 2D plotting package with some 3D functionality.
■ Pandas is a high-performance, but easy-to-use, data-wrangling package.
It introduces dataframes to Python, a type of in-memory data table.
It’s a concept that should sound familiar to regular users of R.
S.V.V.D.Jagadeesh
Thursday, January 2, 2025
Packages for Working with Data in Memory
LBRCE
IDS
■ SymPy is a package used for symbolic mathematics and computer algebra.
■ StatsModels is a package for statistical methods and algorithms.
■ Scikit-learn is a library filled with machine learning algorithms.
■ RPy2 allows you to call R functions from within Python.
R is a popular open source statistics program.
■ NLTK (Natural Language Toolkit) is a Python toolkit with a focus on text analytics
S.V.V.D.Jagadeesh
Thursday, January 2, 2025
Packages for Working with Data in Memory
LBRCE
IDS
■ Numba and NumbaPro—These use just-in-time compilation to speed up applications written directly in Python and a few annotations.
NumbaPro also allows you to use the power of your graphics processor unit (GPU).
■ PyCUDA—This allows you to write code that will be executed on the GPU instead of your CPU and is therefore ideal for calculation-heavy applications.
It works best with problems that lend themselves to being parallelized and need little input compared to the number of required computing cycles. shortfall.
S.V.V.D.Jagadeesh
Thursday, January 2, 2025
Optimizing Operations
LBRCE
IDS
■ Cython, or C for Python—This brings the C programming language to Python.
C is a lower-level language, so the code is closer to what the computer eventually uses (bytecode).
The closer code is to bits and bytes, the faster it executes.
■ Blaze—Blaze gives you data structures that can be bigger than your computer’s main memory, enabling you to work with large data sets.
■ Dispy and IPCluster—These packages allow you to write code that can be distributed over a cluster of computers.
S.V.V.D.Jagadeesh
Thursday, January 2, 2025
Optimizing Operations
LBRCE
IDS
■ PP—Python is executed as a single process by default.
With the help of PP you can parallelize computations on a single machine or over clusters.
■ Pydoop and Hadoopy—These connect Python toHadoop, a common big data framework.
■ PySpark—This connects Python and Spark, an in-memory big data framework.
S.V.V.D.Jagadeesh
Thursday, January 2, 2025
Optimizing Operations
LBRCE
IDS
S.V.V.D.Jagadeesh
Thursday, January 2, 2025
Summary
LBRCE
IDS