- Apache Spark Deep Learning Cookbook
- Ahmed Sherif Amrith Ravindra
- 53字
- 2025-02-26 11:49:45
How to do it...
The following steps walk through validating that our array has been normalized.
- Execute the following step to print the mean and standard deviation of array inputs:
print('standard deviation')
print(round(X[:,0].std(axis=0),0))
print('mean')
print(round(X[:,0].mean(axis=0),0))
- Execute the following script to combine height, weight, and gender into one array, data_array:
data_array = np.column_stack((X[:,0], X[:,1],y))