Skip to Content
Hands-On Unsupervised Learning with Python
book

Hands-On Unsupervised Learning with Python

by Giuseppe Bonaccorso
February 2019
Intermediate to advanced
386 pages
9h 54m
English
Packt Publishing
Content preview from Hands-On Unsupervised Learning with Python

Sparse autoencoders

The code generated by a standard autoencoder is generally dense; however, as discussed in Chapter 7, Dimensionality Reduction and Component Analysis, sometimes, it's preferable to work with over-complete dictionaries and sparse encodings. The main strategy to accomplish this goal is to simply add an L1 penalty (on the code layer) to the cost function:

The α constant determines the amount of sparseness that will be reached. Of course, as the optimum of Cs doesn't correspond to the original one, in order to achieve the same accuracy, more epochs and a longer code layer are often needed. Another method, proposed by Andrew ...

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.
Start your free trial

You might also like

Hands-On Unsupervised Learning Using Python

Hands-On Unsupervised Learning Using Python

Ankur A. Patel
Introduction to Machine Learning with Python

Introduction to Machine Learning with Python

Andreas C. Müller, Sarah Guido

Publisher Resources

ISBN: 9781789348279Supplemental Content