Visualizing an array in a scatterplot
The goal of the neural network that will be developed in this chapter is to predict the gender of an individual if the height
and weight
are known. A powerful method for understanding the relationship between height
, weight
, and gender
is by visualizing the data points feeding the neural network. This can be done with the popular Python visualization library matplotlib
.
Getting ready
As was the case with numpy
, matplotlib
 should be available with the installation of the anaconda3 Python package. However, if for some reasonmatplotlib
 is not available, it can be installed using the following command at the terminal:
pip install
 orsudo pip install
 will confirm the requirements are already satisfied by using the requested library.
How to do it...
This section walks through the steps to visualize an array through a scatterplot.
- Import theÂ
matplotlib
 library and configure the library to visualize plots inside of the Jupyter notebook using the following script:
import...