Module 4 - Writing Functions in Python
Module 4 - Writing Functions in Python
Atul Bengeri
Sunday, December 11, 2022
Coverage
‐ Recap
‐ Python Libraries
Predictive Modeling
Recap
Data Visualization
Recap
Programming
https://www.khanacademy.org/computing/computer-programming/programming/intro-to-programming/v/programming-intro
Recap
Python Variables
A variable is initially declared to have a specific data type, and any value assigned to it during its lifetime
must always have that type.
Data Types:
Integer, Long Integer, Float, and String.
Data Structures
1.The plotting library that provides an object-oriented API for integrating plots into applications.
2. Matplotlib can represent the data in several visualizations, we can plot Histograms, bar graphs, scatter
diagrams, area graphs, pie charts and more.
1.Data visualization library which provides a high-level interface to create attractive and informative
statistical graphs
2. Seaborn provides a variety of visualization models that are less complex and with less syntax.
1. Scikit Learn focuses on data modeling. It provides a range of supervised & unsupervised learning algorithms.
2. Classification: Spam detection, image recognition
3. Grouping
4. Regression: customer segmentation, a grouping of experience results
5. Dimensional reduction: Visualization, Increased efficiency
6. Model choice: Improved accuracy through parameter adjustment
1. It is an artificial intelligence library that helps developers create large-scale neural networks with many layers
2. Makes it easy to build deep learning models and enables easy deployment of ML-powered applications.
1. Keras is Tensorflow’s high-level API for the development and training of Deep Neural Network code.
2. It is an open-source neural network library in Python.
3. Statistical modeling, working with images and text is much easier, especially with the simplified coding for
deep learning.
1. It is the ultimate Python package that provides easy calculations for descriptive statistics and
estimation for statistical models.
2. Linear regression, Correlation, Ordinary Least Squares (OLS), Survival analysis, Generalized linear
models and Bayesian model, One-dimensional and two-dimensional analysis, Hypothesis testing
1. Used to create and display numbers, update numbers, hover over text for details.
2. Plotly also has the additional function of sending data to cloud servers
3. Very useful for Scientific graphics: Contour, Ternary, Log, Quiver, Carpet, Radar, Windrose heat maps and Polar
Plots
Function and Arguments
Functions Functions
Functions Functions
that are that are
that call that are
inbuilt in defined
itself Un-named
Python by users
input()
print() lambda arguments : expression
sum() def function_name (args):
min()
max()
Identifier
https://learnpython.com/blog/python-modules-packages-libraries-frameworks/