Getting ready

For this recipe, we need to install pandas, sklearn, and xgboost in pip. Use the following code to do so:

pip install pandas sklearn xgboost

In addition, the CRPDataset.csv dataset has been provided for this recipe.

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.