Skip to main content

Instructor-led training

Python for Data Scientist and Machine Learning Practitioners Training in Beachwood, Ohio

This is a 5 - day course that provides a ramp - up to using Python for data science/machine learning.

What you'll learn

This is a 5 - day course that provides a ramp - up to using Python for data science/machine learning. Starting with the basics, it progresses to the most important Python modules for working with data, from arrays, to statistics, to plotting results. The material is geared towards data scientists and engineers. This is an intense, hands - on, programming class. All concepts are reinforced by informal practice during the lecture followed by lab exercises. Many labs build on earlier labs which helps students retain the earlier material. Python for Programming, Scikit-Learn and Tensorflow is a practical introduction to a working programming language, not an academic overview of syntax and grammar. Students will immediately be able to use Python to complete tasks in the real world.

Private Training for Teams

This course is offered as private, instructor-led training for organizations, onsite in Beachwood, Ohio or live online. Dates, delivery format, and course content are arranged around your team's requirements.

This course is not currently scheduled as a public class for individual enrollment.

Request Group Training

Prerequisites

Students must have at least 1 year of hands on data science experience and must be comfortable working with a variety of machine learning algorithms. Students should also be comfortable working with files and folders, and should not be afraid of the command line in Linux, Windows, or MacOS.

Course Outline

The Python Environment
Starting
Python
If the interpreter is not in your PATHs
Using the interpreter
Trying a few commands
The help() function
Running a Python script
Python scripts on UNIX
Python editors and IDEs
 
Getting Started
Using variables
Keywors
Built-in functions
Strings
Single-quoted string literals
Triple-quoted string literals
Raw string literals
Unicode literals
String operators and expressions
Converting among types
Writing to the screen
String formatting
Legacy string formatting
Command line parameters
Reading from the keyboard
 
Flow Control
About flow control
What’s with the white space?
if andelif
Conditional expressions
Relational and Boolean operators
while loops
Alternateways to exit as loop
 
Lists and Tuples
About Sequences
Lists
Tuples
Indexing and slicing
Iterating through a sequence
Functions for all sequences
Using enumerate()
Operators and keywords for sequences
The xrange()function
Nested sequences
List comprehensions
Generator expressions
 
Working with Files
Text file I/O
Opening a text file
The with block
Reading a text file
Writing a text file
Python for Scientists
“Binary” (raw, or non-delimited) data
 
Dictionaries and Sets
About dictionaries
When to use dictionaries
Creating dictionaries
Getting dictionary values
Iterating through a dictionary
Reading file data into a dictionary
Counting with dictionaries
About sets
Creating sets
Working with sets
 
Functions
Defining a function
Function parameters
Global variables
Variable scope
Returning values
 
Exception Handling
Syntax errors
Exceptions
Handling exceptions with try
Handling multiple exceptions
Handling generic exceptions
Ignoring exceptions
Using else
Cleaning up with finally
Re-raising exceptions
Raising a new exception
The standard exception hierarchy
 
OS Services
The os module
Environment variables
Launching external processes
Paths, directories, and filenames
Walking directory trees
Dates and times
Sending email
 
Pythonic Idioms
The Zen of Python
Common Python idioms
Packing and unpacking
Lambda functions
List comprehensions
Generators vs. iterators
Generator expressions
String tricks
 
Modules and Packages
What is a module?
The import statement
Where did the.pyc file come from?
Module search path
Zipped libraries
Creating Modules
Packages
Module aliases
When the batteries aren’t included
 
Objectives
Defining classes
Instance objects
Instance attributes
Methods
__init__
Properties
Class data
Inheritance
Multiple Inheritance
Base classes
Special methods
Pseudo-private variables
Static methods
 
Developer Tools
Program development
Comments
pylint
Customizing pylint
Unit testing
The unittest module
Creating a test class
Establishing success or failure
Startup and Cleanup
Running the tests
The Python debugger
Starting debug mode
Stepping through a program
Setting breakpoints
Debugging command reference
Benchmarking
 
