The author decided to fine-tune their Hugging Face model using the Keras API in TensorFlow. They encountered an error related to empty input data while training the model. The error stemmed from a specific line of code where the data was being loaded from a JSON file, preprocessed using a tokenizer, and split into training and testing sets. Despite these steps, the testing data set ended up being empty, leading to the error during model training. The author shared the JSON file containing various input questions for the model. They questioned whether they made a mistake in the code that resulted in the empty testing data set. The issue raised concerns about the data preprocessing and splitting process, potentially affecting the model’s performance during training.
Source link
Source link: https://www.sitepoint.com/community/t/getting-valueerror-expected-input-data-to-be-non-empty/446236
GIPHY App Key not set. Please check settings