LostTech.TensorFlow : API Documentation

Type MeanAbsolutePercentageError

Namespace tensorflow.keras.losses

Parent LossFunctionWrapper

Interfaces IMeanAbsolutePercentageError

Computes the mean absolute percentage error between `y_true` and `y_pred`.

`loss = 100 * abs(y_true - y_pred) / y_true`

Usage: Usage with the `compile` API:
Show Example
mape = tf.keras.losses.MeanAbsolutePercentageError()
            loss = mape([0., 0., 1., 1.], [1., 1., 1., 0.])
            print('Loss: ', loss.numpy())  # Loss: 5e+08 

Properties

Public properties

object fn get; set;

string name get; set;

object PythonObject get;

string reduction get; set;