Tensorflow.js tf.metrics.meanSquaredError() Function
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 Tensorflow tf.metrics.meanSquaredError() function is a Loss or metric function used to Computes the mean squared error between y_true and y_pred. the y_true is a truth tensor and y_pred is the Prediction Tensor.
Parameters: This function accepts two parameters which are illustrated below:
- tensor1: It is the truth tensor (y_true).
- tensor2: It is the prediction tensor (y_pred).
Return Value: It returns the mean square error tensor between truth tensor and prediction tensor.