Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Machine Learning with Python, scikit-learn and TensorFlow
Rating: 3.6 out of 5(27 ratings)
215 students

Machine Learning with Python, scikit-learn and TensorFlow

Apply Machine Learning techniques to solve real-world problems with Python, scikit-learn and TensorFlow
Last updated 6/2018
English

What you'll learn

  • Solve interesting, real-world problems using machine learning with Python
  • Evaluate the performance of machine learning systems in common tasks
  • Create pipelines to deal with real-world input data
  • Traverse from concept to a production-ready machine learning setup/pipeline capable of real-world usage
  • Use Python to visualize data spread across multiple dimensions and extract useful features to implement machine learning classification and regression algorithms from scratch in Python
  • Predict the values of continuous variables using linear regression and K Nearest Neighbors to classify documents and images using logistic regression and support vector machines

Course content

3 sections111 lectures9h 25m total length
  • The Course Overview5:03

    This video gives a glimpse of what you will learn through this video.

  • Introduction to Machine Learning6:42

     This video, will let you kick off your Python and machine learning journey with the basic, yet important concepts of machine learning.

    •         Get a high level overview of Machine Learning
    •         Explore important concepts
  • Installing Software and Setting Up6:04

    This is the first step with few practical tasks to get started. Yes! We are talking about installation and initial set up, which we’ll be doing together in this video.

    •         Install Python
    •         Set your system
  • Understanding NLP4:10

    Natural language processing or NLP, is a significant subfield of machine learning, which deals with the interactions between machine and human natural languages. We will explore this, through this video.

    •         Explore about NLP and its real world applications
  • Touring Powerful NLP Libraries in Python10:36

     After a short list of real-world applications of NLP, we will be touring the essential stack of Python NLP libraries in this video.

    •         Download NLTK packages
    •         Import built-in stemmer algorithms, and initialize a stemmer
  • Getting the Newsgroups Data3:17

    Let’s get a step ahead by getting the Newsgroups data and downloading it.

    •         Import the loader function for the 20 newsgroups data
    •         Download the dataset with the default parameters
  • Thinking about Features5:31

    This video will walk you through the steps to achieve the extraction of features from the dataset.

    •         Use the unique function from NumPy
    •         Get the distinct values of integers
    •         Look at the first document, its topic number, and name
  • Visualization3:15

    Let’s get a general idea of how the data is structured, what possible issues may arise, and if there are any irregularities that we have to take care of.

    •         Display the distribution of the classes
    •         Display a histogram of the 500 highest word counts
  • Data Preprocessing2:29

    This video will let you improve the most indicative Features from visualization by using the data preprocessing Techniques.

    •         Get the 500 words with highest counts
    •         Apply filtering
  • Clustering4:04

    How could you find the best division or a decent Approximation between set of data in a dataset? That’s what we are going to learn in this video.

    •         Apply clustering to the newsgroup dataset
    •         Display a scatter plot of the actual labels and the cluster labels
  • Topic Modeling3:40

    When we read a text, we expect certain words appearing in the title or the body of the text to capture the semantic context of the document. This video, will let you achieve this in Machine Learning and Python programming.

    •         Apply NMF to document clustering and signal processing
  • Getting Started with Classification5:02

    It is a great starting point of learning classification with a real-life example-our email service providers are already doing this for us, and so can we. We will be learning the fundamental and important concepts of classification.

    •         Explore different types of classification
    •         Learn the applications of text classification
  • Exploring Naïve Bayes2:49

    How can we make a prediction of probability distribution over all classes, besides the most likely class that the data sample is associated with? Let’s answer this question, through this video!

    •         Look at examples to understand the naive bayes theorem
  • The Mechanics of Naïve Bayes4:49

    This video will let you understand the magic behind the algorithm-how naive Bayes works.

    •         Learn the operation of Naïve Bayes algorithm
  • The Naïve Bayes Implementation16:30

    The most important task after learning a concept is to implement it. Let’s try the implementation of Naïve Bayes algorithm with some sample codes, in this video.

    •         Read all of the email text files
    •         Keep the spam class information in the label variabl
    •         Use a function to perform text cleaning
  • Classifier Performance Evaluation10:22

    Beyond accuracy, there are several measurements that give us more insights and avoid class imbalance effects. Let’s see these performance measures right now!

    •         Use the confusion matrix function
  • Model Tuning and cross-validation5:11

    Having learned what metrics are used to measure a classification model, we can now study how to measure it properly. Let’s do it right away!

    •         Use the split method and initialize a 10-fold generator
    •         Repeat the process of term count feature extraction, classifier training, and prediction
  • Recap and Inverse Document Frequency4:26

    This video will show you how to adopt a more comprehensive approach to extract text features, the term frequency-inverse document frequency

    •         Use the tfidf approach to extract text features
  • The Mechanics of SVM5:51

    Since there can be infinite number of feasible Hyperplanes, how can we identify the optimal one? Let's do it in this video!

    •         Explore SVM in detail through a different scenarios
  • The Implementations of SVM5:44

    Let's put into action, the fundamentals of SVM Classifier right away on news topic classification and learn to deal with more than two classes.

    •         Apply the SVM classifier right away on news topic classification
  • The Kernels of SVM3:13

    What could you do if you are not able to find any linear hyperplane to separate two classes? Let’s see the solution to this problem!

    •         Visualize the dataset with corresponding decision boundary
  • Choosing Between the Linear and the RBF Kernel3:51

    This video will walk you through different scenarios where the linear kernel is favored over RBF.

    •         Work with three scenarios where the linear kernel is preferred over RBF
  • News topic Classification with Support Vector Machine10:26

    It is finally time to build our state-of-the-art, SVM-based news topic classifier with all we just learned. Let’s do it!

    •         Load and clean the news dataset
    •         Tune the penalty C via cross-validation
    •         Apply the fit method, and record the running time
  • Fetal State Classification with SVM5:59

    After a successful application of SVM with the linear kernel, let’s look at one more example where SVM with the RBF kernel is suitable for it

    •         Read the data located in the sheet, Raw Data
    •         Check class proportions and tune the RBF-based SVM model
    •         Employ the optimal model to the testing set and check the performance for individual classes
  • Brief Overview of Advertising Click-Through Prediction4:45

     How can you find whether a given ad on a given page or app will be clicked by a given user or not, with predictive features? Let’s answer this question.

  • Decision Tree Classifier13:43

    When working on a prediction model, how can you get all of the possible decision alternatives and the corresponding outcomes? Let’s see this, now.

    •         Learn the Construction of a decision tree
    •         Calculate the Gini impurity
    •         Implement the entropy calculation function
  • The Implementations of Decision Tree6:17

    With a solid understanding of partitioning evaluation metrics, let's practice the CART tree algorithm by hand on a simulated dataset.

    •         Calculate the weighted impurity of two potential children
    •         Define a utility function to split a node into left and right child
    •         Define the greedy search function
  • Click-Through Prediction with Decision Tree6:52

     After several examples, it is now time to predict ad click-through with the decision tree algorithm we just thoroughly learned and practiced.

    •         Use the dataset from a Kaggle machine learning competition
    •         Read the dataset
    •         Use the model with the optimal parameter to predict unseen cases
  • Random Forest - Feature Bagging of Decision Tree5:13

    How will you reduce the high variance that a decision tree model suffers from and hence in general performs better than a single tree? Let’s see the solution for this problem now!

    •         Tweak the max_depth parameter
    •         Use the model with the optimal parameter None for max_depth
  • One-Hot Encoding - Converting Categorical Features to Numerical6:00

    This video will show you how one-hot encoding converts the categorical feature to k binary features

    •         Transform the original features to the encoded features
    •         Transform the encoded features back to the original features
    •         Use LabelEncoder to convert a categorical feature to an integer feature
  • Logistic Regression Classifier12:09

    Let’s turn to a new algorithm with high scalability to large datasets. Yes! We are talking about Logistic regression which is one of the most scalable classification algorithms.

    •         Define the logistic function
    •         Declare the input variables from -8 to 8, and the output correspondingly
  • Click-Through Prediction with Logistic Regression by Gradient Descent21:30

    Let’s deploy the algorithm that we just developed and test it in our click-through prediction project.

    •         Train a logistic regression model via stochastic gradient descent
    •         Train a logistic regression model with regularization
    •         Train on large-scale datasets with online learning
  • Feature Selection via Random Forest4:29

     How can we rank the importance of features based on their occurrences in nodes among all trees, and select the top most important ones? Let’s see this right now!

    •         Fit the random forest model
    •         Look at the bottom 10 features and the corresponding 10 least important features
    •         Select the top 500 features
  • Brief Overview of the Stock Market And Stock Price3:48

    Let’s explore the relationships between the observations and the targets, and to output a continuous value based on the input features of an unknown sample.

    •         Understand the basics of stock market
    •         Learn how regression is used to model stock market data
  • Predicting Stock Price with Regression Algorithms6:41

    This video will walk you through some essential steps to apply regression techniques in predicting prices of a particular stock.

    •         Explore how to develop price prediction models
    •         Learn about feature engineering
  • Data Acquisition and Feature Generation3:30

    Let’s get started with obtaining the dataset we need for our project.

    •         Implement the function for feature generation
  • Linear Regression8:27

    Since all features and driving factors are available, let’s focus on regression algorithms that estimate the continuous target variables from these predictive features.

    •         Define the function computing the prediction
    •         Continue with the function updating the weight w by one step
    •         Train a linear regression model by 5000 iterations
  • Decision Tree Regression7:36

    After linear regression, the next regression algorithm need to learn is decision tree regression. Let’s start exploring it right away!

    •         Define the MSE and weighted MSE computation functions
    •         Use the DecisionTreeRegressor package from scikit-learn
    •         Use the regression forest package, RandomForestRegressor
  • Support Vector Regression2:57

    Let’s get started with the third regression algorithm which is support vector regression (SVR).

    •         Solve the house price prediction problem with SVR
  • Regression Performance Evaluation3:27

    So far, we have covered several popular regression algorithms in-depth and implemented them from scratch by using existing libraries. Let’s step ahead and evaluate the performance of these regression algorithms.

    •         Fine tune the parameters of the linear regression model
    •         Obtain the optimal set of parameters and predict the testing set with the optimal model
    •         Evaluate the performance on testing sets based on metrics MSE, MAE, and R2.
  • Stock Price Prediction with Regression Algorithms9:49

    Now that we have learned three commonly used and powerful regression algorithms and performance evaluation metrics, why don't we utilize all of these in solving our stock price prediction problem? Let’s do it in this video.

    •         Select the best regression forest model and make a prediction of the testing samples
    •         Measure the prediction performance
    •         Use the rescaled data to train the SVR model
  • Best Practices in Data Preparation Stage11:17

    Apparently, no machine learning system can be built without data. Data collection should be our first focus. Let’s learn the best practices for the data preparation stage.

    •         Understand the project goal
    •         Collect all the fields that are relevant
    •         Maintain consistency of field values and deal with missing data
  • Best Practices in the Training Sets Generation Stage8:45

    With well-prepared data, it is safe to move on with the training sets generation stage. Let’s move ahead and explore this.

    •         Determine categorical features with numerical values
    •         Decide whether or not to encode categorical features
    •         Decide whether or not and how to select features
  • Best Practices in the Model Training, Evaluation, and Selection Stage3:40

    Given a machine learning problem, the first question many people ask is usually: what is the best classification/regression algorithm to solve it? This video will bring to you an answer for this question.

    •         Choose the right algorithm and reduce overfitting
    •         Diagnose overfitting and underfitting
  • Best Practices in the Deployment and Monitoring Stage5:39

     After all the processes in the previous three stages, we now have a well established data preprocessing pipeline and a correctly trained prediction model. The last stage of a machine learning system involves saving those resulting models from previous stages and deploying them on new data, Let’s see how to do this.

    •         Save, load, and reuse models
    •         Monitor model performance
    •         Update models regularly

