Can anyone give me a two input two output fit-net example with dataset

4 views (last 30 days)
please give me a link or books name that exemplifies two input two output fitnet example.Training code is not only required but also the new input portion is required.Any light on how to prepare data is also appreciated.

Accepted Answer

Greg Heath
Greg Heath on 3 Aug 2016
Edited: Greg Heath on 5 Aug 2016
Typically, MATLAB equations are multidimensional.
For regression, classification and time series, all you have to do is create the multidimensional input matrix of size [ I N ] and corresponding multidimensional output target matrix of size [ O N ].
Given input and target, the fewest number of statements, 2, would be
[ net trainingrecord output error ] = train(fitnet,input,target);
Rsq = 1 - mse(error)/mean(var(target',1))
which uses default values that are available via the command
net = net % NO SEMICOLON
The examples for the help and doc commands use a few more statements and can be helpful. UNFORTUNATELY, however, they do not
1. show data size
2. typically, yield a numerical performance value.
3. explicitly initialize the RNG so that numerical results
can be duplicated
Most of the useful auxiliary information will be available in the training record.
Although lists of MATLAB example datasets for regression, clustering, classification, and timeseries can be obtained can be obtained via
help nndatasets
doc nndatasets
sizes are not directly available.
However, sizes are directly available via these posts
http://www.mathworks.com/matlabcentral/newsreader/view_thread/337914
https://www.mathworks.com/matlabcentral/newsreader/view_thread/339984
http://www.mathworks.com/matlabcentral/newsreader/view_thread/338208
and, posted training examples obtained via commands like
greg fitnet
greg patternet
etc
in BOTH the NEWSREADER and ANSWERS.
Hope this helps.
Thank you for formally accepting my answer
Greg

More Answers (0)

Categories

Find more on Deep Learning Toolbox 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!