Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validation split is only supported for Tensors or NumPy arrays error #2

Open
KazimTibetSar opened this issue Jan 26, 2021 · 0 comments

Comments

@KazimTibetSar
Copy link

Hello, merhaba

Used a .json file as train data, and it didn't produce any error but at the model.fit sequence ı get an error;

Validation split is only supported for Tensors or NumPy arrays

#model eğitimi, bir defa eğitimden geçmesi -> epoch , batch_size -> 256'şar 256'şar beslenecek. history = model.fit(x_train_pad, y_train,validation_split=0.25, epochs=5, batch_size=256)

/usr/local/lib/python3.6/dist-packages/tensorflow/python/keras/engine/data_adapter.py in train_validation_split(arrays, validation_split) 1357 raise ValueError( 1358 "validation_split is only supported for Tensors or NumPy " -> 1359 "arrays, found following types in the input: {}".format(unsplitable))

ı guess they are numpy array already when coded as x_train[300] it works and getting the 300th. item of the x_train array

could you help please?

Uygulama için teşekkürler hocam

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant