How can I fix the error?

1 次查看(过去 30 天)
Suvarna Priya
Suvarna Priya 2020-12-3
This is the error I am getting.
These are the codings and the error occurs due to line 85.
  2 个评论
KSSV
KSSV 2020-12-3
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 2020-12-3
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

请先登录,再进行评论。

回答(1 个)

Paul Hoffrichter
Paul Hoffrichter 2020-12-3
Sometimes a simple transpose will solve the problem. Use size() and transpose accordingly.

类别

Help CenterFile Exchange 中查找有关 MATLAB 的更多信息

产品


版本

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by