Requirements

  • Familiarity with Machine Learning fundamentals will be useful.
  • A basic understanding Python programming is assumed.

Description

Machine learning brings together computer science and statistics to build smart, efficient models. Using powerful techniques offered by machine learning, you’ll tackle data-driven problems. The effective blend of Machine Learning with Python, scikit-learn, and TensorFlow, helps in implementing solutions to real-world problems as well as automating analytical model.

This comprehensive 3-in-1 course is your one-stop solution in mastering machine learning algorithms and their implementation. Learn the fundamentals of machine learning and build your own intelligent applications. Explore popular machine learning models including k-nearest neighbors, random forests, logistic regression, k-means, naive Bayes, and artificial neural networks

Contents and Overview

This training program includes 3 complete courses, carefully chosen to give you the most comprehensive training possible.

This course will help you discover the magical black box that is Machine Learning by teaching a practical approach to modeling using Python, scikit-learn and TensorFlow.

The first course, Step-by-Step Machine Learning with Python, covers easy-to-follow examples that get you up and running with machine learning. In this course, you’ll learn all the important concepts such as exploratory data analysis, data preprocessing, feature extraction, data visualization and clustering, classification, regression, and model performance evaluation. You’ll build your own models from scratch.

The second course, Machine Learning with Scikit-learn, covers effective learning algorithms to real-world problems using scikit-learn. You’ll build systems that classify documents, recognize images, detect ads, and more. You’ll learn to use scikit-learn’s API to extract features from categorical variables, text and images; evaluate model performance; and develop an intuition for how to improve your model’s performance.

