Neural Network Tool Box
1 次查看(过去 30 天)
显示 更早的评论
I am working on a classification problem and the codes are written in m files. I am calling net=newff(....) within the m file.Once the network is trained, How to save the net? How to access the net weights?
0 个评论
采纳的回答
Sean de Wolski
2012-10-24
What version are you using? We recommend using feedforwardnet.
If you run the example from the doc for feedforwardnet, you can access the net weights:
net.InputWeights
net.LayerWeights
And it can be saved to a *.mat file the same way you save any variable.
3 个评论
Greg Heath
2012-10-25
%What version are you using? We recommend using feedforwardnet.
PATTERNNET is more appropriate for classification
%If you run the example from the doc for feedforwardnet, you can access the net weights:
%net.InputWeights
%net.LayerWeights
No. The correct syntax is
IW = net.IW{:,:}
LW = net.LW{:,:}
b = net.b{:,:}
%And it can be saved to a *.mat file the same way you save any variable.
Correct.
Greg
Greg Heath
2012-10-25
Why did you put a previously asked question in this post as a comment?
See the other post for my answer.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Sequence and Numeric Feature Data Workflows 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!