I have to implement a loss function using mean absolute error without calling the built-in function. Is the code below correct? Because my loss value goes from 28.xx to 0.00028 quickly.
Meanwhile, other loss function like RMSE has a more standard loss curve
loss = tf.reduce_sum(tf.abs(y_pred - Y) / nFeatures)