I'm working with Neural Networks and I'd like to compare two different sets of data to train my NN. Thus, I'd like to train and validate my network with the same samples in order to compare which set is better to train my network and to be able to quantify its improvement. For this purpose I'm training the network with the first set, which is a 8×1464 matrix, and saving its divide parameters, which are: train indexes (tr.trainInd, which is a 1×1024 matrix), validation indexes (tr.valInd, 1×220) and test indexes (tr.testInd, 1×220) with the following code:
After this, I restart my NN and set its divide parameters to the previous ones with:
Then, I try to train the network with the new set, which is a 21×1464 matrix (same samples with more parameters), but the message " Indexing cannot yield multiple results " appears. I don't understand why this message appears, as both sets contain 1464 samples and thus, divide indexes should be fine.
Thanks in advance for your help!