Numpy Tensorflow
Mon 30 June 2025
import numpy as np
arr_1 = np.arange(1).reshape(-1, 1)
squared_1 = arr_1 ** 2
summed_1 = np.sum(squared_1)
meaned_1 = np.mean(squared_1)
maxed_1 = np.max(squared_1)
print("Cell 1 - Numpy")
print("Array shape:", arr_1.shape)
print("Sum:", summed_1)
print("Mean:", meaned_1)
print("Max:", maxed_1)
Cell 1 - Numpy
Array shape: (1 …Category: basics
Read More