XML and JSON
About XML
Normal approaches to XML
Which module to use?
Getting started with ElementTree
How ElementTree works
Creating a new XML Document
Parsing an XML Document
Navigating the XML Document
Using XPath
Advanced XPath
 
iPython
About iPython
Features of iPython
Starting iPython
Tab completion
Magic commands
Benchmarking
External commands
Enhanced help
Notebooks
 
numpy
Python’s scientific stack
numpy overview
Creating arrays
Creating ranges
Working with arrays
Shapes
Slicing and indexing
Indexing with Booleans
Stacking
Iterating
Tricks with arrays
Matrices
Data types
numpy functions
 
scipy
About scipy
Polynomials
Vectorizing functions
Subpackages
Getting help
Weave
 
A Tour of scipy subpackages
cluster
constants
fftpack
integrate
interpolate
io
linalg
ndimage
odr
optimize
signal
sparse
spatial
special
stats
 
pandas
About
pandas
Pandas architecture
Series
DataFrames
Data Alignment
Index Objects
Basic Indexing
Broadcasting
Removing entries
Time series
Reading Data
 
matplotlib
About matplotlib
matplotlib architecture
matplotlib Terminology
matplotlib keeps state
What else can you do?
 
Python Imaging Library
The PIL
Supported image file types
The Image class
Reading and writing
Creating thumbnails
Coordinate system
Cropping an
d pasting
Rotating, resizing, and flipping
Enhancing
 
A Tour of Scikit-Learn subpackages
Loading, Training and Testing Data
Procesing Data
  Standardization
  Normalization
  Binarization
  Encoding Categorical Features
  Inputing Missing Values
  Generating Polynomial Features
Creating a Model
  Supervised Linear Estimators
    Linear Regression
    Support Machine Vectors (SVM)
    Naive Bayes
    KNN
  Unsupervised Learning Estimators
    Principle Component Analysis (PCA)
    K Means
Model Fitting
  Supervised Learning
  Unsupervised Learning
Prediction
  Supervised Estimators
  Unsupervised Estimators
Model Performance Evaluation
   Classification
     Accuracy Score
    Classification Report
    Confusion Matrix
  Regression Matrix
    Mean Absolute Error
    Mean Squared Error
    R Score
   Clustering Matrix
    Adjusted Rand Index
    Homogeneity
    V-measure
  Cross-Validation
Model Tuning
  Grid Search
  Randomized Parameter Optimization
 
Tensorflow
Installation
Class and Function Exploration
Creating First Graph and Running Session
Managing Graphs
Lifecycle of a Node Value
Linear Regression
Convolutional Neural Network
    Architecture
    Convolutional Layer
    CNN Architectures

What makes this material hard to master

The difficulty is breadth. The syllabus starts with the interpreter, variables and flow control, then moves through the data stack (numpy, scipy, pandas, matplotlib), scikit-learn, and finally TensorFlow. Each layer assumes the previous one, so a gap early on shows up later as confusing errors.

  • Core language habits. Sequences, slicing, list comprehensions, generator expressions, dictionaries and sets are the vocabulary of every later library. Function parameters and variable scope are where subtle bugs start, for example a mutable default argument that persists between calls.
  • Array thinking. The numpy topics (shapes, Boolean indexing, stacking, data types) replace loops with whole-array operations. A common mistake is writing loops that numpy should handle, or misreading a shape mismatch.
  • Index-based behavior in pandas. Series, DataFrames, index objects and data alignment mean operations match on labels, not position. Results can silently contain missing values.
  • Evaluation traps. The scikit-learn material covers standardization, normalization, encoding, imputation, estimators, metrics, cross-validation and grid search. Accuracy alone can mislead, which is why the confusion matrix and classification report matter. Fitting a preprocessing step on all the data before splitting leaks information.
  • Deferred execution. In the TensorFlow section, building a graph is separate from running a session. The topics on managing graphs and the lifecycle of a node value address the usual confusion about when a value exists.

Because many labs build on earlier ones, the order matters. Skipping the language fundamentals tends to slow down the later modules.

Who it suits and what to take around it

