Tensorflow.js tf.metrics.cosineProximity() Function
The tf.metrics.cosineProximity() function is defined as: -[sum(l2Normalize(tensor1)) * (l2Normalize(tensor2))], where l2Normalize() normalizes the L2 norm of the input to 1 and * represents multiplication.
Parameters: This function accepts the following two parameters:
- yTrue: It is a simple Truth tensor.
- yPred: It is a simple Prediction tensor.
Return Value: It returns the tf.Tensor object.
My Personal Notes arrow_drop_up
Please Login to comment...