- Apache Spark Deep Learning Cookbook
- Ahmed Sherif Amrith Ravindra
- 126字
- 2025-02-26 11:49:45
How it works...
This section explains how the data points are created to generate prediction values that will be graphed.
- The minimum and maximum values of the graph are computed based on the array values. The output of the script can be seen in the following screenshot:

- We generate x and y values for each data point within the minimum and maximum values within 0.05 increments and then run each (x,y) point into the prediction score to plot the values. The Female gender score is assigned a red color and the Male gender score is assigned a blue color as seen in the following screenshot:

- The graph shows the cutoff between the gender scores depending on the height and weight selected.