Tensorflow.js tf.metrics.meanAbsolutePercentageError() Function
Tensorflow.js is an open-source library developed by Google for running machine learning models as well as deep learning neural networks in the browser or node environment.
The .metrics.meanAbsolutePercentageError() function is a loss or else a metric function i.e. mean absolute percentage error which uses truth and prediction tensor inputs in order to return tf.Tensor object.
- yTrue: It is the stated truth tensor and it can be of type tf.Tensor.
- yPred: It is the stated prediction tensor and it can be of type tf.Tensor.
Return Value: It returns the tf.Tensor object.
Tensor [0, 9.166666]
Tensor [500025, 0, 0, 250025, 500025]