The third course, Machine Learning with TensorFlow, covers hands-on examples with machine learning using Python. You’ll cover the unique features of the library such as data flow Graphs, training, and visualization of performance with TensorBoard—all within an example-rich context using problems from multiple sources.. The focus is on introducing new concepts through problems that are coded and solved over the course of each section.

By the end of this training program you’ll be able to tackle data-driven problems and implement your solutions as well as build efficient models with the powerful yet simple features of Python, scikit-learn and TensorFlow.

About the Authors
  • Yuxi (Hayden) Liu is currently an applied research scientist focused on developing machine learning models and systems for given learning tasks. He has worked for a few years as a data scientist, and applied his machine learning expertise in computational advertising. He earned his degree from the University of Toronto, and published five first-authored IEEE transaction and conference papers during his research. His first book, titled Python Machine Learning By Example, was ranked the #1 bestseller in Amazon India in 2017. He is also a machine learning education enthusiast.
  • Shams Ul Azeem is an undergraduate in electrical engineering from NUST Islamabad, Pakistan. He has a great interest in the computer science field, and he started his journey with Android development. Now, he’s pursuing his career in Machine Learning, particularly in deep learning, by doing medical-related freelancing projects with different companies. He was also a member of the RISE lab, NUST, and he has a publication credit at the IEEE International Conference, ROBIO as a co-author of Designing of motions for humanoid goalkeeper robots.

Who this course is for:

  • Anyone interested in entering the data science stream with Machine Learning.
  • Software engineers who want to understand how common Machine Learning algorithms work.
  • Data scientists and researchers who want to learn about the scikit-learn API.