Llm, AI, Data Science, Machine Learning, Programming.
instead of the target being one-hot encoded [0, 0, 1], it expects it to be an int corresponding to an index, i.e. 2 in (0, 1, 2) The weighted_metrics argument specifies that the model should track the sparse categorical accuracy metric, which measures the accuracy of the model's predictions. And