Tensorflow.js is an open-source library developed by Google for running machine learning models and deep learning neural networks in the browser or node environment.
The .minimize() method executes the given function f() and tries to minimize the scalar output of f() bycomputing the gradients of y with respect to the given list of trainable variables denoted by varList. If no list is provided, it compute gradients with respect to all trainable variables.
Optimizer.minimize (f, returnCost?, varList?)
f (() => tf.Scalar): It specifies the function to execute and whose output to minimize.
returnCost (boolean): It specifies whether to return the scalar cost value produced by executing f() or not.
varList (tf.Variable): It specifies the list of trainable variables.
Please Login to comment...