Getting ready

Preparation for this recipe involves installing a couple of packages in pip, namely, scikit-learn and pandas. The command is as follows:

pip install sklearn pandas

In preparation for this recipe, extract the archive, ddos_dataset.7z.

Get Machine Learning for Cybersecurity Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.