Skip to Main Content
Machine Learning for Finance
book

Machine Learning for Finance

by James Le, Jannes Klaas
May 2019
Intermediate to advanced content levelIntermediate to advanced
456 pages
11h 38m
English
Packt Publishing
Content preview from Machine Learning for Finance

SGANs for fraud detection

As the final applied project of this chapter, let's consider the credit card problem again. In this section, we will create an SGAN as follows:

SGANs for fraud detection

SGAN scheme

We will train this model on fewer than 1,000 transactions and still get a decent fraud detector.

Note

Note: You can find the code for the SGAN on Kaggle under this link: https://www.kaggle.com/jannesklaas/semi-supervised-gan-for-fraud-detection/code.

In this case, our data has 29 dimensions. We set our latent vectors to have 10 dimensions:

latent_dim=10
data_dim=29

The generator model is constructed as a fully connected network with LeakyReLU activations and batch normalization. ...

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 Finance

Machine Learning for Finance

Aryan Singh

Publisher Resources

ISBN: 9781789136364Supplemental Content