in

Python ValueError: Expected non-empty input data – SitePoint Forums #PythonErrors

Getting ValueError: Expected input data to be non-empty - Python - SitePoint Forums

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

What do you think?

Leave a Reply

GIPHY App Key not set. Please check settings

AI Hardware for 5K Budget to Run Models at Home

AI Hardware for Home Models on 5K Budget #EfficientAIHardware

Apple reveals new powerful AI chip in latest iPad release. #technology