Note that there are some explanatory texts on larger screens.

plurals
  1. POMatlab Multilayer Perceptron Question
    primarykey
    data
    text
    <p>I need to classify a dataset using Matlab MLP and show classification.</p> <p>The dataset looks like</p> <p><a href="http://i.stack.imgur.com/JoM7z.png" rel="nofollow">Click to view</a></p> <p>What I have done so far is:</p> <ol> <li><p>I have create an neural network contains a hidden layer (two neurons ?? <strong><em>maybe someone could give me some suggestions on how many neurons are suitable for my example</em></strong>) and a output layer (one neuron).</p></li> <li><p>I have used several different learning methods such as Delta bar Delta, backpropagation (both of these methods are used with or -out momentum and Levenberg-Marquardt.)</p></li> </ol> <p>This is the code I used in Matlab(Levenberg-Marquardt example)</p> <pre><code>net = newff(minmax(Input),[2 1],{'logsig' 'logsig'},'trainlm'); net.trainParam.epochs = 10000; net.trainParam.goal = 0; net.trainParam.lr = 0.1; [net tr outputs] = train(net,Input,Target); </code></pre> <p>The following shows hidden neuron classification boundaries generated by Matlab on the data, I am little bit confused, beacause network should produce nonlinear result, but the result below seems that two boundary lines are linear..</p> <p><a href="http://i.stack.imgur.com/a5bOm.png" rel="nofollow">Click to view</a></p> <p>The code for generating above plot is:</p> <pre><code>figure(1) plotpv(Input,Target); hold on plotpc(net.IW{1},net.b{1}); hold off </code></pre> <p>I also need to plot the output function of the output neuron, but I am stucking on this step. Can anyone give me some suggestions?</p> <p>Thanks in advance.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload