O'Reilly logo

Mastering Machine Learning for Penetration Testing by Chiheb Chebbi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Visualization with seaborn

In every project, I want to help you discover new data visualization Python libraries because, as you saw, data engineering and visualization are essential to every modern data-centric project. This time, I chose seaborn to visualize the data and explore it before starting the training phase. Seaborn is a Python library for making statistical visualizations. The following is an example of generating a plot with seaborn:

>>> data = np.random.multivariate_normal([0, 0], [[5, 2], [2, 2]], size=2000)>>> data = pd.DataFrame(data, columns=['x', 'y'])>>> for col in 'xy':... seaborn.kdeplot(data[col], shade=True)

For example, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required