Effacer les filtres
Effacer les filtres

how to fix error "X and Y must have the same number of elements." while calculating correlation coefficent of training dataset?

1 vue (au cours des 30 derniers jours)
while calculating correlation coefficient of training dataset using these command lines
[net, info] = train(net, p',data') % p input and data target / the info will contain the masks
input_train = p(info.trainMask{:}==1)
target_train = data(info.trainMask{:}==1)
net=feedforwardnet(10);
net = configure(net,input_train,target_train)
y=net(input_train)
Rt=corrcoef(y, target_train)
facing error like "X and Y must have the same number of elements." kindly let me know how to get out of it?
  1 commentaire
madhan ravi
madhan ravi le 29 Août 2018
Modifié(e) : madhan ravi le 29 Août 2018
size(train) and size(target_train) what do you get? Can you post the result here?

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Statistics and Machine Learning Toolbox dans Help Center et File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by