Sign Up

Sign In

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Sorry, you do not have a permission to ask a question, You must login to ask question.

Failed to find data adapter that can handle input: , ( containing values of types {“”})

  • 4
history = model.fit(X, y, batch_size=32, epochs=40, validation_split=0.1)

the line problem was this

Showing error:

ValueError: Failed to find data adapter that can handle input: <class 'numpy.ndarray'>, (<class 'list'> containing values of types {"<class 'int'>"})
Share

1 Answer

  1. ValueError in TensorFlow

    https://pythonprogramming.net/convolutional-neural-network-deep-learning-python-tensorflow-keras/

    I tried following code and worked for me:

    IMG_SIZE = 50
    
    X = np.array(X).reshape(-1, IMG_SIZE, IMG_SIZE, 1)
    
    y = np.array(y)
    
    history = model.fit(X, y, batch_size=32, epochs=40, validation_split=0.1)
    
    • -2

Sorry, you do not have a permission to answer to this question.

close