How can I incorporate the adapt function into my code?

3 views (last 30 days)
Hi,
I'm just a beginner when it comes to neural networks, and I can't seem to figure out how to incorporate the adapt function into my code in order to achieve a higher rate of accuracy. On top of this when I paste the whole code (what's below) into the command window my accuracy is very low, however when I simply paste the train function ( net = train(net,P,T) ) my accuracy changes greatly. Does anybody know why? If you could kindly answer, thank you. :)

Accepted Answer

Greg Heath
Greg Heath on 29 Dec 2016
% I'm just a beginner when it comes to neural networks, and I can't seem to figure out how to incorporate the adapt function into my code in order to achieve a higher rate of accuracy.
Very simple:
1. Read help adapt and doc adapt
2. Both indicate that adapt is meant for time-series problems.
3. Your problem is classification/pattern-recognition, not TS.
The appropriate functions are PATTERNNET and TRAIN
4. What in the world made you think that adapt would be better
than train for your problem?
5. In the future, whenever you want to post a problem in either
the NEWSGROUP or ANSWERS,
a. Read the MATLAB help and doc documentation
b. Demonstrate using the documentation data and MATLAB data
obtained from the commands help nndatasets and doc nndatsets.
c. Begin using as many defaults as possible
d. Gradually replace defaults when necessary.
Hope this help.
Thank you for formally accepting my answer
Greg

More Answers (0)

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!