Skip to Content
Machine Learning, 2nd Edition
book

Machine Learning, 2nd Edition

by Steven W. Knox
March 2026
Intermediate
432 pages
21h 5m
English
Wiley
Content preview from Machine Learning, 2nd Edition

Appendix DThe Geometry of Linear Functions and Linear Classifiers

Linear Functions and Hyperplanes

Linear functions play an important role in the operation and design of several classification algorithms: for example, logistic regression, neural networks, support vector machines, and linear discriminant analysis. This appendix presents some geometric properties of linear functions which are used, explicitly or implicitly, in the design and description of these algorithms.

A linear function1 double struck upper R Superscript k Baseline right arrow double struck upper R is a function of the form

left parenthesis v 1 comma ellipsis comma v Subscript k Baseline right parenthesis right arrow from bar left parenthesis 1 comma v 1 comma ellipsis comma v Subscript k Baseline right parenthesis dot left parenthesis theta 0 comma theta 1 comma ellipsis comma theta Subscript k Baseline right parenthesis equals theta 0 plus v 1 theta 1 plus midline horizontal ellipsis plus v Subscript k Baseline theta Subscript k Baseline comma

where theta equals left parenthesis theta 0 comma theta 1 comma ellipsis comma theta Subscript k Baseline right parenthesis is a left parenthesis k plus 1 right parenthesis-long vector of real parameters. For notational convenience or emphasis this may be written as

v right arrow from bar left parenthesis 1 comma v right parenthesis dot theta or v right arrow from bar left parenthesis 1 comma v right parenthesis dot left parenthesis theta 0 comma theta Subscript star Baseline right parenthesis equals theta 0 plus v dot theta Subscript star Baseline comma

where theta Subscript star Baseline equals left parenthesis theta 1 comma ellipsis comma theta Subscript k Baseline right parenthesis.

Parameter vector theta can be thought of as encoding three geometrically meaningful quantities:2

  • A magnitude, given by the length of the vector .
  • A direction ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

Designing Machine Learning Systems

Designing Machine Learning Systems

Chip Huyen

Publisher Resources

ISBN: 9781394325252