Search All of the Math Forum:

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

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

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

 Messages: [ Previous | Next ]
 Murugan Solaiyappan Posts: 53 Registered: 12/4/10
custom neural network
Posted: Mar 14, 2014 1:11 AM

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,

Date Subject Author
3/14/14 Murugan Solaiyappan
3/14/14 Greg Heath
3/14/14 Steven Lord