Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: custom neural network
Replies: 2   Last Post: Mar 14, 2014 10:15 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Murugan Solaiyappan

Posts: 39
Registered: 12/4/10
custom neural network
Posted: Mar 14, 2014 1:11 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hello matlab friends,

I am trying to create a custom neural network.

During the compilation, The following error displayed

??? Undefined function or method 'configure' for input arguments of type 'network'.

Error in ==> custom_nn at 28
net = configure(net,inputs,outputs);

Here is the matlab code.


% Create and view custom neural networks

% 1. Define one sample: inputs and outputs %

close all, clear all, clc, format compact
inputs = [1:6]' % input vector (6-dimensional pattern)
outputs = [1 2]' % corresponding target output vector
% 2. Define and custom network %
% create network
net = network( ...
1, ... % numInputs, number of inputs,
2, ... % numLayers, number of layers
[1; 0], ... % biasConnect, numLayers-by-1 Boolean vector,
[1; 0], ... % inputConnect, numLayers-by-numInputs Boolean matrix,
[0 0; 1 0], ... % layerConnect, numLayers-by-numLayers Boolean matrix
[0 1] ... % outputConnect, 1-by-numLayers Boolean vector
);
% View network structure
view(net);
%3. Define topology and transfer function
% number of hidden layer neurons
net.layers{1}.size = 5;
% hidden layer transfer function
net.layers{1}.transferFcn = 'logsig';
view(net);
% 4. Configure network%

net = configure(net,inputs,outputs);
view(net);
% 5. Train net and calculate neuron output
% initial network response without training
initial_output = net(inputs)
% network training
net.trainFcn = 'trainlm';
net.performFcn = 'mse';
net = train(net,inputs,outputs);
% network response after training
final_output = net(inputs)


I am using MATLAB Version 7.10.0.499 (R2010a).

Share your ideas to me friends,



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.