Neural Network Question regarding matrix regression

조회 수: 4 (최근 30일)
Stephan Moeller
Stephan Moeller 2013년 5월 6일
I'm new to neural networks.
How can I make a nonlinear regression fit ? My target is a data matrix.
I start nftool and I have Input and Target. What is the input ?

채택된 답변

Greg Heath
Greg Heath 2013년 5월 14일
x=linspace(0,400,5);
y=linspace(-10,10,11);
X = repmat(x,1,11);
Y = repmat(y,1,5);
Z=(tanh((X+20).*(Y-2)/200)-1)*3;
input = (X; Y);
target = Z;
Hope this helps.
Thank you for formally accepting my answer
Greg

추가 답변 (3개)

Greg Heath
Greg Heath 2013년 5월 7일
The net represents a nonlinear mapping from I-dimensional input vectors to O-dimensional output vectors. The sizes of the input and target matrices are
[ I N ] = size(input)
[ O N ] = size(output)
Hope this helps.
Thank you for formally accepting my answer
Greg

Stephan Moeller
Stephan Moeller 2013년 5월 14일
I there any example available where I can learn how to understand nntool for :
x=linspace(0,400,5); y=linspace(-10,10,11); [x1,y1]=meshgrid(x,y);
here's my synthetic data z: z=(tanh((x1+20).*(y1-2)/200)-1)*3;
mesh(x1,y1,z)
how do have to configure nntool to calculate a neural network with x,y as inputs and z as the output data ( or target ?? ) .

Stephan Moeller
Stephan Moeller 2013년 5월 14일
편집: Stephan Moeller 2013년 5월 14일
Thanks Greg. That works now.
And how can I build the function when nntool is ready ? I can see the weights of the layers, but is possible to get a symbolic function out of it ?
  댓글 수: 1
Greg Heath
Greg Heath 2013년 5월 14일
Practice using nntool on MATLAB's demo/example data sets.
help nndatasets
Then try your data.
The only analytic form you can get from the net is a sum of tanh functions.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Sequence and Numeric Feature Data Workflows에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by