Understanding and coding Neural Networks From Scratch in Python and R:


Hello. I really appreciate the explanation and codes placed in this link. However, when I try to use a training file that has 3823 rows x 65 columns (64 columns for x values x.1…x.64 and one column for y), I get: “Error in Y - output : non-conformable arrays”

I have 64 input nodes, 49 hidden nodes in one layer, and 10 outputs to get digits 0 - 9 classified in each of the proper nodes.
I am unsure why this occurs? Appreciate your help.
Thank you.


Maybe you are wrong on defining the array output Y. You can try to check the shape of the array first (accessible via Y.shape in python) and make sure that it is the right size.