Loss or metric function: Mean squared error.
const yTrue = tf.tensor2d([[0, 1], [3, 4]]);const yPred = tf.tensor2d([[0, 1], [-3, -4]]);const mse = tf.metrics.meanSquaredError(yTrue, yPred);mse.print(); Copy
const yTrue = tf.tensor2d([[0, 1], [3, 4]]);const yPred = tf.tensor2d([[0, 1], [-3, -4]]);const mse = tf.metrics.meanSquaredError(yTrue, yPred);mse.print();
Aliases: tf.metrics.MSE, tf.metrics.mse.
tf.metrics.MSE
tf.metrics.mse
Truth Tensor.
Prediction Tensor.
Mean squared error Tensor.
Generated using TypeDoc
Loss or metric function: Mean squared error.
Aliases:
tf.metrics.MSE
,tf.metrics.mse
.