Linear Classifiers in Python

Start Free Preview

Buying via our links supports this free directory · Affiliate disclosure.
Course facts
  • Payment: Free Preview (Paid Upgrade)
  • Learning style: Self-paced, start anytime
  • Format: Text & Interactive
  • Video access: Streaming Only
  • Before you start: Supervised Learning with scikit-learn
DataCamp details
  • Chapters: 4
Created byDataCamp
Available onDataCamp

Course Details
Learning Style

Start Anytime

Level

Intermediate

Study Mode

100% Online

Duration

Short (< 10 Hours)

Languages
Audio Language

English

Outcomes
Certificate

Certificate of Completion

Price & Terms
Pricing Model

Free Preview (Paid Upgrade)

Technical
Content Medium

Text & Interactive

Video Access

Streaming Only

Specification
Access

Subscription

SKU: linear-classifiers-python Category: Tags: , Brand:

Train, test and tune logistic regression and SVM classifiers in Python with scikit-learn, and learn the loss functions and regularization behind them.

At a glance
Duration4 hrs
LevelIntermediate
CertificateCertificate of Completion
LanguageEnglish
Taught byMike Gelbart
AccessSubscription
Add your review
Add to wishlistAdded to wishlistRemoved from wishlist 0
Add to compare

Logistic regression and support vector machines both sort data into classes with a linear decision boundary, and scikit-learn makes either one quick to fit. Knowing why they make the predictions they do takes more work. You apply both models to real classification problems in Python, then study the ideas underneath them: coefficients, loss functions, regularization and kernels. That grounding carries over to many other machine learning algorithms.

What You Will Achieve

  • Train and test logistic regression and SVM classifiers on real data in Python
  • Explain how a linear model’s coefficients and loss function shape its classification decisions
  • Interpret logistic regression output, including class probabilities and the features that push predictions each way
  • Tune SVM hyperparameters and weigh logistic regression against an SVM for a given problem


Program Overview

Fitting Classification Models with scikit-learn

A quick scikit-learn refresher leads into fitting logistic regression and SVC to real data and seeing where linear boundaries fall.

  • KNN classification, model comparison and overfitting
  • Running LogisticRegression and SVC
  • Sentiment analysis of movie reviews
  • Visualizing linear decision boundaries

Loss Functions and Model Coefficients

Looks at how coefficients turn features into predictions and how training searches for the lowest loss.

  • How coefficients drive predictions
  • The 0-1 loss and minimizing a loss function
  • Logistic and hinge losses compared
  • Implementing logistic regression

Regularization, Kernel SVMs, and Model Tuning

Goes deeper into regularized and multi-class logistic regression, then support vectors, kernels and hyperparameter tuning, closing with a comparison of the two models.

  • Regularization, feature selection and class probabilities
  • Multi-class logistic regression and one-vs-rest SVM
  • Support vectors and kernel SVMs
  • Tuning gamma and C with GridSearchCV, and SGDClassifier

Certificate Awarded (Paid)


Job Outlook

Linear classifiers are used in data science and machine learning work wherever records must be sorted into categories, such as labeling the sentiment of written reviews.


Our take

Good for: Learners who want to move past calling scikit-learn functions and understand how logistic regression and SVMs reach their decisions.

Keep in mind: The course stays with logistic regression and SVMs; other model families appear only in a KNN refresher and a short closing comparison.

Bottom line: A focused study of two linear classifiers that pairs hands-on scikit-learn exercises with the loss functions and regularization that explain them.

Frequently Asked Questions

Can a linear classifier handle non-linear data?

The support vector machine chapter shows how kernels let an SVM fit non-linear decision boundaries, and how to tune the gamma and C hyperparameters together with GridSearchCV to get a good fit.

Which loss functions are compared?

The lessons start with the 0-1 loss and what it means to minimize a loss, then set the logistic and hinge losses side by side, and finish the chapter by implementing logistic regression.

How are problems with more than two classes handled?

The logistic regression chapter covers multi-class models: fitting them, counting their coefficients and visualizing the results, with a one-vs-rest approach shown for SVMs as well.

What does the closing comparison of the two models cover?

A closing section weighs the two models against each other, with one advantage named for each, and ends with a lesson on using SGDClassifier in scikit-learn.

User Reviews

0.0 out of 5
★★★★★
0
★★★★★
0
★★★★★
0
★★★★★
0
★★★★★
0

No reviews yet. Be the first to review this course.

There are no reviews yet.

Write your review

Reviews can only be posted by registered learners. Log in, then you will return here to post.

×

    Report this page
    Linear Classifiers in Python
    Linear Classifiers in Python
    LiveTalent
    Logo
    Compare items
    • Total (0)
    Compare
    0