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 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.