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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.