Python for Data and AI
Scientific Python for AI work: NumPy, pandas, plotting and notebooks.
AI-110 Year 1 3 credits 12 lessons · 6 h 2 min
Offered by HSM University · Artificial Intelligence
This is the American version of this course. See the Canadian version.
What you'll learn
- Write clear Python using core types, containers, comprehensions, functions and exception handling, and manage isolated environments with recorded package versions
- Read and write files, CSV and JSON safely, extract fields from text with string methods and regular expressions, and handle time zones and daylight saving time correctly
- Compute with NumPy arrays using axes, vectorized operations, broadcasting, Boolean masks, matrix multiplication and seeded random numbers
- Use Monte Carlo simulation, the bootstrap and permutation tests to estimate probabilities, uncertainty and the significance of differences
- Load, clean, filter, group, join and resample tabular and time-series data with pandas, handling missing values deliberately
- Profile and clean messy data with logged decisions, detect outliers robustly, prepare features and avoid data leakage
- Explore data with Matplotlib charts suited to each question, identify outliers and relationships, and interpret correlation honestly
- Summarize distributions, build confidence intervals, compare groups and proportions, recognize Simpson's paradox and interpret simple regression
- Train, evaluate and tune scikit-learn models with pipelines, cross-validation and cost-based thresholds
- Query relational databases with parameterized SQL, combine SQL with pandas, handle data larger than memory and collect data from APIs robustly
- Make analyses reproducible with clean notebooks, controlled seeds, pinned environments, versioned data, an organized project, Git and tests
- Carry a project from problem framing through baseline, model, error analysis, explanation and deployment with monitoring
Course content
12 lessons · 6 h 2 min total · final exam
- 1 Python refresher and environments 31 min · quiz
- 2 Files, text, JSON and dates 31 min · quiz
- 3 Arrays and vectorized computation with NumPy 30 min · quiz
- 4 Simulation, sampling and the bootstrap 31 min · quiz
- 5 Data frames with pandas 32 min · quiz
- 6 Cleaning and preparing data 30 min · quiz
- 7 Plotting and exploratory analysis 30 min · quiz
- 8 Statistics for data analysis 29 min · quiz
- 9 Machine learning with scikit-learn 27 min · quiz
- 10 Databases, SQL and data at scale 28 min · quiz
- 11 Reproducible notebooks and projects 32 min · quiz
- 12 An end-to-end project: from question to working model 31 min · quiz
- E Final exam 20 questions
Requirements
Recommended background. You can start any course at any time.
Description
Scientific Python for AI work: NumPy, pandas, plotting and notebooks.
Part of the Science stream, typically taken in year 1.