The course suits data scientists and engineers who already have at least a year of hands-on data science experience and know a range of machine learning algorithms, but need a working command of Python for the job. Comfort with files, folders and the command line is expected, since the syllabus covers running scripts, command line parameters, environment variables and the os module.

If your machine learning background is thinner than the prerequisites assume, Introduction to Machine Learning with Python is a shorter introductory course that builds the concepts first. After this course, Machine Learning using Python is a natural next step for applying the modeling workflow in more depth. The Machine Learning courses and learning guide shows other routes.

Illustrative scenarios

The scenarios below are illustrations of how the course material can be applied. They are not descriptions of specific organizations or of the course's lab exercises.

  • From exploratory scripts to maintainable code. A team might have analysis code scattered across ad hoc scripts. The syllabus topics on functions, exception handling, modules and packages, pylint, unittest and the Python debugger are the tools for turning it into something testable and reusable.
  • Preparing mixed data for modeling. A team might receive tabular data with time stamps, missing values and categorical fields, plus some feeds in XML or JSON. They could parse the feeds with ElementTree, load and align the data in pandas, impute and encode it with scikit-learn, and compare SVM, Naive Bayes and KNN using cross-validation and grid search.
  • Image-oriented experiments. A group exploring image classification might use the Python Imaging Library to crop, resize and enhance images, then move to the convolutional layer and CNN architecture topics in TensorFlow.

Using AI coding assistants with these topics

AI coding assistants are useful for drafting file-handling code, dictionary-based counting, plotting boilerplate, parsing helpers and unit-test skeletons. They also help explain unfamiliar numpy or pandas calls. You still need to understand the material, because you are responsible for judging the output.

They tend to fail in these places:

  • Library versions. Suggestions often use APIs from a different release of scikit-learn, pandas or TensorFlow than the one installed. This is especially likely with TensorFlow, where graph-and-session code differs from other styles.
  • Shapes and alignment. Generated numpy and pandas code can run but give wrong results because of broadcasting or index alignment.
  • Evaluation mistakes. An assistant may fit scalers or imputers before the train/test split, or report only accuracy on an imbalanced problem.
  • Edge cases. Check encodings, empty input and path handling in file and OS code.

To verify, run the code on small inputs where you know the answer, inspect shapes and dtypes, write unittest cases, run pylint, and step through suspicious code in the debugger. Confirm that a model's metrics hold up under cross-validation, not on a single split.

Frequently asked questions

What level is this course?

It is a general-level, five-day, hands-on programming class. It begins with Python basics but is aimed at people who already have data science experience, as the prerequisites require.

What should I know before attending?

At least one year of hands-on data science experience, comfort with a variety of machine learning algorithms, and comfort with files, folders and the command line on Linux, Windows or macOS.

What does the course cover?

Python fundamentals, including strings, sequences, dictionaries, functions, exceptions, classes, modules, testing and debugging. It then covers XML and JSON, iPython, numpy, scipy, pandas, matplotlib and the Python Imaging Library. The final modules cover scikit-learn (preprocessing, estimators, evaluation, tuning) and TensorFlow (graphs, linear regression, convolutional networks).

Can this be delivered privately for our team?

Yes. HSG delivers private training for organizations, either onsite at your location or live online.

Can the content be customized?

Private courses can be customized, including tailoring to the technology versions your organization uses. To discuss your needs, request a training proposal at /Contact?course=hsg_8dd80d133416d4891517840294778.

Training locations

Python for Data Scientist and Machine Learning Practitioners training across the U.S. and beyond.

We provide private Python for Data Scientist and Machine Learning Practitioners training for organizations, onsite at your location or live online, throughout the United States and internationally.

View all Python for Data Scientist and Machine Learning Practitioners training locations

Train your team with HSG

Private, instructor-led training customized for your organization.

  • Onsite or live online delivery
  • Customized curriculum
  • For a single employee or an entire team
  • Flexible scheduling
  • Experienced instructors
Request Group Training

Questions? Call us at 303.377.6176
or email info@hartmannsoftware.com

Ready to train your team?

Let's customize this training for your organization.

Tell us about your employees, your goals, and your preferred schedule. We'll prepare a training proposal covering scope, delivery format, and pricing.