Backpropagation in an Tensorflow.js Neural Network
问题 When I have been attempting to implement this function tf.train.stg(learningRate).minimize(loss) into my code in order to conduct back-propagation. I have been getting multiple errors such The f passed in variableGrads(f) must be a function . How would I implement the function above into the code bellow successfully? and Why does this error even occur? Neural Network: var X = tf.tensor([[1,2,3], [4,5,6], [7,8,9], [10,11,12]]) var Y = tf.tensor([[0,0,0],[0,0,0], [1,1,1]]) var m = X.shape[0]