LostTech.TensorFlow : API Documentation

Type MeanSquaredError

Namespace tensorflow.keras.losses

Parent LossFunctionWrapper

Interfaces IMeanSquaredError

Computes the mean of squares of errors between labels and predictions.

`loss = square(y_true - y_pred)`

Usage: Usage with the `compile` API:
Show Example
mse = tf.keras.losses.MeanSquaredError()
            loss = mse([0., 0., 1., 1.], [1., 1., 1., 0.])
            print('Loss: ', loss.numpy())  # Loss: 0.75 

Properties

Public properties

object fn get; set;

string name get; set;

object PythonObject get;

string reduction get; set;