A Hands-on Introduction
to Machine Learning
Python
What is Python?
A scripting language Easy to learn, easy to use,
available on every platform quite extensible and robust
Where is Python?
Many UNIX systems have it pre-installed
Free to download and install for all platforms
Command-line:
$ python
IDE (integrated development environment)
Eclipse
Jupyter notebook
Anaconda
Spyder
Basics of Python
One-line examples
Arithmetic operators
Logical operators
Data types
Control structures
Condition checking with ‘if’ and ‘else’
While loop
For loop
Statistics with Python
Storing a set of numbers
Numpy library
Doing descriptive analysis
Visualization with bar graph
Working with data
Loading external data and using pandas library
Plotting the data
Correlation
Example
Example
Example
Example
Example
Example
Example
Example
Example
Example
Practice
Useful formulas from differential
calculus
Useful formulas from differential
calculus
Did you spot the mistake?