How can I fix the error?

1 visualización (últimos 30 días)
Suvarna Priya
Suvarna Priya el 3 de Dic. de 2020
Comentada: Suvarna Priya el 3 de Dic. de 2020
This is the error I am getting.
These are the codings and the error occurs due to line 85.
  2 comentarios
KSSV
KSSV el 3 de Dic. de 2020
The error is clear...check the dimensions of input features and target.
The number of rows of InputTestData and TargetTestData should be same.
Check your data.
Suvarna Priya
Suvarna Priya el 3 de Dic. de 2020
input test data - 104 x13
target test data - 104 x 1
[net,tr] = train(net,InputTestData,TargetTestData)
Error using network/train (line 340)
Inputs and targets have different numbers of samples.
this is what I am still getting

Iniciar sesión para comentar.

Respuestas (1)

Paul Hoffrichter
Paul Hoffrichter el 3 de Dic. de 2020
Sometimes a simple transpose will solve the problem. Use size() and transpose accordingly.

Categorías

Más información sobre MATLAB en Help Center y File Exchange.

Productos


Versión

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by