Skip to Main Content
Hands-On Artificial Intelligence for Cybersecurity
book

Hands-On Artificial Intelligence for Cybersecurity

by Alessandro Parisi
August 2019
Intermediate to advanced content levelIntermediate to advanced
342 pages
9h 35m
English
Packt Publishing
Content preview from Hands-On Artificial Intelligence for Cybersecurity

An example of a GAN–emulating MNIST handwritten digits

In the following example, adapted from the original code available at https://github.com/eriklindernoren/ML-From-Scratch/blob/master/mlfromscratch/unsupervised_learning/generative_adversarial_network.py (released under the MIT license at https://github.com/eriklindernoren/ML-From-Scratch/blob/master/LICENSE), we see an example of a GAN that is able to artificially generate, from some input noise, the reproduction of handwritten digit images by comparing them against the MNIST dataset (available for download at http://yann.lecun.com/exdb/mnist/).

The activation functions of the GAN's NNs, implemented by the build_generator() and build_discriminator() functions, are both based on Leaky ...

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

Artificial Intelligence for Cybersecurity

Artificial Intelligence for Cybersecurity

Bojan Kolosnjaji, Huang Xiao, Peng Xu, Apostolis Zarras

Publisher Resources

ISBN: 9781789804027Supplemental Content