Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Machine Learning for the Web

You're reading from   Machine Learning for the Web Gaining insight and intelligence from the internet with Python

Arrow left icon
Product type Paperback
Published in Jul 2016
Publisher Packt
ISBN-13 9781785886607
Length 298 pages
Edition 1st Edition
Languages
Arrow right icon
Authors (2):
Arrow left icon
Andrea Isoni Andrea Isoni
Author Profile Icon Andrea Isoni
Andrea Isoni
Steve Essinger Steve Essinger
Author Profile Icon Steve Essinger
Steve Essinger
Arrow right icon
View More author details
Toc

Table of Contents (10) Chapters Close

Preface 1. Introduction to Practical Machine Learning Using Python FREE CHAPTER 2. Unsupervised Machine Learning 3. Supervised Machine Learning 4. Web Mining Techniques 5. Recommendation Systems 6. Getting Started with Django 7. Movie Recommendation System Web Application 8. Sentiment Analyser Application for Movie Reviews Index

Singular value decomposition

This method is based on a theorem that states that a matrix X d x N can be decomposed as follows:

Singular value decomposition

Here:

  • U is a d x d unitary matrix
  • ∑ is a d x N diagonal matrix where the diagonal entries si are called singular values
  • V is an N x N unitary matrix

In our case, X can be composed by the feature's vectors Singular value decomposition, where each Singular value decomposition is a column. We can reduce the number of dimensions of each feature vector d, approximating the singular value decomposition. In practice, we consider only the largest singular values Singular value decomposition so that:

Singular value decomposition

t represents the dimension of the new reduced space where the feature vectors are projected. A vector x(i) is transformed in the new space using the following formula:

Singular value decomposition

This means that the matrix Singular value decomposition (not Singular value decomposition) represents the feature vectors in the t dimensional space.

Note that it is possible to show that this method is very similar to the PCA; in fact, the scikit-learn library uses SVD to implement PCA.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image