how to predict new pattern using pretrained model of neural network pattern recognition
1 view (last 30 days)
Show older comments
i have trained a model using neural network pattern recognition app. i want to predict new data how can i make prediction using this network, i have attached the model below
it gives the following error same for classify command how can i solve this error
net=trainedmodel.Network
label = predict(net,dataset');
Error using predict (line 85)
No valid system or dataset was specified.
0 Comments
Answers (1)
yanqi liu
on 1 Mar 2022
clc; clear all; close all;
load trainedmodel
load datasetvalue
net=trainedmodel.Network;
% label = predict(net,dataset');
label = net(dataset');
[~, res] = max(label);
res
res =
列 1 至 8
1 1 1 1 1 1 1 1
列 9 至 16
1 1 1 1 1 1 1 1
列 17 至 24
1 1 1 1 1 1 1 1
列 25 至 32
1 1 1 1 1 1 1 1
列 33 至 40
1 1 1 1 1 1 1 1
列 41 至 48
1 1 1 1 1 1 1 1
列 49 至 56
1 1 2 2 2 2 2 2
列 57 至 64
2 2 2 2 2 2 2 2
列 65 至 72
2 2 2 2 2 2 2 2
列 73 至 80
2 2 2 2 2 2 2 2
列 81 至 88
2 2 2 2 2 2 2 2
列 89 至 96
2 2 2 2 2 2 2 2
列 97 至 104
2 2 2 2 3 3 3 3
列 105 至 112
3 3 3 3 3 3 3 3
列 113 至 120
3 3 3 3 3 3 3 3
列 121 至 128
3 3 3 3 3 3 3 3
列 129 至 136
3 3 3 3 3 3 3 3
列 137 至 144
3 3 3 3 3 3 3 3
列 145 至 152
3 3 3 3 3 3 4 4
列 153 至 160
4 4 4 4 4 4 4 4
列 161 至 168
4 4 4 4 4 4 4 4
列 169 至 176
4 4 4 4 4 4 4 4
列 177 至 184
4 4 4 4 4 4 4 4
列 185 至 192
4 4 4 4 4 4 4 4
列 193 至 200
4 4 4 4 4 4 4 4
列 201 至 208
5 5 5 5 5 5 5 5
列 209 至 216
5 5 5 5 5 5 5 5
列 217 至 224
5 5 5 5 5 5 5 5
列 225 至 232
5 5 5 5 5 5 5 5
列 233 至 240
5 5 5 5 5 5 5 5
列 241 至 248
5 5 5 5 5 5 5 5
列 249 至 250
5 5
>>
0 Comments
See Also
Categories
Find more on Image Data Workflows in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!