Skip to content

Keyerror : 0 #55

Open
Open
@MalavikaAR

Description

@MalavikaAR

I got an error while running the NumPy neural network code using my dataset,
"'DataFrame' object has no attribute 'reshape'".
Also then I ran using your dataset make_moons, and again I got an error
"Keyerror: 0".

ln [19]:
#Training
params_values = train(np.transpose(X_train), np.transpose(y_train.reshape((y_train.shape[0], 1))), NN_ARCHITECTURE, 10000, 0.01)[0]

KeyError Traceback (most recent call last)
in ()
1 # Training
----> 2 params_values = train(np.transpose(X_train), np.transpose(y_train.reshape((y_train.shape[0], 1))), NN_ARCHITECTURE, 10000, 0.01)[0]

KeyError: 0

Would you please help me with what to do?
Is it necessary to take the transpose and reshaping the X and y??

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions