Skip to Content
Machine Learning for Cybersecurity Cookbook
book

Machine Learning for Cybersecurity Cookbook

by Emmanuel Tsukerman
November 2019
Intermediate to advanced content levelIntermediate to advanced
346 pages
9h 36m
English
Packt Publishing
Content preview from Machine Learning for Cybersecurity Cookbook

How it works…

We start by importing pandas and then reading our data into a dataframe (step 1). There are two fields in this data: password and password strength. Password strength consists of three levels of difficulty. We shuffle the data to create more robust training in step 2. In step 3, we split the dataframe via an 80-20 split, and then distribute the features and labels into arrays (step 4). In step 5, we define a function that splits the password strings into characters in order to tokenize passwords into characters, rather than into words. This will allow the classifier to learn fine-grained information about the password dataset. In step 6, we define a pipeline to perform NLP on the characters of a password, followed by using an ...

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 Machine Learning for Cybersecurity

Hands-On Machine Learning for Cybersecurity

Soma Halder, Sinan Ozdemir
Machine Learning on Kubernetes

Machine Learning on Kubernetes

Faisal Masood, Ross Brigoli

Publisher Resources

ISBN: 9781789614671Supplemental Content