Questions tagged [tf.keras]

Explore [tf.keras], the specialized implementation of the Keras API within TensorFlow. For inquiries related to this particular module, utilize the designated tag. Additionally, consider incorporating the [keras] tag for questions concerning the shared API functionalities.

What is the best way to input text into a TensorFlow model in order to receive a prediction

I'm a newbie to TensorFlow and Python, and I've developed a model that categorizes text based on its toxicity level (obscene, toxic, threat, etc). The model seems to be working fine as it produces the summary. However, I'm having trouble pas ...

Is it advisable to implement a combination of repeat, batch, and shuffle operations on tf.data.Dataset before feeding it into the fit

Even after reading the documentation on tf.keras.Model.fit and tf.data.Dataset, I am still unsure about whether I should call repeat and batch on the dataset object when passing it to the fit function. Should I provide the batch_size and epochs arguments t ...