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

The output layer

The output layer compresses the three-dimensional hidden layer activations, H, back to two dimensions using a 3 x 2 weight matrix, Wo, and a two-dimensional bias vector, bo, as follows:

The linear combination of the hidden layer outputs results in an N x 2 matrix, Zo, as follows:

The output layer activations are computed by the softmax function, ς, which normalizes the Zo to conform to the conventions used for discrete probability distributions, as follows:

We define a softmax function in Python as follows:

def softmax(z): ...
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