In “4.4 - Training the Model” section, I faced some error when model.fit is called. This function is calling " masked_accuracy(y_true, y_pred) " function internally.
When I printed the y_true and y_pred values inside masked_accuracy function, I got below.
Here y_true and y_pred are symbolic Tensors, not actual values. This is expected behavior, as the actual data only flows through these Tensors during training. Your function passes unit tests, so that means masked_accuracy is correct. If you need to inspect values for debugging, use tf.print to print them during execution or make sure you’re in eager mode, where Tensors hold real data.
Hope it helps! Feel free to ask of you need further assistance.