Machine Learning, Data Science and Generative AI with Python
- Objectifs pédagogiques
- Sections du cours
- Avis
New! Updated with extra content and activities on generative AI, transformers, GPT, ChatGPT, the OpenAI API, and self attention based neural networks!
Machine Learning and artificial intelligence (AI) is everywhere; if you want to know how companies like Google, Amazon, and even Udemy extract meaning and insights from massive data sets, this data science course will give you the fundamentals you need. Data Scientists enjoy one of the top-paying jobs, with an average salary of $120,000 according to Glassdoor and Indeed. That’s just the average! And it’s not just about money – it’s interesting work too!
If you’ve got some programming or scripting experience, this course will teach you the techniques used by real data scientists and machine learning practitioners in the tech industry – and prepare you for a move into this hot career path. This comprehensive machine learning tutorial includes over 130 lectures spanning over 18 hours of video, and most topics include hands-on Python code examples you can use for reference and for practice. I’ll draw on my 9 years of experience at Amazon and IMDb to guide you through what matters, and what doesn’t.
Each concept is introduced in plain English, avoiding confusing mathematical notation and jargon. It’s then demonstrated using Python code you can experiment with and build upon, along with notes you can keep for future reference. You won’t find academic, deeply mathematical coverage of these algorithms in this course – the focus is on practical understanding and application of them. At the end, you’ll be given a final project to apply what you’ve learned!
The topics in this course come from an analysis of real requirements in data scientist job listings from the biggest tech employers. We’ll cover the A-Z of machine learning, AI, and data mining techniques real employers are looking for, including:
-
Deep Learning / Neural Networks (MLP’s, CNN’s, RNN’s) with TensorFlow and Keras
-
How modern generative AI works with transformers (GPT), self-attention, and large language models
-
Using the OpenAI API for GPT and ChatGPT
-
Fine-tuning GPT with your own training data (complete with an example of creating your own Commander Data from TV!)
-
Creating synthetic images with Variational Auto-Encoders (VAE’s) and Generative Adversarial Networks (GAN’s)
-
Data Visualization in Python with MatPlotLib and Seaborn
-
Transfer Learning
-
Sentiment analysis
-
Image recognition and classification
-
Regression analysis
-
K-Means Clustering
-
Principal Component Analysis
-
Train/Test and cross validation
-
Bayesian Methods
-
Decision Trees and Random Forests
-
Multiple Regression
-
Multi-Level Models
-
Support Vector Machines
-
Reinforcement Learning
-
Collaborative Filtering
-
K-Nearest Neighbor
-
Bias/Variance Tradeoff
-
Ensemble Learning
-
Term Frequency / Inverse Document Frequency
-
Experimental Design and A/B Tests
-
Feature Engineering
-
Hyperparameter Tuning
…and much more! There’s also an entire section on machine learning with Apache Spark, which lets you scale up these techniques to « big data » analyzed on a computing cluster.
If you’re new to Python, don’t worry – the course starts with a crash course. If you’ve done some programming before, you should pick it up quickly. This course shows you how to get set up on Microsoft Windows-based PC’s, Linux desktops, and Macs.
If you’re a programmer looking to switch into an exciting new career track, or a data analyst looking to make the transition into the tech industry – this course will teach you the basic techniques used by real-world industry data scientists. These are topics any successful technologist absolutely needs to know about, so what are you waiting for? Enroll now!
-
« I started doing your course… Eventually I got interested and never thought that I will be working for corporate before a friend offered me this job. I am learning a lot which was impossible to learn in academia and enjoying it thoroughly. To me, your course is the one that helped me understand how to work with corporate problems. How to think to be a success in corporate AI research. I find you the most impressive instructor in ML, simple yet convincing. » – Kanad Basu, PhD
-
1IntroductionLeçon vidéo
What to expect in this course, who it's for, and the general format we'll follow.
-
2Udemy 101: Getting the Most From This CourseLeçon vidéo
-
3Important noteLeçon de texte
-
4Installation: Getting StartedLeçon de texte
-
5[Activity] WINDOWS: Installing and Using Anaconda & Course MaterialsLeçon vidéo
-
6[Activity] MAC: Installing and Using Anaconda & Course MaterialsLeçon vidéo
-
7[Activity] LINUX: Installing and Using Anaconda & Course MaterialsLeçon vidéo
-
8Python Basics, Part 1 [Optional]Leçon vidéo
In a crash course on Python and what's different about it, we'll cover the importance of whitespace in Python scripts, and how to import Python modules.
-
9[Activity] Python Basics, Part 2 [Optional]Leçon vidéo
In part 2 of our Python crash course, we'll cover Python data structures including lists, tuples, and dictionaries.
-
10[Activity] Python Basics, Part 3 [Optional]Leçon vidéo
In this lesson, we'll see how functions work in Python.
-
11[Activity] Python Basics, Part 4 [Optional]Leçon vidéo
We'll wrap up our Python crash course covering Boolean expressions and looping constructs.
-
12Introducing the Pandas Library [Optional]Leçon vidéo
Pandas is a library we'll use throughout the course for loading, examining, and manipulating data. Let's see how it works with some examples, and you'll have an exercise at the end too.
-
13Types of Data (Numerical, Categorical, Ordinal)Leçon vidéo
We cover the differences between continuous and discrete numerical data, categorical data, and ordinal data.
-
14Mean, Median, ModeLeçon vidéo
A refresher on mean, median, and mode - and when it's appropriate to use each.
-
15[Activity] Using mean, median, and mode in PythonLeçon vidéo
We'll use mean, median, and mode in some real Python code, and set you loose to write some code of your own.
-
16[Activity] Variation and Standard DeviationLeçon vidéo
We'll cover how to compute the variation and standard deviation of a data distribution, and how to do it using some examples in Python.
-
17Probability Density Function; Probability Mass FunctionLeçon vidéo
Introducing the concepts of probability density functions (PDF's) and probability mass functions (PMF's).
-
18Common Data Distributions (Normal, Binomial, Poisson, etc)Leçon vidéo
We'll show examples of continuous, normal, exponential, binomial, and poisson distributions using iPython.
-
19[Activity] Percentiles and MomentsLeçon vidéo
We'll look at some examples of percentiles and quartiles in data distributions, and then move on to the concept of the first four moments of data sets.
-
20[Activity] A Crash Course in matplotlibLeçon vidéo
An overview of different tricks in matplotlib for creating graphs of your data, using different graph types and styles.
-
21[Activity] Advanced Visualization with SeabornLeçon vidéo
-
22[Activity] Covariance and CorrelationLeçon vidéo
The concepts of covariance and correlation used to look for relationships between different sets of attributes, and some examples in Python.
-
23[Exercise] Conditional ProbabilityLeçon vidéo
We cover the concepts and equations behind conditional probability, and use it to try and find a relationship between age and purchases in some fabricated data using Python.
-
24Exercise Solution: Conditional Probability of Purchase by AgeLeçon vidéo
Here we'll go over my solution to the exercise I challenged you with in the previous lecture - changing our fabricated data to have no real correlation between ages and purchases, and seeing if you can detect that using conditional probability.
-
25Bayes' TheoremLeçon vidéo
An overview of Bayes' Theorem, and an example of using it to uncover misleading statistics surrounding the accuracy of drug testing.
-
26[Activity] Linear RegressionLeçon vidéo
We introduce the concept of linear regression and how it works, and use it to fit a line to some sample data using Python.
-
27[Activity] Polynomial RegressionLeçon vidéo
We cover the concepts of polynomial regression, and use it to fit a more complex page speed - purchase relationship in Python.
-
28[Activity] Multiple Regression, and Predicting Car PricesLeçon vidéo
Multivariate models let us predict some value given more than one attribute. We cover the concept, then use it to build a model in Python to predict car prices based on their number of doors, mileage, and number of cylinders. We'll also get our first look at the statsmodels library in Python.
-
29Multi-Level ModelsLeçon vidéo
We'll just cover the concept of multi-level modeling, as it is a very advanced topic. But you'll get the ideas and challenges behind it.
-
30Supervised vs. Unsupervised Learning, and Train/TestLeçon vidéo
The concepts of supervised and unsupervised machine learning, and how to evaluate the ability of a machine learning model to predict new values using the train/test technique.
-
31[Activity] Using Train/Test to Prevent Overfitting a Polynomial RegressionLeçon vidéo
We'll apply train test to a real example using Python.
-
32Bayesian Methods: ConceptsLeçon vidéo
We'll introduce the concept of Naive Bayes and how we might apply it to the problem of building a spam classifier.
-
33[Activity] Implementing a Spam Classifier with Naive BayesLeçon vidéo
We'll actually write a working spam classifier, using real email training data and a surprisingly small amount of code!
-
34K-Means ClusteringLeçon vidéo
K-Means is a way to identify things that are similar to each other. It's a case of unsupervised learning, which could result in clusters you never expected!
-
35[Activity] Clustering people based on income and ageLeçon vidéo
We'll apply K-Means clustering to find interesting groupings of people based on their age and income.
-
36Measuring EntropyLeçon vidéo
Entropy is a measure of the disorder in a data set - we'll learn what that means, and how to compute it mathematically.
-
37[Activity] WINDOWS: Installing GraphvizLeçon vidéo
-
38[Activity] MAC: Installing GraphvizLeçon vidéo
-
39[Activity] LINUX: Installing GraphvizLeçon vidéo
-
40Decision Trees: ConceptsLeçon vidéo
Decision trees can automatically create a flow chart for making some decision, based on machine learning! Let's learn how they work.
-
41[Activity] Decision Trees: Predicting Hiring DecisionsLeçon vidéo
We'll create a decision tree and an entire "random forest" to predict hiring decisions for job candidates.
-
42Ensemble LearningLeçon vidéo
Random Forests was an example of ensemble learning; we'll cover over techniques for combining the results of many models to create a better result than any one could produce on its own.
-
43[Activity] XGBoostLeçon vidéo
XGBoost is perhaps the most powerful machine learning algorithm today, and it's really easy to use. We'll cover how it works, how to tune it, and run an example on the Iris data set showing how powerful XGBoost is.
-
44Support Vector Machines (SVM) OverviewLeçon vidéo
Support Vector Machines are an advanced technique for classifying data that has multiple features. It treats those features as dimensions, and partitions this higher-dimensional space using "support vectors."
-
45[Activity] Using SVM to cluster people using scikit-learnLeçon vidéo
We'll use scikit-learn to easily classify people using a C-Support Vector Classifier.
-
46User-Based Collaborative FilteringLeçon vidéo
One way to recommend items is to look for other people similar to you based on their behavior, and recommend stuff they liked that you haven't seen yet.
-
47Item-Based Collaborative FilteringLeçon vidéo
The shortcomings of user-based collaborative filtering can be solved by flipping it on its head, and instead looking at relationships between items instead of relationships between people.
-
48[Activity] Finding Movie Similarities using Cosine SimilarityLeçon vidéo
We'll use the real-world MovieLens data set of movie ratings to take a first crack at finding movies that are similar to each other, which is the first step in item-based collaborative filtering.
-
49[Activity] Improving the Results of Movie SimilaritiesLeçon vidéo
Our initial results for movies similar to Star Wars weren't very good. Let's figure out why, and fix it.
-
50[Activity] Making Movie Recommendations with Item-Based Collaborative FilteringLeçon vidéo
We'll implement a complete item-based collaborative filtering system that uses real-world movie ratings data to recommend movies to any user.
-
51[Exercise] Improve the recommender's resultsLeçon vidéo
As a student exercise, try some of my ideas - or some ideas of your own - to make the results of our item-based collaborative filter even better.
-
52K-Nearest-Neighbors: ConceptsLeçon vidéo
KNN is a very simple supervised machine learning technique; we'll quickly cover the concept here.
-
53[Activity] Using KNN to predict a rating for a movieLeçon vidéo
We'll use the simple KNN technique and apply it to a more complicated problem: finding the most similar movies to a given movie just given its genre and rating information, and then using those "nearest neighbors" to predict the movie's rating.
-
54Dimensionality Reduction; Principal Component Analysis (PCA)Leçon vidéo
Data that includes many features or many different vectors can be thought of as having many dimensions. Often it's useful to reduce those dimensions down to something more easily visualized, for compression, or to just distill the most important information from a data set (that is, information that contributes the most to the data's variance.) Principal Component Analysis and Singular Value Decomposition do that.
-
55[Activity] PCA Example with the Iris data setLeçon vidéo
We'll use sckikit-learn's built-in PCA system to reduce the 4-dimensions Iris data set down to 2 dimensions, while still preserving most of its variance.
-
56Data Warehousing Overview: ETL and ELTLeçon vidéo
Cloud-based data storage and analysis systems like Hadoop, Hive, Spark, and MapReduce are turning the field of data warehousing on its head. Instead of extracting, transforming, and then loading data into a data warehouse, the transformation step is now more efficiently done using a cluster after it's already been loaded. With computing and storage resources so cheap, this new approach now makes sense.
-
57Reinforcement LearningLeçon vidéo
We'll describe the concept of reinforcement learning - including Markov Decision Processes, Q-Learning, and Dynamic Programming - all using a simple example of developing an intelligent Pac-Man.
-
58[Activity] Reinforcement Learning & Q-Learning with GymLeçon vidéo
-
59Understanding a Confusion MatrixLeçon vidéo
What's a confusion matrix, and how do I read it?
-
60Measuring Classifiers (Precision, Recall, F1, ROC, AUC)Leçon vidéo
-
61Bias/Variance TradeoffLeçon vidéo
Bias and Variance both contribute to overall error; understand these components of error and how they relate to each other.
-
62[Activity] K-Fold Cross-Validation to avoid overfittingLeçon vidéo
We'll introduce the concept of K-Fold Cross-Validation to make train/test even more robust, and apply it to a real model.
-
63Data Cleaning and NormalizationLeçon vidéo
Cleaning your raw input data is often the most important, and time-consuming, part of your job as a data scientist!
-
64[Activity] Cleaning web log dataLeçon vidéo
In this example, we'll try to find the top-viewed web pages on a web site - and see how much data pollution makes that into a very difficult task!
-
65Normalizing numerical dataLeçon vidéo
A brief reminder: some models require input data to be normalized, or within the same range, of each other. Always read the documentation on the techniques you are using.
-
66[Activity] Detecting outliersLeçon vidéo
A review of how outliers can affect your results, and how to identify and deal with them in a principled manner.
-
67Feature Engineering and the Curse of DimensionalityLeçon vidéo
-
68Imputation Techniques for Missing DataLeçon vidéo
-
69Handling Unbalanced Data: Oversampling, Undersampling, and SMOTELeçon vidéo
-
70Binning, Transforming, Encoding, Scaling, and ShufflingLeçon vidéo
-
71Warning about Java 11 and Spark 3!Leçon de texte
-
72Spark installation notes for MacOS and Linux usersLeçon de texte
-
73[Activity] Installing Spark - Part 1Leçon vidéo
We'll present an overview of the steps needed to install Apache Spark on your desktop in standalone mode, and get started by getting a Java Development Kit installed on your system.
-
74[Activity] Installing Spark - Part 2Leçon vidéo
We'll install Spark itself, along with all the associated environment variables and ancillary files and settings needed for it to function properly.
-
75Spark IntroductionLeçon vidéo
A high-level overview of Apache Spark, what it is, and how it works.
-
76Spark and the Resilient Distributed Dataset (RDD)Leçon vidéo
We'll go in more depth on the core of Spark - the RDD object, and what you can do with it.
-
77Introducing MLLibLeçon vidéo
A quick overview of MLLib's capabilities, and the new data types it introduces to Spark.
-
78Introduction to Decision Trees in SparkLeçon vidéo
We'll walk through an example of coding up and running a decision tree using Apache Spark's MLLib! In this exercise, we try to predict if a job candidate will be hired based on their work and educational history, using a decision tree that can be distributed across an entire cluster with Spark.
-
79[Activity] K-Means Clustering in SparkLeçon vidéo
We'll take the same example of clustering people by age and income from our earlier K-Means lecture - but solve it in Spark!
-
80TF / IDFLeçon vidéo
We'll introduce the concept of TF-IDF (Term Frequency / Inverse Document Frequency) and how it applies to search problems, in preparation for using it with MLLib.
-
81[Activity] Searching Wikipedia with SparkLeçon vidéo
Let's use TF-IDF, Spark, and MLLib to create a rudimentary search engine for real Wikipedia pages!
-
82[Activity] Using the Spark DataFrame API for MLLibLeçon vidéo
Spark 2.0 introduced a new API for MLLib based on DataFrame objects; we'll look at an example of using this to create and use a linear regression model.
-
83Deploying Models to Real-Time SystemsLeçon vidéo
High-level thoughts on various ways to deploy your trained models to production systems including apps and websites.
-
84A/B Testing ConceptsLeçon vidéo
Running controlled experiments on your website usually involves a technique called the A/B test. We'll learn how they work.
-
85T-Tests and P-ValuesLeçon vidéo
How to determine significance of an A/B tests results, and measure the probability of the results being just from random chance, using T-Tests, the T-statistic, and the P-value.
-
86[Activity] Hands-on With T-TestsLeçon vidéo
We'll fabricate A/B test data from several scenarios, and measure the T-statistic and P-Value for each using Python.
-
87Determining How Long to Run an ExperimentLeçon vidéo
Some A/B tests just don't affect customer behavior one way or another. How do you know how long to let an experiment run for before giving up?
-
88A/B Test GotchasLeçon vidéo
There are many limitations associated with running short-term A/B tests - novelty effects, seasonal effects, and more can lead you to the wrong decisions. We'll discuss the forces that may result in misleading A/B test results so you can watch out for them.