Skip to Content
Hands-On Machine Learning for Algorithmic Trading
book

Hands-On Machine Learning for Algorithmic Trading

by Stefan Jansen
December 2018
Beginner to intermediate
684 pages
21h 9m
English
Packt Publishing
Content preview from Hands-On Machine Learning for Algorithmic Trading

Deep feedforward autoencoder

To illustrate the benefit of adding depth to the autoencoder, we build a three-layer feedforward model that successively compresses the input from 784 to 128, 64, and 34 units, respectively:

input_ = Input(shape=(input_size,))x = Dense(128, activation='relu', name='Encoding1')(input_)x = Dense(64, activation='relu', name='Encoding2')(x)encoding_deep = Dense(32, activation='relu', name='Encoding3')(x)x = Dense(64, activation='relu', name='Decoding1')(encoding_deep)x = Dense(128, activation='relu', name='Decoding2')(x)decoding_deep = Dense(input_size, activation='sigmoid', name='Decoding3')(x)

The resulting model has over 222,000 parameters, more than four times the capacity of the preceding single-layer model: ...

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

Machine Learning for Algorithmic Trading - Second Edition

Machine Learning for Algorithmic Trading - Second Edition

Stefan Jansen

Publisher Resources

ISBN: 9781789346411Supplemental Content