Finance, Trading, Stock Market, Mathematics, Technical Analysis.
think we should have a function that can let us track mean squared error if we would like. This can let us plot and track our loss over a bunch of iterations. import numpy as np def mean_squared_error(y, y_hat): return np.square(np.subtract(np.array(y), np.array(y_hat))).mean() The above code