Machine Learning on Windows 10 – Part 5: Python Overview
In this post we will quickly review the Python language. Luckily, the language and syntax are very intuitive and easy to learn, especially for developers that are familiar with other languages. The most important thing about Python in regards to ML is the vast number of Math and Data libraries available. Much of Machine Learning is getting the data in theh correct format for processing. This usually requires much data loading and transformation before it can be used by an ML algorithm.
I found the following site is a really good resource for learning Python. I would recommend reading through Chapters 3 to Chapters 10. For chapter three, For Chapter 3, you can enter the “python” at the Ubuntu command line, or py within the Visual Studio Code Terminal.
Going through all the material and trying it out yourself will take some time, but it is important in order to move on to the Machine Learning projects. Chapter 4 reviews tuples and dictionaries. These structures will be used often in data analysis and ML.
Table of Contents and quick links:
Chapter 4 Data Types and Variables
- Introduction
- Numeric Data Types
- Boolean Data Type
- Strings
- Lists
- Dictionaries and Tuples
- Summary
- Review Questions
- Introduction
- NumPy
- Installing NumPy
- Python Lists and NumPy Arrays
- Array Creation
- Array Indexing
- Array Slicing
- Array Operations
- Systems of Linear Equations
- Summary
- Review Questions
Chapter 6 Plotting with Matplotlib
- Introduction
- What is Matplotlib?
- Installing Matplotlib
- Line Plots
- Saving plots
- Multi Line Plots
- Bar Charts and Pie Charts
- Error Bars
- Histograms
- Box Plots and Violin Plots
- Scatter Plots
- Plot annotations
- Subplots
- Plot Styles
- Contour Plots
- Quiver and Stream Plots
- 3D Surface Plots
- Summary
- Review Questions
Chapter 7 Functions and Modules
- Introduction
- Why Functions?
- First Function
- Functions with Multiple Arguments
- Functions with Default Arguments
- Calling Functions from Other Files
- Docstrings in Functions
- Positional and Keyword Arguments
- Summary
- Review Questions
- Introduction
- User Input
- Selection Statements
- If statements
- If Else Statements
- Try-Except Statements
- Flowcharts
- Summary
- Review Questions